|
-
May 24th, 2000, 05:00 AM
#1
Thread Starter
Addicted Member
How do I put a select statement into a variable? Do I declare it and with what?
SELECT COUNT (*)as 'Your a Lammo' from dbo.vw_Lammo
Where vendor_err='x' and created_dt>@FromDate
How would I put this into a variable? or the count of this into a variable in SQL?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|