write a query to display diference between two dates in sql
server

Answers were Sorted based on User's Feedback



write a query to display diference between two dates in sql server..

Answer / pushpa

datediff(mm,getdate(),'9/6/1980')

Is This Answer Correct ?    9 Yes 4 No

write a query to display diference between two dates in sql server..

Answer / jayesh l lolariya

select datediff(dd,'03-03-2008',getdate()) as dataDiff

Is This Answer Correct ?    7 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

Is id a reserved word in sql?

0 Answers  


Explain how can you save or place your msg in a table?

0 Answers  


How to get the procedure's, function's name from a package if it is wrapped(both spec & body).

2 Answers  


Differentiate between %type and %rowtype attribute in Oracle PL/AQL programming ?

7 Answers   PreVator,


What SQL keyword must immediately follow the UNION ALL statement? 1. SELECT 2. INTO 3. ORDER 4. WHERE 5. JOIN

4 Answers  






How can the performance of a trigger be improved?

0 Answers  


How to export the table data (this table having 18 million records) to .csv file. Please tell me is there any faster way to export the data.

8 Answers  


how to find the second highest salary from emp table?

211 Answers   CIS, Cognizant, Cosmosoft, DAS, EDS, GreenTech, HOV Services, IBM, Infosys, National Institute of Science and Technology, Patni, Persistent, Polaris, TCS, Wipro, Yardi, Zensar,


what are the non-standard sql commands supported by 'mysql'? : Sql dba

0 Answers  


How exception handling is done in advance pl/sql?

0 Answers  


When is the update_statistics command used?

0 Answers  


Which are the different character-manipulation functions in sql?

0 Answers  


Categories