Viewing 15 posts - 46 through 60 (of 67 total)
ryan.mcatee (10/7/2009)
Speaking of queries, the ones in the article are simple examples, but when you're pulling many columns and joining on multiple keys, repeating full table names over and over...
October 7, 2009 at 1:03 pm
SuperDBA-207096 (10/7/2009)
You might want to mention in the:
"Excluding the Intersection of the Sets" section this is similar to
select... where not in (select... from table2) but it performs alot better...
October 7, 2009 at 9:36 am
Jeff Moden (10/7/2009)
Actually, they ARE becoming required. The use of table names instead of aliases has been deprecated.
Even if they weren't, short table names may work fine but not...
October 7, 2009 at 9:31 am
Andy DBA (10/7/2009)
Yet another article that makes people think that table aliases (t1 and t2) are part of the required syntax. This first Join statement:
SELECT t1.key1, t1.field1 as Name, t1.key2...
October 7, 2009 at 9:26 am
Yet another article that makes people think that table aliases (t1 and t2) are part of the required syntax. This first Join statement:
SELECT t1.key1, t1.field1 as Name, t1.key2 as...
October 7, 2009 at 8:26 am
I know, formatting preferences are a whole can of worms. But I think "From Table1 Inner Join Table2" makes a lot of sense. I put the third table...
September 30, 2009 at 3:43 pm
SELECT
StandingOrderLine.OrderNumber,
StandingOrderLine.LineNumber,
StandingOrderHeader.OrderTotal,
StandingOrderPayment.PaymentAmount
FROM dbo.StandingOrderLine INNER JOIN dbo.StandingOrderHeader
ON StandingOrderLine.CompanyID = StandingOrderHeader.CompanyID
AND StandingOrderLine.StandingOrderID...
September 30, 2009 at 1:49 pm
Tom Garth (9/30/2009)
September 30, 2009 at 1:44 pm
I know that all of this is (supposedly) documented more fully in BOL, but the purpose of these articles is to help clarify the topics they write about. This...
September 30, 2009 at 11:08 am
ssismaddy (9/23/2009)
select 1.a -- gives the column name a and prints 1 ,...
September 23, 2009 at 12:50 pm
john.arnott (9/23/2009)
David Walker-278941 (9/23/2009)
Tao Klerks (9/23/2009)
David Walker-278941 (9/23/2009)
September 23, 2009 at 12:13 pm
Tao Klerks (9/23/2009)
David Walker-278941 (9/23/2009)
Yes, but I'm not forgiving of superfluous apostrophes in the word "its". The sentence gets a Fail. "It's" means "it is" and nothing else.
Ah...
September 23, 2009 at 8:51 am
"The syntax parser is forgiving of missed spaces between a literal value and it's column alias."
Yes, but I'm not forgiving of superfluous apostrophes in the word "its". The sentence...
September 23, 2009 at 8:23 am
Jeff Moden (4/6/2009)
Aaron N. Cutshall (4/6/2009)
David Walker (4/3/2009)
April 7, 2009 at 2:04 pm
Timothy (4/3/2009)
April 3, 2009 at 3:39 pm
Viewing 15 posts - 46 through 60 (of 67 total)