Q:

Get the first name, last name, current date, admission date and difference between current date and admission date in year.

0

Get the first name, last name, current date, admission date and difference between current date and admission date in year.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

select FirstName, LastName, GETDATE() as 'Current_date', Admission_date,
DATEDIFF(YYYY, Admission_date, GETDATE()) As years from tblStudent

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 SQL server queries Interview questions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Show “AdmissionDate” in “dd mmm yyyy” form... >>
<< Get the first name, last name, current date, admis...