Viewing 12 posts - 211 through 223 (of 223 total)
TomThomson (10/15/2014)
October 15, 2014 at 8:07 am
I'm amazed at the level of acceptance of sloppy, untested code here. Yes, it was only a test, and no, there was no real jeopardy. But it was...
October 15, 2014 at 7:12 am
Stewart "Arturius" Campbell (10/15/2014)
yes, the question used a reserved keyword for a column name (purely by mishap, i'm sure).
but, despite that little inconvenience, the idea behind the question was...
October 15, 2014 at 4:40 am
Koen Verbeeck (10/15/2014)
paul.knibbs (10/15/2014)
October 15, 2014 at 4:25 am
Msg 156, Level 15, State 1, Procedure my_sp, Line 2
Incorrect syntax near the keyword 'FROM'.
Oops.
October 15, 2014 at 4:17 am
Steve Jones - SSC Editor (9/29/2014)
...at some point I'd do this:
SELECT
CustomerID
,Name
,Address
...
FROM
Customer
...
September 29, 2014 at 9:00 am
Thanks Jeff. I'll ponder and see if I prefer your way to my way. As someone once remarked, for each expert there's an equal and opposite expert (not...
September 29, 2014 at 7:58 am
Jeff Moden (9/29/2014)
September 29, 2014 at 6:37 am
Hugo Kornelis (9/26/2014)
September 29, 2014 at 1:39 am
Except that I would write
SELECT
FirstName,
Surname,
Address,
EmailAddress
FROM
Person
As you say, it's all preference. For simple queries such...
September 26, 2014 at 1:17 am
Far be it from me to disagree with a guru of your stature, but personally I find aliasing makes queries difficult to read. I only ever alias where strictly...
September 25, 2014 at 8:49 am
Can you explain why you aliased the sys.syscolumns table?
SELECT TOP 10
RAND( ROW_NUMBER() OVER (ORDER BY id))
FROM sys.syscolumns
is functionally identical, as far as I am aware.
September 25, 2014 at 3:04 am
Viewing 12 posts - 211 through 223 (of 223 total)