Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: And the correct answer is?

Re: And the correct answer is?

From: Radek Sedmak <bigsam_at_post.cz>
Date: Tue, 8 Apr 2003 10:44:43 +0200
Message-ID: <b6u25s$2lid$1@ns.felk.cvut.cz>


B is correct ...cause statement 2 fail ODRER BY ??? mising column ASC;

"sfk" <nospan_at_noway.org> píse v diskusním príspevku news:3E8E0B9E.B0B9251F_at_noway.org...
> The following is from a text..... I would like some opinions .... what
> is the correct answer.
>
> EMP Table is defined as follows:
> EMPNO NUMBER 4
> ENAME VARCHAR2 30
> SALARY NUMBER 14,2
> COMM NUMBER 10,2
> DEPTNO NUMBER 2
>
> You perform the following tow queries:
>
> 1. SELECT empno enumber, ename FROM emp ORDER BY 1;
> 2. SELECT empno, ename FROM emp ORDER BY ASC;
>
> Which of the following is true?
> A. Statements 1 and 2 will produce the same result.
> B. Statement 1 will execute; statement 2 will return an error.
> C. Statement 2 will execute; statement 1 will return an error.
> D. Statement 1 and 2 will execute but produce different results.
>
>
>
Received on Tue Apr 08 2003 - 03:44:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US