got two tables
node:
nid INT(10)
type (VARCHAR(32))
node_hit_count
nid INT(10)
totalcount (bigint(20))
i need to select all nids from node table which are not in node_hit_count table and WHERE node type is equal to feature or home or competition
What i have tried, its wrong, and my mind is gonna blow :/
select * from node left join node_hit_counter on node.nid=node_hit_counter.nid
where hit.nid is null and node.type IN ('feature', 'home', 'competition')
What is the
hit.nidin theWHEREclause. You have to useWHERE node.nid IS NULLinstead like so:OR: