内側のクエリ:値を持つSQLの私は、テーブルtbl_test持つ問題
create table tbl_test (
tabid int identity
)
を:
Insert into tbl_test values 1 union 2 union 3 .... union 1000
問合せ:
select MAX(b.tabid) from
(
select top 100 * from tbl_test
) as b
が、私はこのクエリは100代わりにそれを返すことを期待1000を返します。