这样的select语句怎么写? select * from (select top 1 * from 表A order by id desc) a,(select top 1 * from 表B order by id) b 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 或者:select * from(select * from 表A where id=(select max(id) from 表A)) a,(select * from 表B where id=(select min(id) from 表B)) b 什么乱七八糟的,不对,我自己做出来了。正确的如下:select * from ( (select top 1 * from a ) as pcross join (select top 1 * from b order by b.id desc) as k) insert时如何简单能实现id相同数据update 求一SQL语句 sql server N大基础问题,很简单,达人请进,帮忙解释解释 mssql中"中文"与"URL"互为转换 求一简单存储过程的写法, 怎么样写一个按时间段查询的存储过程? sqlServer无法访问,求助!!! 复制表,忘了 请问--字符型的字段,可否实现以下复杂的排序、统计? 高分悬赏 数据库中的应用程序角色的使用 有没有办法加密储存过程
select * from(select * from 表A where id=(select max(id) from 表A)) a,(select * from 表B where id=(select min(id) from 表B)) b
正确的如下:select * from (
(select top 1 * from a ) as p
cross join
(select top 1 * from b order by b.id desc) as k
)