單項選擇題現(xiàn)有書目表book,包含字段:價格price(float),類別type(char);現(xiàn)在查詢各個類別的平均價格、類別名稱,以下語句正確的是()。

A.select avg(price),type from book group by type
B.select count(price),type from book group by price
C.select avg(price),type from book group by price
D.select count(price),type from book group by type


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題Sql server提供了一些字符串函數(shù),以下說法錯誤的是()。

A.selec tright(’hello’,3)返回值為:hel
B.selec tltrim(rtrim(’hello’))返回值為:hello(前后都無空格)
C.selec treplace(’hello’,’e’,’o’)返回值為:hollo
D.selec tlen(’hello’)返回值為:5

2.單項選擇題在sql server2000中,關(guān)于數(shù)據(jù)庫說法錯誤的是()。

A.數(shù)據(jù)庫在磁盤上默認的存儲位置是:SQL Server安裝路徑\Microsoft SQL Server\MSSQL\Data
B.一個數(shù)據(jù)庫至少應包含一個數(shù)據(jù)庫文件(*.mdf)和一個事務日志文件(*.ldf)
C.只有當數(shù)據(jù)庫中不存在數(shù)據(jù)的情況下,才可以進行數(shù)據(jù)庫的收縮操作。
D.可以通過從A機器拷貝數(shù)據(jù)庫文件和事務日志文件至B機器,然后通過在B機器上執(zhí)行相應的附加數(shù)據(jù)庫操作,實現(xiàn)數(shù)據(jù)庫從A機器到B機器的復制。