If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Query problems lookup the last price

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-12, 06:43
harolda1980 harolda1980 is offline
Registered User
 
Join Date: Jan 2012
Posts: 1
Query problems lookup the last price

query

I'm looking for a query that does the following in Mysql

What he does is pick up the final price of an item. I use this code only if he does anything or not but he grabs the latest price!

Does anyone know how the final price can get it out.

Prizes will be saved per year on a weekly level.

Code:

SELECT tblart.aid
, tblart.A_nr
, tblart.A_naam
, tblprijs.ap_prijs
, tblprijs.ap_week
, tblprijs.ap_jaar
FROM
vm06inkdb1.tblart
INNER JOIN vm06inkdb1.tblprijs
ON tblart.aid = tblprijs.aid
WHERE
tblart.A_nr = 774971
GROUP BY
tblprijs.aid
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On