• 2021-04-14
    BookStore数据库中有销售明细表OrderDetail(OrderCode, BookCode, Amount)
    查询销售总量前20%的图书,并按总销量降序排列。SQL语句:
    SELECT TOP 20 PERCENT Bookcode As 书号, SUM(Amount)As总销量
    ROM OrderDetail
    GROUP BY Bookcode
    ORDER BY ________