作者cutecpu (可爱中央处理器)
看板Database
标题Re: 资料仓储问题
时间Thu Oct 6 14:58:04 2011
SELECT District,Brand,SUM(Dollar Sales Amount),SUM(Quantity Sold)
FROM Product Dimension as P,Daily Sales Fact as D,Store Dimension as S
WHERE P.Product Key = D.Product Key AND D.Store Key = S.Store Key
GROUP BY District,Brand
※ 引述《tpdfes12000 (even)》之铭言:
: http://i.imgur.com/HVPgQ.png
: 请问用一条指令就可以叫出图上箭头所指出的资料
: 课本都偏理论.....实在是没有头绪
: 不知哪位大大可以帮个忙,拜托各位大大了
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.59.164.109
1F:推 tpdfes12000:感谢cutecpu大大帮忙,真的太感激了T^T,谢谢大大解答XD 10/06 15:07
2F:推 PsMonkey:==.==== 这是作业吧.... 10/06 22:01