摘要:
1. Subquery Any Syntax: -- any-- remove inner order byselect EnglishProductName, ListPrice from DimProductwhere ListPrice > any(select avg(ListPrice) from DimProductgroup by ProductSubcategoryKey... 阅读全文
摘要:
1. Union Syntax: -- union 10 recordsselect * from Table1unionselect * from Table2--select EnglishProductName from Table1unionselect EnglishProductName from Table2Analysis:You can union more than ... 阅读全文
摘要:
1. Local temporary table Syntax: -- local temporaryselect EnglishProductName, ListPrice - DealerPrice as Discount into #NewDimProductfrom DimProductwhere ListPrice - DealerPrice is not nullorder ... 阅读全文