Hi,
Forgive my ignorance but I can not understand why the following statement doesn't work.
This statment
SELECT booking_id, destination, trip_date
FROM booking;
selected all the bookings contained in the database. I'm trying to create a statement that will bring up a record according to an entered date and frist tried this
select booking_id, destination, trip_date
from booking
where trip_date = to_date('5-JUL-03');
and this
select booking_id, destination, trip_date
from booking
where trip_date = ('5-JUL-03','DD-MON-YY);
and finally this
select booking_id, destination, trip_date
from booking
where trip_date = '05-JUL-03';
yet none of them selected any rows.
Can anyone help? Thank you in advance.
Forgive my ignorance but I can not understand why the following statement doesn't work.
This statment
SELECT booking_id, destination, trip_date
FROM booking;
selected all the bookings contained in the database. I'm trying to create a statement that will bring up a record according to an entered date and frist tried this
select booking_id, destination, trip_date
from booking
where trip_date = to_date('5-JUL-03');
and this
select booking_id, destination, trip_date
from booking
where trip_date = ('5-JUL-03','DD-MON-YY);
and finally this
select booking_id, destination, trip_date
from booking
where trip_date = '05-JUL-03';
yet none of them selected any rows.
Can anyone help? Thank you in advance.