Question : SELECT Statement from multiple tables

Hi Experts,

I have 3 tables - Employee, Class, and ClassLn.
Employee
Name
ClassId
Class
ClassId
Description
ClassLn
StartDate
EndDate

How do I create a select statement the returns a result of Name, Description, StartDate, EndDate?

Thanks for the help

Answer : SELECT Statement from multiple tables

This should do:
Hope your ClassLn table has ClassId in it.
1:
2:
3:
SELECT em.Name, cs.Description, cl.StartDate, cl.EndDate
FROM Employee em inner join Class cs on em.ClassId = cs.ClassId
inner join ClassLn cl on cl.ClassId = cs.ClassId
Random Solutions  
 
programming4us programming4us