多項選擇題數(shù)據(jù)庫中有一張表名稱為Student,列ZZMM表示學生政治面貌,學生的政治面貌可能為“黨員”、“團員”和群眾,要求查詢政治面貌為“黨員”和“團圓的學生信息”,下列哪個SQL語句是正確的()。

A.Select* From Student Where ZZMM=’黨員’And ZZMM=’團員’
B.Select* From Student Where ZZMM=’黨員’Or ZZMM=’團員’
C.Select* From Student Where ZZMM="黨員"OrZ ZMM="團員"
D.Select* From Student Where ZZMM IN(’黨員’,‘團員’)


您可能感興趣的試卷

你可能感興趣的試題

1.多項選擇題數(shù)據(jù)庫中有一張表名稱為Student,有列Number,Name,Age,IDCard,Sex。主鍵為Number。要求查詢所有男同學信息,下列哪個SQL語句是正確的?()

A.Select* From Student Where Sex=’男’
B.Select* From Student Where Number NotIn(Select Number From Student Where Sex<>=’男’)
C.Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)
D.Select* From Student Where Sex<>’男’

2.多項選擇題數(shù)據(jù)庫中有一張表名稱為Student,有列Number,Name,Age,IDCard,Sex。主鍵為Number。統(tǒng)計學生總?cè)藬?shù),下列哪個SQL語句是正確的()

A.Select Count(1)From Student
B.Select Sum(*)From Student
C.Selec tAvg(*)From Student
D.Select Count(*)From Student

5.多項選擇題數(shù)據(jù)庫中有一張表名為Emp,包含有如下列:EmpNO(雇員編號,Varchar(20),Pk),Job(職位Varchar(10)),HirDate(雇傭日期,Date),Sal(月薪,F(xiàn)loat)。查詢出受雇于1981年的雇員信息是()

A.elect * From Emp Where HirDate>='1981-1-1' And HirDate <='1981-12-31'  
B.Select * From Emp Where Between In '1981-1-1' And <'1981-12-31'
C.Select * From Emp Where Between In '1981-12-31' And <'1981-1-1'  
D.Select * From Emp Where HirDate>='1981-1-1' NOT HirDate <='1981-12-31'