There is a stackoverflow question that solves my sql query, but I cant seem to do this is CodeIgnighter.
so far I came up with
$this->db->select('shop_coupons_assoc.*');
$this->db->select('shop_products.*');
$this->db->where('shop_products.id IS NULL');
$this->db->join('shop_coupons_assoc', 'shop_coupons_assoc.product_id = shop_products.id', 'left');
article on SO that seems to be the SQL im trying to do
update My Question: How would I write the SQL in Codeignighter(active record format)
-the above code does not seem to execute
Examples of what i need. Just cant find the documentation for codeignighter
SQL - find records from one table which don't exist in another
How to select all records from one table that do not exist in another table?