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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if the update subquery returns multiple rows in ms sql server?

1171


explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

1004


What is spid in sql server profiler?

1168


How to perform backup for certificates in sql server? : sql server security

1145


What is an identity column in insert statements?

1076


What is unique key constraint?

1118


How would you choose between a clustered and a non-clustered index?

1019


Differentiate between a having clause and a where clause.

1010


What is importing utility?

1038


What is lock escalation and what is its purpose?

1028


What are the different types of backups avaialabe in sql server 2005?

1062


You are doing log shipping due to some reasons it is failing. How you will proceed from there

2115


What is PROJECTION Operation?

1076


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2579


What is scalar user-defined function?

1189