|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, January 11, 2013 8:30 AM
Points: 228,
Visits: 179
|
|
| I accept I got it wrong, but what do you mean the second transaction fails? Only the insert null into the primary key field statement fails. There are no failed inserts on Table2.
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 9,378,
Visits: 6,473
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 8:31 AM
Points: 3,129,
Visits: 4,312
|
|
The question itself is acceptable, but, in my opunion, the explanation is somewhat lacking.
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 6:30 AM
Points: 3,192,
Visits: 4,151
|
|
No rows were inserted into table2? B not C is the correct answer? Terrible, terrible explanation
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 12:56 AM
Points: 1,972,
Visits: 1,822
|
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 1:05 AM
Points: 754,
Visits: 713
|
|
I have to disagree with the answer. I ran the code on SQL server 2005 and got the following output:
a b c d 4 join1 4 join2 4 join1 4 join2 2 join3 2 one 2 join3 2 one 1 one NULL NULL NULL NULL NULL two NULL NULL NULL three
As I had worked out the same output before running and answering the question I decided that A, B, D and E could not possibly be correct so went for C as the only remaining option.
What have I missed?
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 9,378,
Visits: 6,473
|
|
philip.cullingworth (12/20/2010)
I have to disagree with the answer. I ran the code on SQL server 2005 and got the following output: a b c d 4 join1 4 join2 4 join1 4 join2 2 join3 2 one 2 join3 2 one 1 one NULL NULL NULL NULL NULL two NULL NULL NULL three
As I had worked out the same output before running and answering the question I decided that A, B, D and E could not possibly be correct so went for C as the only remaining option. What have I missed?
Your output has 7 rows and the column d contains "three" for the 7th row, so it should be answer D.
How to post forum questions. Need an answer? No, you need a question. What’s the deal with Excel & SSIS?
Member of LinkedIn. My blog at LessThanDot.
 MCSA SQL Server 2012 - MCSE Business Intelligence
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 1:05 AM
Points: 754,
Visits: 713
|
|
da-zero (12/20/2010)
Your output has 7 rows and the column d contains "three" for the 7th row, so it should be answer D.
But Answer D is 7 rows where column d = three I only have 1 row where column d = three
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 12:56 AM
Points: 1,972,
Visits: 1,822
|
|
philip.cullingworth (12/20/2010)
da-zero (12/20/2010)
Your output has 7 rows and the column d contains "three" for the 7th row, so it should be answer D.But Answer D is 7 rows where column d = three I only have 1 row where column d = three  Please, read carefully the question: it asks how many rows are in the results and what is the value of column "d" on the last row.
|
|
|
|