hi there
i need to write a sql query that will get 5 fields from a table, one of these fields is linked to a lookup table so i need to drop the value of that field but use it to get the value it links to in the other table.
fields in rates table are
ratesid <-primary
seasonid <-linked to lookup
startdate
enddate
price
fields in seasons table are
seasonid <-primary
season
im not sure how to link tha table in the sql statement
i want to be able to access it in php by $a_row[season] $a_row[startdate] $a_row[enddate] $a_row[price]
be gratefull if someone could help me out
matt
i need to write a sql query that will get 5 fields from a table, one of these fields is linked to a lookup table so i need to drop the value of that field but use it to get the value it links to in the other table.
fields in rates table are
ratesid <-primary
seasonid <-linked to lookup
startdate
enddate
price
fields in seasons table are
seasonid <-primary
season
im not sure how to link tha table in the sql statement
i want to be able to access it in php by $a_row[season] $a_row[startdate] $a_row[enddate] $a_row[price]
be gratefull if someone could help me out
matt