I have problem with converting an existing SQL statment to a JPQL statement.
SQL statement is:
select SeatsID from cinema.seats a
where a.SeatsID not in
(select SeatID FROM cinema.reservation_seats s, cinema.reservation r
where s.ReservationID = r.ReservationID and r.ShowID = 1)
Which finds all free seats for show with ID = 1
.
But I can not properly write JQPL statement.
Could you help me?