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 |
What is trigger and different types of Triggers?
Please explain what is “asynchronous” communication in sql server service broker?
How can I create a plain-text flat file from SQL Server as input to another application?
How to integrate the ssrs reports in application?
Explain the relational database management system (rdbms)?
What is sql server used for?
what kind of lan types do you know? : Sql server database administration
How many types of attribute relationships are there? : sql server analysis services, ssas
Explain about nested stored procedure?
What are the Pre Requisites when you apply Srvice Packs?
You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date
How will you make an attribute not process? : sql server analysis services, ssas