create table ai(i int,ii int)
insert into ai select 1,2
insert into ai select 2,2
insert into ai select 3,2create table aii(i int,ii int)
insert into aii select 1,2
insert into aii select 2,2
insert into aii select 3,2
select max(a.i)
from ai as a join aii as b
on a.i<b.ii
解决方案 »
- 如何更新某字段的数据长度都为8位
- 含有二进制数据的表如何导出?
- 新手SQL查询语句的问题。纠结3天了。求大神。
- SQL 2000 SERVER用语句创建数据库与表,在哪里执行?查询分析器不行啊?
- SQL 还原数据库出错,提示发生内部一致性错误,RESTORE DATABASE 操作异常终止 急盼回复
- 没有分了,对不起,CSDN不发分!问一个数据库设计的小技巧!
- 多表查询统计 送分
- 嵌入式SQL如何运行在SQL SERVER数据库上
- 紧急!为什么我用存储过程sp_attach_db可以恢复本地数据库,却不能恢复“外来”数据库?
- 关于2张表修改数据同步
- 表的插入问题
- 1000万条数据,最好用什么工具做,是sql,还是oracle,抑或vfp?
inner join table2 b
on a.col1<b.column1 and b.column2='111'
Select max(col1) from tab1 where column1 < (Select column1 from tab1 where column2 = '111')
where col1< (select column1 from tab1 where column2='111')