Answer Posted / akshay wadkar
DECLARE @year AS INT
SET @year=2010
Select DATEDIFF(DAY,DATEADD(YEAR,@year-1900,0)
,DATEADD(YEAR,@year-1900+1,0)) AS [TOTAL NO OF DAYS]
GO
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Define compound operators?
What are sql dirty pages?
What are the different types of collation sensitivity in sql server?
How to create a user name in a database?
Explain what is dbcc?
Explain different types of Normalization.
What is the difference between value type and reference type?
What is row_number()?
What are a database and a data warehouse?
What are key constraints?
What is the purpose of self join?
What is use of except clause? How it differs from not in clause?
What is 'write-ahead log' in sql server 2000 ?
What is the order by used for?
How many columns can exist together per table?