Viewing 15 posts - 31 through 45 (of 66 total)
Another Sol :
Select ProductType,
Grade,
(Value*100)/productsales AS [Percent]
FRom
(
select...
June 14, 2013 at 3:06 am
Check out this Query
taken from http://gallery.technet.microsoft.com/scriptcenter/Get-all-SQL-Statements-0622af19
;WITH
XMLNAMESPACES
(DEFAULT N'http://schemas.microsoft.com/sqlserver/2004/07/showplan'
...
June 14, 2013 at 1:13 am
Create Table TableWithdefaultvalue (ID Int Constraint DF_ID DEFAULT(0) , name Varchar(10) , Country Varchar(10) )
Here we have ID column which will accept value 0(zero) as default value in table.
Here...
June 8, 2013 at 12:55 am
i am completely agree with cy-dba
thanx for the question 1+
June 6, 2013 at 3:06 am
Output clause is a nice inclusion in sql server.
Thanx for the question 1+ 🙂
June 6, 2013 at 1:18 am
Really it a great question
thanx ...
learnt something new..
🙂
June 6, 2013 at 12:43 am
Thanx for the question..
Another difference between coalesce and Isnull
Select coalesce(Null,Null)
Msg 4127, Level 16, State 1, Line 1
At least one of the arguments to COALESCE must be a typed NULL.
Select...
June 5, 2013 at 11:51 pm
Thanx Hugo
got this
ISNULL : replacement_value
Is the expression to be returned if check_expression is NULL. replacement_value must be of a type that is implicitly convertible to the type of...
June 4, 2013 at 4:42 am
Thanx for the nice explanation
Please explain this
Select isnull ('A',1 ) does not return Error
select COALESCE( 'A', 1)
Conversion failed when converting the varchar value...
June 4, 2013 at 12:58 am
Viewing 15 posts - 31 through 45 (of 66 total)