求教一个查询语句,谢谢 学生表 students 里有字段(id,name,sex,city)城市表 type2 里有字段 (id,city,type1_id)请教怎么样 按照 type1_id 城市序号 降序列出 students 里的 信息 谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SELECT s.*FROM students AS s JOIN type2 AS cON s.city=c.cityORDER BY c.type1_id DESC select *from type2 as tinner join students as s on s.city = t.cityby t.city desc select s.*from students s join type2 ton s.city = t.cityorder by t.type1_id descAs uper select a.* from students a join type2 b on a.city=b.city order by b.type1_id desc 关于group by 一个SQL语句的问题 关于数据库日期的问题,在线等,急!!! 存储过程新手提问--事务与存储过程 请教SQL查询重复记录的方法 数据库文件与日志文件的异同点是什么 如何使window 2000 professional安装sqlserver2000 服务器端工具? 为什么我在vc中用CRecordSet打开数据库,会出现数据截取错误? 数据库结构的设计 请大家看一看这个问题,谢谢!! 如何在sql2000数据库中查询text型字段里的内容? 帮我认识触发器中INSERTED表的概念
FROM students AS s
JOIN type2 AS c
ON s.city=c.city
ORDER BY c.type1_id DESC
from type2 as t
inner join students as s on s.city = t.city
by t.city desc
from students s join type2 t
on s.city = t.city
order by t.type1_id descAs uper
select a.* from students a join type2 b on a.city=b.city order by b.type1_id desc