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,
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