Answer the question
In order to leave comments, you need to log in
Is it possible to sort a selection of 2 tables in Laravel?
Is it possible to somehow select from 2 database tables using left join, and then sort with a condition on the results of the selection in Laravel?
If you use SQL, then the selection works and looks like this:
select email from (select * from employee left join bicycle on bicycle.id = employee.bicycle_id where bicycle_id is not null) as foo where gender = 'Female';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question