Hello everyone,
I have 4 tbls looking like this:
Employee .... Price.....Sale...... Amount
eID ........... pID ......sID........ aID
eName .......eID...... sDate .....sID
................pPrice .................eID
................pDate .................aQuantity
What I need is query that gives a correct selling price (pPrice) depending on selling date (sDate), so I need to compare pDate and sDate to get right pPrice.
Hope you can help me,
Thx