create table Message
(
ID1 varchar(10),
ClientID varchar(10),
Number int,
UserID varchar(10),
ResumeID varchar(10),
)
insert into Message select '1' ,'03', 1,'20','13'
insert into Message select '04','03',2,'20', '08'
create table Resume
(
ID2 varchar(10),
Name varchar(10),
UserID varchar(10)
)
insert into test2 select '13','李四','20'
insert into test2 select '08','张三','20'
create table Client
(
ID3 varchar(10),
Name varchar(10),
)
insert into test2 select '03'
insert into test2 select '10'
当 ClientID=03时
/*
要得到这样的报表:
id1 Number Name
13 1 '李四'
08 2 '张三'
*/
当 ClientID=10时
/*
要得到这样的报表:
id1 Number Name
13 0 '李四'
08 0 '张三'
*/