Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel query select from table where id != to another table id

DB::table('tbl_sales')
->whereNotIn('id', DB::table('tbl_registration')->pluck('sale_id'))
->get();
 
PREVIOUS NEXT
Tagged: #laravel #query #select #table #id #table #id
ADD COMMENT
Topic
Name
7+9 =