02 March 2012 ~ 3 Comments

Simple Quiz On Sql Server Select statement

If we execute a statement like below, it will throw error:

SELECT xyz

Result:
Msg 207, Level 16, State 1, Line 1
Invalid column name 'xyz'.

Can you guess what the below statement execution will result and reason for the same? Be frank don’t execute the statement and answer. By the way Today, I came to know about this behaviour only after executing this statement :)

SELECT 111xyz

3 Responses to “Simple Quiz On Sql Server Select statement”

  1. Krishnaraj Barvathaya 17 March 2012 at 8:04 pm Permalink

    AI embedded SQL Server :)

  2. mamatucci 12 July 2012 at 1:37 am Permalink

    Cool B, this is even funnier SELECT 1+1xyz …

  3. Avinash Bhat 16 August 2012 at 11:21 am Permalink

    How exactly this works?? I’m shell shocked to see this!


Leave a Reply