SELECT DISTINC
SELECT DISTINC
Dear all
Can someone tell me how to use "distinct" in the following code. I need SELECT DISTINCT from names...etc
$out['ex'] = $db
->query ('select')
->table ('names')
->join ('staff', 'staff.id = names.id')
->get ('names.id as value, staff.code as label' )
->exec()
->fetchAll();
Thanks a lot
Can someone tell me how to use "distinct" in the following code. I need SELECT DISTINCT from names...etc
$out['ex'] = $db
->query ('select')
->table ('names')
->join ('staff', 'staff.id = names.id')
->get ('names.id as value, staff.code as label' )
->exec()
->fetchAll();
Thanks a lot
This discussion has been closed.
Replies
Allan