Display details of book published more then 3 years ago with sales of less than 10000 copies
My teacher request to modify from this
Select title_id , title , pubdate , current_date-pubdate, ytd_sales
from titles;
this is what I did
Select title_id , title , pubdate , current_date-pubdate, ytd_sales
from titles
where ytd_sales > 10 000;
but here come the problem , I can't use DATEADD , and I realize that my teacher put current_date - pubdate , I think he want use use other methods but I had no idea.
If using DATEADD it will come out
ORA-00904: "DATEADD": invalid identifier
Can you the below: