Jump to content

Select newest transaction from multiple records


ragrim

Recommended Posts

Hi,

 

I need some help with my query, i have 3 tables, subscribers, subscriber numbers and subscriber transactions. the sub numbers is a lookup table to link transactions and subscribers. what i want is to only pull the last record for each person from subscriber transactions. heres what i have atm.

 

SELECT userinfo.FirstName, 
userinfo.LastName, 
subscribernumbers.SubNumber, 
subtransactions.TransDate, 
subtransactions.PaymentType
FROM userinfo INNER JOIN subscribernumbers ON userinfo.User_ID = subscribernumbers.FKUserID
 INNER JOIN subtransactions ON subtransactions.FKSubNum = subscribernumbers.SubNumber

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.