I have 3 tabels in my SQL Server database with the following info:
tabel: TeacherInfo
columns: tID, tName, tAge, tLocationId
values 1 Abel 53 1
2 Bob 23 2
3 Apaul 24 2
tabel: LocationInfo
columns: lId, lDesc
values: 1 Street A
2 Street B
tabel: CourseInfo
columns: cId, cName, masterTeacherId, assistTeacherId
values: 1 Maths 1 2
2 English 1 3
What I need is a SQL query script that can return the following values,
couseName, masterName, masterAge, masterLocation, assistName, assistAge, assistLocation
Maths Abel 53 Street A Bob 23 Street B
English Abel 53 Street A Apaul 24 Street B
So how to write the SQL script? Thanks in advance!