Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
LinkedIn
Online Members
Phagu Mahato
Ranjith Kumar
Sarfaraz M Bhat
Shine S
More...
Join our online
Google+ community
for Bloggers, Content Writers and Webmasters
Forums
»
.NET
»
SQL Server
»
Medical shop code-- sql server 2000 purchase and sales using sum
Posted Date:
07 Jul 2012
Posted By::
ashok
Member Level:
Bronze
Member Rank:
0
Points
: 2
Responses:
1
in sql server 2000 ,
purchase and sales using sum whereby purchase decreases when say,
Example:-purchase =50 and sales =25 and purchase gets decreased by=50-25=25
when sales from purchase is made,purchase decreases as in the above example.
Tweet
Responses
#679589 Author:
Nathaniel Nellas Sumaya
Member Level:
Silver
Member Rank:
1262
Date: 09/Jul/2012 Rating:
Points
: 2
DECLARE @purchase decimal(10,8)
SET @purchase = 25
SELECT purchase-@purchase FROM purchaseTable
-- Update your purchase table
UPDATE purchaseTable
SET purchase =purchase-@purchase
Post Reply
This thread is locked for new responses. Please post your comments and questions as a
separate thread
.
If required, refer to the URL of this page in your
new post
.
Tweet
Next :
Sql server 2005 query
Previous :
Use of row lock & table when to choose one of them
Return to Discussion Forum
Post New Message
Category:
Related Messages
Exporting SQL Server Table to Excel Using DTS
Function is not working
trigger problem.
DATE SEARCH IN ASPX PAGE
Any body tell good pl sql book reference URL and FAQ
Follow us on Twitter:
https://twitter.com/dotnetspider
Active Members
Today
CRPRAJAN
(12)
naveensanagase...
(10)
anbu
(10)
Last 7 Days
baskar
(309)
Ultimaterengan
(246)
Rakesh Chaubey
(190)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.