Topic: Oracle Certified Professional Exams (OCP & OCA) >> Which SQL statement do you use?
|
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 do you use? |
| naidu |
Posted: Dec 27, 2006 10:32:13 AM |
Total Post: 85
Joined: Nov, 2006
|
The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER (4)
LAST_NAME VARCHAR2 (25)
JOB_ID VARCHAR2 (10)
You want to search for strings that contain 'SA_' in the JOB_ID column.
Which SQL statement do you use?
A. SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE
'%SA\_%' ESCAPE '\';
B. SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE
'%SA_';
C. SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_'
ESCAPE "\";
D. SELECT employee_id, last_name, job_id FROM employees WHERE job_id = '%SA_';
Answer:
|
|
|
Jayanta |
| Posted: Dec 27, 2006 11:04:11 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 | 815 |
| Mohammed Taj | 704 |
| Jayanta Sur | 479 |
| positive fanatic | 416 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 242 |
| neeraj sharma | 231 |
| Ramesh Jois | 226 |
| Bishal Khetan | 196 |
|
|