Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | Transact CharlieMaster Smack Fu Yak Hacker
 
 
                                        3451 Posts | 
                                            
                                            |  Posted - 2012-01-06 : 12:43:18 
 |  
                                            | quote:I chose 1 (SELECT clause) and it told me I was *wrong* Both SELECT and FROM are apparently required....Ahem:Question: The SELECT statement must include which of the following clause: Select Answer: 1) SELECT clause2) FROM clause3) Both 1 and 2.4) None of the above.
 
 SELECT 'foo' AS [bar]Where is the FROM in that statement? Does it work, absolutely.Charlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION |  |  
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts |  |  
                                    | JimLSQL Slinging Yak Ranger
 
 
                                    1537 Posts | 
                                        
                                          |  Posted - 2012-01-06 : 13:46:46 
 |  
                                          | This is why my professors used to hate me in collage.It’s a b&*^$ when you know more than the person that wrote the test. JimUsers <> Logic |  
                                          |  |  |  
                                    | X002548Not Just a Number
 
 
                                    15586 Posts |  |  
                                    | GilaMonsterMaster Smack Fu Yak Hacker
 
 
                                    4507 Posts | 
                                        
                                          |  Posted - 2012-01-06 : 13:54:20 
 |  
                                          | If you're talking about one of the practice tests in the books, they're a load of garbage in most cases. A result of the book publishers paying peanuts for the books and the sample exams, so they get the bottom of the barrel.The real exams are far better in terms of being correct In all the 2005 and 2008 exams I wrote (2 as beta) I only say two questions that had no logical answer--Gail ShawSQL Server MVP |  
                                          |  |  |  
                                    | Transact CharlieMaster Smack Fu Yak Hacker
 
 
                                    3451 Posts | 
                                        
                                          |  Posted - 2012-01-07 : 17:12:43 
 |  
                                          | quote:Your query doesn't have a deterministic order.......... Unless you often drink tequila from the floor?Charlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTIONOriginally posted by X002548
 The SELECT Statement MUST include...???  TEQUILA!!!SELECT '1' AS Tequila UNION ALLSELECT '2' AS Tequila UNION ALLSELECT '3' AS Tequila UNION ALLSELECT 'Floor' AS Tequila
 
 |  
                                          |  |  |  
                                    | jimfMaster Smack Fu Yak Hacker
 
 
                                    2875 Posts | 
                                        
                                          |  Posted - 2012-01-08 : 17:47:32 
 |  
                                          | The order is deterministic, when I reach the floor is when I stop drinking tequila.JimEveryday I learn something that somebody else already knew |  
                                          |  |  |  
                                |  |  |  |