This is what I would consider a simple select clause, however the following gives me grief! I am using SQL Server 2008.
Basically, I want to compare two integer values ββand return a boolean result in a select clause. Here is a simple example:
DECLARE @A INT
DECLARE @B INT
SET @A = 1
SET @B = 2
SELECT @A = @B
At the moment, the only result is "Team completed successfully." Where I reasonably believe that he assigns @A to @B.
I thought it would be easy, but I could not achieve this.
Any help would be great! Thanks
source
share