|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, April 19, 2013 1:49 PM
Points: 1,621,
Visits: 108
|
|
The problem is that the order by clause was left out on the initail page.
Today's Question:
What is the output for the query below?
CREATE TABLE E (eid int, mid int, en char(10) ) INSERT E SELECT 1,2,'Vyas' INSERT E SELECT 2,3,'Mohan' INSERT E SELECT 3,NULL,'Shobha' INSERT E SELECT 4,2,'Shridhar' INSERT E SELECT 5,2,'Sourabh' SELECT t1.en [Em], t2.en [Ma] FROM E t1, E t2 WHERE t1.mid = t2.eid
when you click the "Click Here" the question has an additional line with the order by clasue
CREATE TABLE E (eid int, mid int, en char(10) ) INSERT E SELECT 1,2,'Vyas' INSERT E SELECT 2,3,'Mohan' INSERT E SELECT 3,NULL,'Shobha' INSERT E SELECT 4,2,'Shridhar' INSERT E SELECT 5,2,'Sourabh' SELECT t1.en [Em], t2.en [Ma] FROM E t1, E t2 WHERE t1.mid = t2.eid order by t1.en
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 11:09 AM
Points: 31,423,
Visits: 13,736
|
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Saturday, April 06, 2013 12:20 AM
Points: 649,
Visits: 263
|
|
| easy one! option 1 is the only answer that satisfies the ORDER BY!
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, June 12, 2009 2:17 AM
Points: 42,
Visits: 28
|
|
| Was the typo intentional? I know Attention to detail is important for the DBA - but intentional typo's are bad form.
|
|
|
|