TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Imran Bashir
NA
186
13.7k
Query to calculate Quantity on Hand
Jul 30 2016 2:23 PM
i want to calculate the quantity when the product is sale that come in stock table with product_id and quantity add in stock_out
and when the purchase then quantity add in Stock_in can u plz tell me how to make the query to know the quantity
SELECT TOP 1000 [id]
,[product_id]
,[stock_date]
,[stock_in]
,[stock_out]
,[vocher_type]
,[vocher_id]
FROM [OnlineTradingFinal].[dbo].[Stock]
Reply
Answers (
1
)
column which have the same id
How to manage credit debit amount in ms sql in table