是否可以使用子查询进行查询并在第一个查询的一列 ( DropDownList style
) 中获取子查询结果?
Select Name, Year, (Select SchoolId from Schools) from SchoolRecords
Output :
-------------------------- List would be a DropDownList and if I open it I would get
| Name | Year | SchoolId | the results of my subquery like so :
| | | |
-------------------------- ------------------
| Jim | 2011 | List || | | || |
| | | \/ | | \/ |
-------------------------- ------------------
| Tom | 2012 | List || | | 012312324 |
| | | \/ | | 123245465 |
-------------------------- | 456547787 |
------------------