katlees
asked on
Inner Join Question
I need help with an inner join sql statement
Two tables are:
TABLE: Passes1
PassID
SoldBy
THID
BoxNumber
Year
TABLE: TicketHolders
HolderID
LName
AllNames
Here is my SQL
$press_query = "SELECT * FROM Passes1 WHERE Year = '2013' AND THID <> '2059'
It is displaying like this
Passes1.SoldBy, Passes1.TicketType, Passes1.THID, Passes1.BoxNumber
I need the Passes1.THID to show the TicketHolders.LName and TicketHolders.AllNames
Two tables are:
TABLE: Passes1
PassID
SoldBy
THID
BoxNumber
Year
TABLE: TicketHolders
HolderID
LName
AllNames
Here is my SQL
$press_query = "SELECT * FROM Passes1 WHERE Year = '2013' AND THID <> '2059'
It is displaying like this
Passes1.SoldBy, Passes1.TicketType, Passes1.THID, Passes1.BoxNumber
I need the Passes1.THID to show the TicketHolders.LName and TicketHolders.AllNames
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you!
Hope it helps.