Answer Posted / rajkumar
DECLARE @IsLeapYear BIT
SET @IsLeapYear = 0
IF (YEAR( @pDate ) % 4 = 0 AND YEAR( @pDate ) % 100 != 0) OR
YEAR( @pDate ) % 400 = 0
SET @IsLeapYear = 1
select 365 + @IsLeapYear
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a file group?
Where the sql logs gets stored?
Do you know what are different types of replication in sql server?
What are different types of statement?
Why truncate is ddl command?
What are the advantages of log shipping?
How to rename databases in ms sql server?
what are the core components of SSRS?
Explain the difference between primary keys and foreign keys?
What is save transaction and save point?
What is the query and subquery?
What is the rdl file?
Explain external key management in sql server 2008
Can sql server 2016 run on windows 7?
Explain about link server in sql server?