Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase «««12345

Common Table Expressions Expand / Collapse
Posted Wednesday, March 19, 2008 1:01 PM



Group: General Forum Members
Last Login: Today @ 10:36 AM
Points: 22,275, Visits: 35,261

Good example of how CTE's can help make some code easier to read and/or maintain.

Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #471845
Posted Wednesday, March 26, 2008 1:45 PM

SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 7:16 AM
Points: 988, Visits: 1,801
Thanks, Kirk for a well-written explanation of CTEs.

Great discussion, too. Thanks!
Post #475065
« Prev Topic | Next Topic »

Add to briefcase «««12345

Permissions Expand / Collapse