Topic: Oracle Certified Professional Exams (OCP & OCA) >> Which SQL statement will return the ENAME, length of the ENAME, and the numeric position of the letter "a" in the ENAME column, for those employees whose ENAME ends with a the letter "n"?
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Which SQL statement will return the ENAME, length of the ENAME, and the numeric position of the letter "a" in the ENAME column, for those employees whose ENAME ends with a the letter "n"? |
| naidu |
Posted: Dec 27, 2006 10:13:26 AM |
Total Post: 85
Joined: Nov, 2006
|
The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER (4)
ENAME VARCHAR2 (25)
JOB_ID VARCHAR2 (10)
Which SQL statement will return the ENAME, length of the ENAME, and the numeric position of the letter "a" in the ENAME column, for those employees whose ENAME ends with a the letter "n"?
A. SELECT ENAME, LENGTH (ENAME), INSTR (ENAME, 'a') FROM EMPLOYEES
WHERE SUBSTR (ENAME, -1, 1) = 'n';
B. SELECT ENAME, LENGTH (ENAME), INSTR (ENAME, -1, 1) FROM EMPLOYEES
WHERE SUBSTR (ENAME, -1, 1) = 'n';
C. SELECT ENAME, LENGTH (ENAME), SUBSTR (ENAME, -1, 1) FROM EMPLOYEES
WHERE INSTR (ENAME, 1, 1) = 'n';
D. SELECT ENAME, LENGTH (ENAME), SUBSTR (ENAME, -1, 1) FROM EMPLOYEES
WHERE INSTR (ENAME, -1, 1) = 'n';
Answer:
|
|
|
Jayanta |
| Posted: Dec 27, 2006 11:10:53 AM | |
|
Total Post: 479
Joined: Feb, 2006
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 816 |
| Mohammed Taj | 746 |
| Jayanta Sur | 479 |
| positive fanatic | 418 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 250 |
| Ramesh Jois | 245 |
| neeraj sharma | 243 |
| Bishal Khetan | 207 |
|
|