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 the syntax for encrypting a column in SQL Server?
How to create indexed view?
How can we check the sql server version?
Explain what is the difference between a local and a global temporary table?
What the different components in replication and what is their use?
How to include text values in sql statements?
What is a view in sql?
What is the default value of an integer data type in sql server 2005?
Is candidate a key?
What is view in sql?
What are different types of data sources?
What is the process of indexing?
What is normalization? What number of normalization shapes are there?
Do comments need to go in a special place in sql server 2005?
What is ssl in sql server?