Re: percentages of top 10 tallies
From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 10/06/04
- Next message: Tom Moreau: "Re: opposite of a inner join?"
- Previous message: Adam Machanic: "Re: Function"
- In reply to: Mortar: "Re: percentages of top 10 tallies"
- Next in thread: Hugo Kornelis: "Re: percentages of top 10 tallies"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 6 Oct 2004 12:39:48 -0400
Hugo is using what is called a derived table. You must specify an alias -
in this case, T - or you will get an error.
-- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Mortar" <a@b.com> wrote in message news:41641441.5804890@nntp.wlfdle.phub.net.cable.rogers.com... thanks for the help guys. a quick question: what is the capital T for in Hugo's query? It seems I can change it to anything and it still works, but if I remove it, it doesn't. On Wed, 6 Oct 2004 08:33:25 -0400, "Tom Moreau" <tom@dont.spam.me.cips.ca> wrote: >OK, got it. My solution uses less IO and yours has the lowest query cost. >The Orders table in Northwind is quite small. I'm curious as to what the >performance would be with a larger table. > >-- >Tom > >--------------------------------------------------------------- >Thomas A. Moreau, BSc, PhD, MCSE, MCDBA >SQL Server MVP >Columnist, SQL Server Professional >Toronto, ON Canada >www.pinnaclepublishing.com > > >"Hugo Kornelis" <hugo@pe_NO_rFact.in_SPAM_fo> wrote in message >news:fqo7m090v69aauutqfm8vg2tusv828v8n4@4ax.com... >On Wed, 6 Oct 2004 07:36:45 -0400, Tom Moreau wrote: > >>Interesting. I don't get the same percentages as you: > >Hi Tom, > >That's because Steve uses with ties and you don't. > >Best, Hugo >-- > >(Remove _NO_ and _SPAM_ to get my e-mail address) >
- Next message: Tom Moreau: "Re: opposite of a inner join?"
- Previous message: Adam Machanic: "Re: Function"
- In reply to: Mortar: "Re: percentages of top 10 tallies"
- Next in thread: Hugo Kornelis: "Re: percentages of top 10 tallies"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|