Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get number of days in a given year?

Answers were Sorted based on User's Feedback



How to get number of days in a given year?..

Answer / sandhya

SELECT DATEDIFF(DD,HIREDATE,GETDATE())

Is This Answer Correct ?    1 Yes 0 No

How to get number of days in a given year?..

Answer / koppalahareesh

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

How to get number of days in a given year?..

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

How to get number of days in a given year?..

Answer / pulak

select add_months(trunc(sysdate,'year'),12)-trunc(sysdate,'year') as days from dual;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More SQL Server Interview Questions

How to find the latest updated value in a table without sending any parameters to that query

2 Answers  


What is the difference between having and where clause?

4 Answers  


What is side by side migration in sql server?

0 Answers  


What are the dis_advantages of stored procedures, triggers, indexes?

0 Answers  


Can you explain various data region available in ssrs with their use?

0 Answers  


Why can there be only one clustered index and not more than one?

0 Answers  


What is resultset concur_updatable?

0 Answers  


Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

0 Answers  


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

0 Answers  


What information is maintained within the msdb database?

0 Answers  


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

0 Answers  


How can you tell if a database object is invalid?

0 Answers   MCN Solutions,


Categories