this is a SQL question. Sorry for the title, but I didn\'t know how to write it better.
I have 3 tables: room, checkin and checkout. Table room has as a column room_i