September 8, 2011 at 8:25 am
I agree.. Never would have put the Order by in the sub because I don't see the reason too. So I would have never learn it would fail until now
September 13, 2011 at 5:22 am
Really had to think through this one. Thanks for a tough question of the day.
http://brittcluff.blogspot.com/
November 1, 2011 at 1:55 am
3rd will also fail since ambiguous column with order by.
May 31, 2012 at 2:13 am
Query 3 would fail because both tables contain employee id column but, alias name of employee id have not been used in order by clause. Please check for the Query 3 and revert back.
June 3, 2012 at 7:12 am
Nandhini Ramanujam (5/31/2012)
Query 3 would fail because both tables contain employee id column but, alias name of employee id have not been used in order by clause. Please check for the Query 3 and revert back.
Query 3 does not fail. if there is more than one EmployeeID column, the ORDER BY clause uses the one that is in the select statement. There is only one in the select statement so the query executes just fine.
January 24, 2013 at 9:30 pm
very nicw question..i got it wrong though:-D
Viewing 6 posts - 46 through 50 (of 50 total)
You must be logged in to reply to this topic. Login to reply