【正文】
lIDselect vFirstName,vLastName,vEmailIdfrom where cState IN (39。California39。,39。Illinoi39。)。(2)顯示定單號(hào)碼、顧客ID,定單的總價(jià)值,并以定單的總價(jià)值的升序排列。select cOrderNo,cShopperId,mTotalCostfrom ORDER BY mTotalCost ASC。(3)顯示在orderDetail表中vMessage為空值的行。select *From where vMessage IS NULL。(4)顯示玩具名字中有“Racer”字樣的所有玩具的基本資料。select *From Where vToyName LIKE 39。%Racer%39。(5)列出表PickofMonth中的所有記錄,并顯示中文列標(biāo)題。select cToyId as 39。玩具ID39。,siMonth as39。月份39。,iYear as39。年份39。,iTotalSold as 39??備N量39。 from PickOfMonth(6)根據(jù)2000年的玩具銷售總數(shù),顯示“Pick of the Month”玩具的前五名玩具的ID。select top 5 cToyId,SUM(iTotalSold) as total from PickOfMonth where iYear=39。200039。 group by cToyId Order By total D