求一个多表查询的简单方法.... 而且用了group by就不能排序了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.*,b.* from table1 a inner join table2 b on a.编号 = b.编号where b.发送 = 'aaa' order by b.日期 select a.*,b.* from table1 a inner join table2 b on a.编号 = b.编号where a.接收='aaa' and b.发送 = 'aaa' order by b.日期 select * from table1 inner join table2 on table1.编号=table2.编号 where table1.接收人='aaa' and table2.发送人='aaa' 正确的记录集应该是A1 2004-1-1 aaa 就是说接收人是aaa"或者"说发送人是aaa的....不能出现相同编号的.. select a.*,b.* from table1 a inner join table2 b on a.编号 = b.编号where a.接收='aaa' and b.发送 = 'aaa' order by b.日期 求 Sql 作业例子 ========================== 菜虾有问 如何去掉重复记录后求和 求助~~查询没有返回值 sqlserver 执行了delete 语句后怎么恢复这部delete操作 如何改变查询结果的显示,,。。 全文索引关于中文问题,大力请进 怎么配置ODBC和SQL SEVER?? 求救!关于ROWNUM的SQL SERVER语法该如何写! 写的第一个存储过程报的错,请帮忙看一下!谢谢 关系代数的小问题 使用SQL语句恢复备份数据库出现错误:因为数据库正在使用,所以未能获得对数据库的排它访问权。 RESTORE DATABASE 操作异常终止。
from table1 a inner join table2 b
on a.编号 = b.编号
where b.发送 = 'aaa'
order by b.日期
from table1 a inner join table2 b
on a.编号 = b.编号
where a.接收='aaa' and b.发送 = 'aaa'
order by b.日期
='aaa' and table2.发送人='aaa'
A1 2004-1-1 aaa
from table1 a inner join table2 b
on a.编号 = b.编号
where a.接收='aaa' and b.发送 = 'aaa'
order by b.日期