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

When columns are added to existing tables, what do they initially contain?

1042


What is amo? : sql server analysis services, ssas

1097


What is the command used to check locks in microsoft sql server?

1051


How to create new tables with "select ... Into" statements in ms sql server?

998


What are the new features introduced in SQL Server 2000 (or the latest release of SQL Server at the time of your interview)? What changed between the previous version of SQL Server and the current version?

1084


Write a sql query to display the current date?

1101


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

1011


What are system databases into sql server (2005/2008)?

1006


How to create a view on an existing table in ms sql server?

1136


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

998


1.what is the diff between nolock optimizer and read uncommitted isolation? 2.what is the diff between revoke and deny? 3.what is percieved down time? 4.whether password protection are required for backups?if yes why?if no why? 5.what is fill factor? 6.what is cost analysis? 7.what is mean by piece meal restore? 8.what is 'rowguidcol'? 9.impersonate permission? 10.what is selectivity?

2085


What is scalar user-defined function?

1112


What are parameterized reports?

204


How can you find out which stored procedures are recompiling?

924


Explain syntax for viewing trigger?

933