I have this:
program: id, id_sala, text
sala: id, id_congress, text
congress: id, text
And I need this:
SELECT * FROM program INNER JOIN sala ON program.id_sala = sala.id where sala.id_congress=1
When I show all the elements of the table "sala" in the datatable "program"
( https://image.prntscr.com/image/r6tdufxtSSGiJ8j3WedU4A.png )
I only want the sala with "id_congress"="1" When I'm going to make a new program