Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Question of the month February 2012 - Find out problamatic query

Feb 8 2012 1:03AM by Madhivanan   

Without running these queries can you find out the query that would throw an error?

1 select 7*-2&.3
2 select 7|2&-3
3 select 7+-(.2)%(+3)
4 select ((7&2%3))

Tags: t-sql, sql_server, sqlserver, tsql, question, puzzle,


Madhivanan
3 · 40% · 12862
4
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

1  Comments  

  • Well, I referred BOL before answering. The bitwise AND (&) operator is compatible with the INT datatype only. It is not compatible with the NUMERIC data-type. Therefore query #1 will produce the error.

    Similarly, the following would also produce an error:

    select 7*-0.2&0.3
    
    commented on Feb 11 2012 12:13PM
    Nakul Vachhrajani
    4 · 36% · 11543

Your Comment


Sign Up or Login to post a comment.

"Question of the month February 2012 - Find out problamatic query" rated 5 out of 5 by 4 readers
Question of the month February 2012 - Find out problamatic query , 5.0 out of 5 based on 4 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]