Discussion on:

4
Comments

Join the conversation!

Follow via:
RSS
Email Alert
Do these tips help clarify some of your options when it comes to arranging SQL data? What other suggestions or techniques would you add to the list?
0 Votes
+ -
Yes
DanLM 6th Nov 2006
I work with sql on a daily basis. but, a lot of it is overly simplified. This will be a good bookmark for future case's. Also, I am trying to lead myself into doing stored procedures for some future development at work. They either do sql or other applications doing the sql within themselves. If I can talk them into utilizing stored procedures so that different developers can assist various parts of a project. I could get some more intresting work. This will help.



thanks,

Dan
0 Votes
+ -
This is a nice little summary of summarizing, but your final example should read as below, else you lose your customer.
SELECT GROUPING(Customer), Customer, OrderNumber, Sum(Cost * Quantity) AS OrderTotal
FROM Orders
GROUP BY Customer, OrderNumber
WITH CUBE
0 Votes
+ -
Good one!
nil_arg@... Updated - 23rd May 2007
These are useful options which are unknown to me. very useful for reporting purpose.

Thanks.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.