Express12
SSCoach
Points: 18514
More actions
March 2, 2006 at 9:53 am
#112972
The following SQL returns the value 1 all the time:
DECLARE @y INT
SELECT
@y = (SELECT COUNT(*) FROM Customers)
How can I get the select count(*) to return the actual number of Customers into @y ??
PW-201837
SSC-Insane
Points: 20805
March 2, 2006 at 9:55 am
#624376
SELECT @y = COUNT(*) FROM Customers
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply