I having trouble to selecting datas from my DB, could you please help me to solve these ;
these are my data in database :
id_abs photo date time desc id_user
------------------------------------------------------------
1 p.png 2021-02-03 07.10 in 13
2 q.png 2021-02-03 18.20 out 13
3 r.png 2021-04-03 07.04 in 15
4 s.png 2021-04-03 18.30 out 15
5 t.png 2021-05-03 07.05 in 13
6 u.png 2021-05-03 18.10 out 13
and this is the table of output from DB that i want to select :
Nb : i want to select where id_user = 13
DATE PHOTO_IN PHOTO_OUT IN OUT
----------------------------------------------------------
2021-02-03 p.png q.png 07.10 18.20
2021-02-05 t.png u.png 07.05 18.10
You can use subquery inside query select in your Model. You can try this instead
I hope you are helped.