I have a sql query that is working well but I need a way to extend this query to also get information from another table called LineUps.
Original query:
$stmt = $conn->prepare("SELECT channel, description, Tier
FROM Channel_LineUps WHERE Market_ID = 1 ORDER BY Tier ASC");
I need to also now get data from a different table called.
Columns are called DIG and HD in the LineUps table.
I tried the following but does not work:
$stmt = $conn->prepare("SELECT Channel_LineUps.channel, Channel_LineUps.description, Channel_LineUps.Tier, LineUps.HD, LineUps.DIG FROM Channel_LineUps, LineUps WHERE Channel_LineUps.Market_ID = 1 ORDER BY Channel_LineUps.Tier ASC");
i want to be able to determine where a channel is marked as yes for DIG or HD and so thinking I'll need a single query for this.
Any ideas?