Created
March 1, 2016 01:01
-
-
Save radityopw/dedda8ea5ce66bee80a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use AdventureWorks2012 | |
go | |
declare @vars int; | |
declare @vars2 int; | |
select @vars = count(*) from sales.SalesOrderHeader | |
select @vars2 = count(*) from sales.SalesOrderDetail | |
IF @vars > 3000 and @vars2 = @vars | |
begin | |
print 'wah cukup banyak yang aneh' | |
end | |
else if @vars > 3000 and @vars2 <> @vars | |
begin | |
print 'wah cukup banyak' | |
end | |
else | |
begin | |
print 'sedikit banget' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment