Arifullah Irfann

Arifullah Irfann

  • NA
  • 410
  • 26.5k

SQL Query Problem

Dec 26 2019 5:07 AM
Hello.
 
 I Have Two Table From Which I want to Create Query
 
1) Table - Purchase 
PurchaseID,ItemID,PurchaseDate,PurchaseQuantity 
 
2) Table- Sale 
SaleID,ItemID,SaleDate,SaleQuantity  
 
 
Now I want to  Create A query to Give this Result Between Two Dates From Both Tables
 
 ItemID TotalPurchaseQuantity TotalSaleQuantity
 
 
 
 
The Problem is Date From Which Table I should Give Date To Query (Sale Table Or Purchase) 

Answers (10)