1樓:匿名使用者
select 姓名,出生日期 from xs where 性別='女'
select 學號,語文,數學 from cj where 語文》70 and 數學<60
select top 2 學號,數學 from cj order by 數學 desc
select 男生人數=count(*) from xs where 性別='男'
select 女生人數=count(*) from xs where 性別='女'
select t.姓名,t.學號,c.語文+c.數學 as 總成績
from xs t
left join cj c on t.學號=c.學號
select 姓名,出生日期 from xs where 性別='男'
select 學號 from cj where 語文》60 and 數學》70
select top 3 學號,語文 from cj order by 語文 desc
select 男生人數=count(*) from xs where 性別='男'
select 女生人數=count(*) from xs where 性別='女'
二樓好像沒寫第六條
2樓:匿名使用者
比較簡單
1.select a.姓名, a.學號 from xs a where a.性別='女'
2.select a.學號,a.語文,a.數學 from cj a where a.語文<70 and a.數學<60
3.select top 2 a.學號,a.數學 from cj a order by a.數學 desc
4.男生人數: select count(*) from xs a where a.性別='男'
女生人數: select count(*) from xs a where a.性別='女'
5.select a.姓名,b.學號,b.語文+b.數學 as 總成績 from xs a inner join cj b on a.學號=b.學號
7.select a.姓名, a.出生日期 from xs a where a.性別='男'
8.select a.學號 from cj a where a.語文》60 and b.數學》70;
9.select top 3 a.學號,a.語文 from cj a order by a.語文 desc
10見4
3樓:匿名使用者
--樓上寫的有點冗餘,而且第一題不是很對
--1select 姓名,出生日期 from xs where 性別='女'
--2select 學號,語文,數學 from cj where 語文》70 and 數學<60
--3select top 2 學號,數學 from cj order by 數學 desc
--4select 男生人數=count(*) from xs where 性別='男'
select 女生人數=count(*) from xs where 性別='女'
--5select t.姓名,t.學號,c.語文+c.數學 as 總成績
from xs t
left join cj c on t.學號=c.學號
--7select 姓名,出生日期 from xs where 性別='男'
--8select 學號 from cj where 語文》60 and 數學》70
--9select top 3 學號,語文 from cj order by 語文 desc
--10
select 男生人數=count(*) from xs where 性別='男'
select 女生人數=count(*) from xs where 性別='女'
4樓:匿名使用者
xs.dbf 學生表
cj.dbf 成績表
1.查詢所有女同學的姓名和出生日期。
selece name,birthday from 學生表 where ***='女'
2.查詢語文70分以下並且數學60分以下的同學的學號、語文、數學三個欄位。
select 學生表.學號 , 語文 , 數學
from 學生表
join 成績表
on 學生表.學號=成績表.學號
where 語文<70 and 數學<60
3.查詢數學成績前兩名的學生,查詢結果中包括學號,數學二個欄位。
select top 2 學號 , 數學 from 成績表 orderyby 數學 desc
4.查詢統計男、女的人數分別是多少。
select count(*) from 學生表 where ***='男'
select count(*) from 學生表 where ***='女'
5.查詢學生考試成績,查詢結果中包括姓名、學號、總成績(語文+數學)三個欄位。
select 姓名 , 學生表.學號 , count(語文+數學)
from 學生表
join 成績表
on 學生表.學號=成績表.學號
groud by 姓名,學號
7.查詢所有男同學的姓名和出生日期。
selece name,birthday from 學生表 where ***='男'
8.查詢語文60分以上並且數學70分以上的同學的學號。
和第二差不多
9.查詢語文成績前三名的學生,查詢結果中包括學號,語文二個欄位。
select top 3 學號 , 語文 from 成績表 orderyby 語文 desc
初二數學期末測試題 !!!
1 a 1 因為一個數的平方根互為相反數,所以。3a 4 2a 1 解得a 1 2 根2的算數平分根約為。1 2 4,所以個位的數字為1.所以第一個個位數字為4.取兩位有效數字為選c 一個數的平方和一個數的絕對值都是非負數,若一個數的平方和一個數的絕對值之後 0,則說明這兩個數都是0.即。x 3 0...
VB測試題,友情測試題
1 vb6.0中屬於定製控制元件的檔案是 a a ocx b frm c vbp d exe 2 如果編寫的過程要被多個窗體及其物件呼叫,應將這些過程放在 b 模組中?a 窗體模組 b 標準模組 c 工程 d 類模組 3 下面的表示式中,不正確的是 d a const m o27 b dim a x...
推理測試題,推理能力測試題
美國fbi的推理測試題 老兵其實有夢遊症,在他服役期間他由於夢遊用枕頭把他的戰友捂死,他清醒過來後,就把他的戰友的屍體用軍刀肢解後扔進廁所裡沖走.處理完屍體後只剩下戰友的綠色軍裝.那天晚上老伴一邊上廁所一邊幫她們的兒子織綠色的小軍裝 結果把衣服忘在了廁所裡.老兵下床沒看見老伴是因為她老伴知道他老公有...