Today's teaser is very simple
First create this table
CREATE TABLE #Tran (TranCountDefault int DEFAULT (@@TranCount),TranCountPassedIn int)
As you can see that table has two columns, one column has a default of @@TRANCOUNT. Now run this piece of code
DECLARE @trancount int
SELECT @trancount = @@TranCount
INSERT #Tran (TranCountPassedIn) VALUES (@trancount)
We assigned @@TRANCOUNT to the @trancount variable and we passed that in, so TranCountDefault has the default value and TranCountPassedIn has the value we passed in
Now when you do a select from the table will the 2 columns have the same value?
SELECT * FROM #Tran