Q:

Get first name, admission year, admission month and admission date from tblStudent table.

0

Get first name, admission year, admission month and admission date from tblStudent table.

All Answers

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

select SUBSTRING (convert(varchar,admission_date,103),7,4) as Year,
SUBSTRING (convert(varchar,admission_date,100),1,3) as Month, 
SUBSTRING (convert(varchar,admission_date,100),5,2) as Date
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 student details from tblStudent table whose ad... >>
<< Get fristname from tblstudent not start with any s...