Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Computing Date Differences
Hi All,
I am having the following problem: I need to answer a question which goes like find all the surnames of people who were born a week later than john smith. I have tried something like:
select date from person where
date > (select date from person where name='John Smith' + 7 but it didn't
work (The error message was SQL command not properly terminated).
Could anyone please help me with that?
I look forward to hearing from you soon.
Thanks in advance.
George Received on Sat Mar 16 2002 - 21:26:22 CST
![]() |
![]() |