|
-
Mar 6th, 2012, 04:56 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] SQL 2005 - Stored Procedures
Hi all,
Thought I'd try creating my first stored procedure for SQL, but don't know if what I'm thinking is posisble! so pls bear with me,
Say I've got 2 tables - tblCards and tblBatch.
tblBatch has BatchNo,DateDelivered,BatchQty,QtyUsed
tblCards has CardId, CardSerial, BatchNo, Issued, DateUsed
Say if a Card in tblCards has been updated to say Issued='Y' and DateUsed=whatever the date is, is it possible to automatically update tblBatch.QtyUsed where the card is associated with?
Hope this makes sense.
Any help is much appreciated
Greyskull
Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered 
If someone helped you today then please consider rating their post.
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
|