I am using a PHP mySQL query. Struggling with a Joins.
mysql_query("SELECT * FROM electors WHERE telephone > 0")
Then I need it to select from a table called voting_intention with matching ID from the electors table of this query and get a column called pledge that is equal to ‘C’ OR ‘D’.
How do we do this in 1 mySQL query.
Your possible SQL statement will be,