Query of the day
-
1. Open a SQL query client (version 8.0; maybe others...). 2. Run the following SQL batch:
Declare @M1 Money
Declare @M2 Money
Declare @M3 MoneySelect @M1 = 100.0001, @M2 = 200.0019
Print 'Add how many "- + - +" you want before @M2 ...'
Select @M3 = @M1 + - + - + - + - + @M2
Select @M33. Tell me what is going on. Thank you so very much. Now I'm going to sp_destroymyself, bye. :mad:
-
1. Open a SQL query client (version 8.0; maybe others...). 2. Run the following SQL batch:
Declare @M1 Money
Declare @M2 Money
Declare @M3 MoneySelect @M1 = 100.0001, @M2 = 200.0019
Print 'Add how many "- + - +" you want before @M2 ...'
Select @M3 = @M1 + - + - + - + - + @M2
Select @M33. Tell me what is going on. Thank you so very much. Now I'm going to sp_destroymyself, bye. :mad:
it returns 300.0020 and prints "Add how many "- + - +" you want before @M2 ..." MS SQL Query analyzer 7.0 - Anders
-
it returns 300.0020 and prints "Add how many "- + - +" you want before @M2 ..." MS SQL Query analyzer 7.0 - Anders
rofl "every year we invent better idiot proof systems and every year they invent better idiots"
-
it returns 300.0020 and prints "Add how many "- + - +" you want before @M2 ..." MS SQL Query analyzer 7.0 - Anders
-
Thank you, the question was (and it seems you missed the point) what is the meaning of the arithmetic expression x + - + - + - y. If you can answer, it will be good.:mad:
"+ - + - + - + - +" is the same as "+" ;P " - + " == nothing :-D - Anders