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 sqlservr.exe - process - sql server (sqlex?press)?
How to disable stored procedure sql server?
How to convert character strings into numeric values?
How do you create an execution plan?
What are the different types of columns types constraints in the sql server?
Define compound operators?
Can a database be shrunk to 0 bytes, if not, why?
Explain transaction server explicit transaction?
What happens if null values are involved in string operations?
Tell me what do you understand by a view? What does the with check option clause for a view do?
How to provide login information for a new odbc dsn?
What is difference between drop truncate and delete?
Explain about link server in sql server?
How to create a new table in a given schema?
What are the different types of data sources in ssrs?