Q:

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

0

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

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(DD, Admission_date, GETDATE()) As days 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
Get the first name, last name, current date, admis... >>
<< Get all student details from tblStudent table whos...