phporcaffeine Posted August 22, 2006 Share Posted August 22, 2006 2 tables, 1 databaseDatabase: 'breakdown'Table 1: recordTable 2: notify When record is inserted into table 'record' an entry is made in table 'notify', with table 'record' 's auto?_number. I want to SELECT FROM record WHERE col='mydata' AND FROM notify WHERE col='mydata'. I know that isn't the right syntax but hopefully you get what I am tryig to do. I am trying to select a row based on a single value existing in 2 different columns, in 2 different tables.TIA Link to comment https://forums.phpfreaks.com/topic/18306-mysql-select-query-help/ Share on other sites More sharing options...
ShogunWarrior Posted August 22, 2006 Share Posted August 22, 2006 SELECT * FROM record LEFT JOIN notify ON notify.col = record.col WHERE record.col = 'mydata'; Link to comment https://forums.phpfreaks.com/topic/18306-mysql-select-query-help/#findComment-78627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.