TableId   Name
1,    aa
2,    bbCreate function Test(@id int)
{
    returns int
    return @id
}
Create function Test1(@id int)
{
     RETURNS @Temp TABLE(
     id1 int,--总数
     id2 int,--已完成数
     id3 int,--未完成数
     )
     as begin
        insert @temp values(@id,@id,@id)
     return
     end}如果
select *,dbo.Test(id) as id1  from Table
出现结果
id   name  id1
1    aa    1
2    bb    2我想要执行通过一条SQL语句执行Test1,得到类似以下的结果
请问怎么办?id name id1 id2  id3
1   aa   1   1    1
2   bb   2   2    2