SELECT studentName, major, studentId FROM StudentTable WHERE major IN (SELECT major FROM MajorTable WHERE major = 'Awesome')
SELECT * FROM (SELECT studentId FROM StudetTable WHERE studentId < 3)
declare @studentName varChar(50) set @studentName = (SELECT top 1 studentName FROM StudentTable)
No comments:
Post a Comment