Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Unsure of phrasing, Subproperty? Pin
EliottA3-Sep-09 6:12
EliottA3-Sep-09 6:12 
GeneralRe: Unsure of phrasing, Subproperty? Pin
N a v a n e e t h3-Sep-09 6:37
N a v a n e e t h3-Sep-09 6:37 
GeneralRe: Unsure of phrasing, Subproperty? Pin
Luc Pattyn3-Sep-09 6:55
sitebuilderLuc Pattyn3-Sep-09 6:55 
GeneralRe: Unsure of phrasing, Subproperty? Pin
EliottA3-Sep-09 7:02
EliottA3-Sep-09 7:02 
QuestionUsing VB.NET 2005 With MySQL Pin
Pasan1483-Sep-09 5:10
Pasan1483-Sep-09 5:10 
AnswerRe: Using VB.NET 2005 With MySQL Pin
EliottA3-Sep-09 5:15
EliottA3-Sep-09 5:15 
AnswerRe: Using VB.NET 2005 With MySQL Pin
εїзεїзεїз3-Sep-09 6:50
εїзεїзεїз3-Sep-09 6:50 
QuestionNeed help with SQL query Pin
sazd13-Sep-09 1:53
sazd13-Sep-09 1:53 
I am using vb express and MsAccess as database.
I am trying to write a query for the calculation of Stock.
My tables are as under:

Data in PurchaseTable

PId PDate ItemId Description Price Quantity Amount
1 28/8/2009 1 Coca Cola Normal 1,00 10 10,00
2 28/8/2009 2 Coca Cola Zero 1,00 5 5,00
3 29/8/2009 1 Coca Cola Normal 1,00 5 5,00
4 29/8/2009 2 Coca Cola Zero 1,00 10 10,00

Data in Sales Table is as under:

SId SDate ItemId Description Price Quantity Amount
1 30/8/2009 1 Coca Cola Normal 2,70 2 5,40
2 30/8/2009 2 Coca Cola Zero 2,70 3 7,10
3 31/8/2009 1 Coca Cola Normal 2,70 1 2,70
4 31/8/2009 2 Coca Cola Zero 2,70 2 2,70

I want a query for stockcalculation to show data as under:

PDate,ItemId, QuantityPurchased, QuantitySold, Balance(QuantityPurchased - QuantitySold)

Please advise how I can get the above information through a query on the above two tables to be displayed in a Listview.
AnswerRe: Need help with SQL query Pin
Johan Hakkesteegt3-Sep-09 2:31
Johan Hakkesteegt3-Sep-09 2:31 
AnswerRe: Need help with SQL query Pin
dan!sh 3-Sep-09 3:34
professional dan!sh 3-Sep-09 3:34 
GeneralRe: Need help with SQL query Pin
sazd13-Sep-09 3:38
sazd13-Sep-09 3:38 
AnswerRe: Need help with SQL query Pin
Pasan1483-Sep-09 5:04
Pasan1483-Sep-09 5:04 
GeneralRe: Need help with SQL query Pin
sazd13-Sep-09 8:39
sazd13-Sep-09 8:39 
QuestionTimer set time click Pin
Bob Beaubien2-Sep-09 21:52
Bob Beaubien2-Sep-09 21:52 
AnswerRe: Timer set time click Pin
TheComputerMan2-Sep-09 22:13
TheComputerMan2-Sep-09 22:13 
AnswerRe: Timer set time click Pin
David Skelly2-Sep-09 22:57
David Skelly2-Sep-09 22:57 
AnswerRe: Timer set time click Pin
Johan Hakkesteegt3-Sep-09 0:32
Johan Hakkesteegt3-Sep-09 0:32 
GeneralRe: Timer set time click Pin
Bob Beaubien3-Sep-09 2:49
Bob Beaubien3-Sep-09 2:49 
GeneralRe: Timer set time click Pin
Johan Hakkesteegt3-Sep-09 3:31
Johan Hakkesteegt3-Sep-09 3:31 
GeneralRe: Timer set time click Pin
Bob Beaubien3-Sep-09 3:40
Bob Beaubien3-Sep-09 3:40 
GeneralRe: Timer set time click [modified] Pin
Bob Beaubien3-Sep-09 15:15
Bob Beaubien3-Sep-09 15:15 
GeneralRe: Timer set time click Pin
Johan Hakkesteegt3-Sep-09 20:12
Johan Hakkesteegt3-Sep-09 20:12 
GeneralRe: Timer set time click [modified] Pin
Bob Beaubien4-Sep-09 4:32
Bob Beaubien4-Sep-09 4:32 
GeneralRe: Timer set time click Pin
Johan Hakkesteegt6-Sep-09 20:05
Johan Hakkesteegt6-Sep-09 20:05 
GeneralRe: Timer set time click Pin
TheComputerMan4-Sep-09 9:59
TheComputerMan4-Sep-09 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.