Thread: Stock holdings
View Single Post
  #1 (permalink)  
Old 03-23-2008, 09:39 AM
chlsudhakar chlsudhakar is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
chlsudhakar is on a distinguished road
Default ANY dialect question:

Stock holdings


Hello,
I am trying to create a stock holding database in MS Access. There are two tables called Buy and Sell. Both tables will contain multiple buy and sell records. I would need to write a query that should give me the current holdings (sum of all buy records minus sum of all sell records grouped by stock name. If there is no stock in the sell table, then only the buy holdings needs to be shown). Please help me out in writing a SQL for this. Thank you in advance.
Reply With Quote

ANSWER(S):