Create a table seats with seat_id INTEGER PRIMARY KEY, screen_no INTEGER and seat_code VARCHAR. The same seat_code may exist on different screens, but not twice on the same screen.
This question starts with an empty database.
Run your code to see the output here.