單項(xiàng)選擇題在SQLServer數(shù)據(jù)庫(kù)中,HAVING和WHERE子句以及GROUPBY可以在同一SELECT語(yǔ)句中使用,其正確的先后順序?yàn)椋ǎ?/strong>

A.GROUP BY WHERE HAVING
B.WHE REGROUP BY HAVING
C.WHE REHAVING GROUP BY
D.HAVING WHERE GROUP BY


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題查詢(xún)student表中的所有非空email信息,以下語(yǔ)句正確的是()

A.Select email from student where email!=null
B.Select email from student where emailnotisnull
C.Select email from student where email<>null
D.Select email from student where emailisnotnull

3.單項(xiàng)選擇題一個(gè)電視經(jīng)銷(xiāo)商在表Tvtype中維護(hù)庫(kù)存的電視信息,下述()語(yǔ)句能顯示價(jià)格(iprice)最昂貴的三種電視機(jī)的信息(cDiscription)

A.select top3 cDiscription fromTvtype order by iprice asc
B.select cDiscription from Tvtype where max(iprice)>3
C.select top3 cDiscription from Tvtype order by iprice desc
D.selec tcDiscription max(iprice)from Tvtype order by iprice

4.單項(xiàng)選擇題有名為 Sales 的表,現(xiàn)需要按客戶(hù)姓名(CustomerName)和銷(xiāo)售日期(SalesDate)排序返回銷(xiāo)售數(shù)據(jù)。為每個(gè)客戶(hù)提供最近期的銷(xiāo)售必須首先列出。應(yīng)使用的查詢(xún)語(yǔ)句為()

A.select CustomerName,SalesDate from Sales group by CustomerName,SalesDate
B.select CustomerName,SalesDate from Sales order by CustomerName,SalesDate
C.select CustomerName,SalesDate from Sales group by CustomerNameorderbySalesDateDESC
D.select CustomerName,SalesDate from Sales order by CustomerName,SalesDateDESC

5.單項(xiàng)選擇題創(chuàng)建一個(gè)名為’catt’的新表,要求該表包含’kehu’表的所有記錄,應(yīng)使用的SQL語(yǔ)句是()

A.select*intocatt where from kehu
B.select*into catt from kehu
C.insert into catt select*from kehu
D.inser tinto catt from select*from kehu

最新試題

在MYSQL中,存儲(chǔ)過(guò)程不可以帶有參數(shù)。

題型:判斷題

MySQL變量可分為兩大類(lèi),即用戶(hù)變量和系統(tǒng)變量。

題型:判斷題

存儲(chǔ)過(guò)程一經(jīng)定義,就可以被反復(fù)調(diào)用,從而實(shí)現(xiàn)了代碼的復(fù)用性、封裝性、高性能等。

題型:判斷題

在定義數(shù)據(jù)表結(jié)構(gòu)的時(shí)候,設(shè)置數(shù)據(jù)表之間的存在關(guān)系為“級(jí)聯(lián)更新”,會(huì)為保證數(shù)據(jù)一致性帶來(lái)方便,但也存在“一改全改”的數(shù)據(jù)變化風(fēng)險(xiǎn)。

題型:判斷題

批量記錄插入,可以不要求插入數(shù)據(jù)結(jié)構(gòu)匹配,與約束不沖突。

題型:判斷題

mysql變量有4種類(lèi)型:局部變量、用戶(hù)變量、會(huì)話(huà)變量和全局變量。

題型:判斷題

在MySQL中,用單條INSERT語(yǔ)句處理多個(gè)插入要比使用多條INSERT語(yǔ)句效率更高。

題型:判斷題

MySQL變量可分為兩大類(lèi),即()

題型:多項(xiàng)選擇題

out模式定義的參數(shù)只能在過(guò)程體內(nèi)部賦值,表示該參數(shù)可以將某個(gè)值傳遞回調(diào)用他的過(guò)程。

題型:判斷題

用戶(hù)可以超出權(quán)限控制對(duì)數(shù)據(jù)庫(kù)進(jìn)行訪(fǎng)問(wèn)。

題型:判斷題