select id,num from tab1 where num in (select max(num) as num from tab1 union all select min(num) as num from tab1);
解决方案 »
- 求助一个SQL错误
- 不解为何下载了oracle客户端安装后却不能创建数据库
- oracle text 全文检索、 Luene 全文检索, sql server 全文检索 方案选择,谢谢。
- delphi如何链接Oracle数据库?
- oracle9i中如何将一个表空间的数据转移到另一个表空间中
- 在存储过程里“execute immediate v_sql”与直接使用sql有什“execute immediate v_sql”与直接使用sql有什么区别?
- ora_smon进程自动挂起 狂占资源 求解 急!
- oracle 9i 安装后部分功能不能使用
- 各位朋友,帮帮忙,在java中连接oracle数据库要配odbc吗?
- 请教Oracle高手,在下初学,想请问Oracle9i能装在Win2000Server版下吗?
- 怎么实现orcale数据库同步问题??急
- 如何在where条件中表示long类型数据?
select id,num from tab1 where num in (select max(num) as num,id from tab1 group by id union all select min(num) as num,id from tab1 group by id);