数据库表如下create table Dept
(
d_id int identity(100001,1) primary key,
d_name varchar(50) not null
)
go
create table Class
(
c_id int identity(200001,1) primary key,
c_name varchar(50) not null,
d_id int not null references Dept(d_id)
)
go
create table Student
(
s_id int identity(300001,1) primary key,
s_name varchar(50) not null,
s_sex bit not null,
s_age int not null,
c_id int not null references Class(c_id),
d_id int not null references Dept(d_id)
)
go
create table Course
(
co_id int identity(400001,1) primary key,
co_name varchar(50) not null,
co_info varchar(50) 
)
go
create table Score
(
sc_id int identity(500001,1) primary key,
s_id int not null references Student(s_id),
co_id int not null references Course(co_id),
sc_score int
)
go
求sql语句能够查出class,dept,student,score,course 5个表中的c_name,d_name,s_name,sc_score,co_name
希望能够使用尽量少的语句,最好能够只使用一条sql语句