I have the following table and one row in it. When I use this following query:
SELECT FROM ROOM WHERE chk_in = '7-APR-14';
it shows no data. Any idea where i am going wrong?
CREATE TABLE room (
r_id number(5),
book_date date,
chk_in date,
chk_out date,
r_ct_id number(6),
booking_id number(5),
c_id number(9),
primary key (r_id),
foreign key (booking_id) references booking_info(booking_id),
foreign key (c_id) references customer(c_id)
);
INSERT INTO room VALUES (61276,'4-FEB-14','7-APR-14','4-APR-14',87689,19857,987987987);