Q:

Write a query to find out the studentname who has not received any scholarship amount, and display 0 in front of his name.

0

Write a query to find out the studentname who has not received any scholarship amount, and display 0 in front of his name.

All Answers

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

Select Firstname, ISNULL(Scholarship_Amount, 0) As [Scholarship Amount]
from tblStudent A Left Outer Join [tblScholarship] B on 
A.StudentId = B.Student_ref_id where Scholarship_Amount is null

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
How to select random record form a tblstudent.... >>
<< Select FirstName, Lastname, Scholarship amount fro...