I typed the following command in oracle;
select * from emp where ndep in(10,30);
and I had this as a result;
It'sallright,theproblemisthatIwantedtoputitinthedescendingorderofthedepartmentnumber;
Theseweremyattempts;
1stattempt;
select*fromempwherendepin(10,30)|orderbyndepdesc;
2ndattempt
select*fromempwherendepin(10,30)orderbyndepdesc;
3rdattempt
select*fromempwherendepin(10,30)andorderbyndepdesc;
Iwasnotsuccessful.
HowdoIgetthecommandright?
///////////////////////Updatingthepost
select*fromempwherendepin(10,30)andorderbyndepdesc;
thiswastheerrormessage;
ORA-00936:expressionnotfound00936.00000-"missing expression"
* Cause:
* Action:
Error on line: 3 Column: 5