Select rows which are not present in other table
Select rows which are not present in other table
xain819
Posts: 15Questions: 4Answers: 1
how can i do this
SELECT e.id ,e.Badgenumber, e.Name FROM pcc_employee e WHERE NOT EXISTS (SELECT 1 FROM pcc_empcollege c WHERE e.Badgenumber = c.empid)
to
$out['pcc_employee'] = $db
->query( 'select', 'pcc_employee' )
->get( 'pcc_employee.Badgenumber as value, pcc_employee.Name as label' )
->where( 'Badgenumber','2005','=' )
->exec()
->fetchAll();
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Try:
Documentation for
selectDistinct
is available here: http://editor.datatables.net/docs/Editor-1.3.1/php/class-DataTables.Database.html#_selectDistinctRegards,
Allan
Thanks i got the Idea i used
Thanks alot :)
oh and how can i do this
i have no idea :|
You can use the
sql()
method to be able to run raw SQL: http://editor.datatables.net/docs/Editor-1.3.1/php/class-DataTables.Database.html#_sqlAllan
okey but i don't know how to use it to put it in a drop box
so if u could kindly teach me how :). here is my sample code..