How to get number of days in a given year?
Answers were Sorted based on User's Feedback
declare @y int;
set @y = 2016;
SELECT DATEDIFF(day,cast(@y as char(4)), cast(@y+1 as char(4))) Days
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dinesh rathod
would like to get the total number of days in a year left from the given
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pulak
select add_months(trunc(sysdate,'year'),12)-trunc(sysdate,'year') as days from dual;
Is This Answer Correct ? | 1 Yes | 3 No |
Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture
Explain the new features of SQL server 2000?
If there is failure during updation of certain rows, what will be the state?
What is filestream?
What are truncate options available in sql server? : sql server database administration
Explain the truncate command?
Give me a SQL Query to find out the second largest company?
What are different types of statements that are supported by sql?
Plz tell about backup&recovery?
What is autocommit mode in sql server?
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?
How many types of TRIGGERS are there in MS SQL Server?
8 Answers CarrizalSoft Technologies, TCS, United Healthcare,