Yam Code
Sign up
Login
New paste
Home
Trending
Archive
English
English
Tiếng Việt
भारत
Sign up
Login
New Paste
Browse
use QuanLi123 go --1 declare @namsinh int; set @namsinh=1997 select*from NhanVien where YEAR(NgaySinh)<@namsinh --2 declare @manv char(5),@n int set @manv='N001' select @n=COUNT (MaHD) from HoaDon where MaNV=@manv if(@n>=0) print N'Có'+cast(@n AS char(2))+N'hóa đơn' else print N'Không có hóa đơn' --3 select MaHD,GiaBan,SoLuong,ThanhTien=case when Soluong <5 then SoLuong+GiaBan-(0.05*GiaBan) when Soluong >=4 and Soluong<10 then Soluong*GiaBan-(0.06*GiaBan) when Soluong>9 and Soluong<15 then Soluong*GiaBan-(0.08*GiaBan) When Soluong>=15 then Soluong*GiaBan-(0.1*GiaBan) end from ChiTietHoaDon --4 declare @a float declare @b float declare @x float set @a=10.0 set @b=5.0 if(@a=0) if(@b=0) print N'Phương trình vô số nghiệm' else print N'Phương trình vô nghiệm' else set @x=(-@b/@a) Print N'Phương trình có một nghiệm là '+cast(@x as char(10)) --5 create table HocVien( MaHV int identity(1,1) primary key, TenHV nvarchar(300), Lop nvarchar(300) ) declare @m int declare @class int set @m=0; set @class=0; while(@m<10) begin set @m=@m+1 set @class=@class+1 insert into HocVien values('HocVien'+CAST(@m as CHAR(2)),'CDTH'+CAST(@class as CHAR(2))) end
Paste Settings
Paste Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax Highlighting :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Paste Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create New Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English
Tiếng Việt
भारत