Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
Doamne Ajuta!

Doamne Ajuta!

Ratings:

4.67

(3)
|Views: 3,723 |Likes:
Published by OracleGeek2009

More info:

Categories:Types, School Work
Published by: OracleGeek2009 on Jan 05, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

12/12/2012

 
Test: Quiz: Case and Character Manipulation
Review your answers, feedback, and question scores below. An asterisk (*)
indicates a correct answer.Case and Character Manipulation
(Answer all questions in this section)
1. Identify the ou
tput from the following SQL statement:
SELECT RPAD('SQL',6, '*') FROM DUALMark for Review(1) Points******SQL***SQLSQL*** (*)SQL******Incorrect. Refer to Section 12. Single row
functions may be used in ______, _______ and _______clauses. (Choose two correct answers) Mark for Review
(1) Points(Choose all correct answers)SELECT, FROM, ALWAYSFROM, SELECT, ORDERSWHERE, DECODE, ORDER BY (*)SELECT, WHERE, ORDER BY (*)Incorrect. Refer to Section 1
3. Which character manipulation function always returns a numerical value?
Mark for Review(1) PointsTRIMLPADLENGTH (*)SUBSTR
This watermark does not appear in the registered version -http://www.clicktoconvert.com
 
 Correct
4. Which of the following SQL statements would correctly return a songtitle identified in the database as "All These Years"? Mark for Review
(1) PointsWHERE title CONTAINS 'Years';
WHERE title LIKE LOWER('all these years');WHERE title IN('All', 'These', 'Years');WHERE title LIKE INITCAP('%all these years'); (*)
Incorrect. Refer to Section 1
5. Which query selects the first names of
the DJ On Demand clients who
have a first name beginning with "A"? Mark for Review
(1) PointsSELECT UPPER(first_name)FROM d_clientsWHERE first_name LIKE %a%SELECT UPPER(first_name)FROM d_clientsWHERE first_name LIKE '%a%'SELECT UPPER(first_name)FROM d_clientsWHERE first_name LIKE 'a%'SELECT UPPER(first_name)FROM d_clientsWHERE LOWER(first_name) LIKE 'a%'(*)Incorrect. Refer to Section 16. Which query would retu
rn a user password combining the ID of an
employee and the first 4 characters of the last name? Mark for Review
(1) Points
SELECT CONCAT (employee_id, SUBSTR(last_name,4,1))
AS "User Passwords"FROM employees
This watermark does not appear in the registered version -http://www.clicktoconvert.com
 
 SELECT CONCAT (employee_id, INSTR(last_name,4,1))AS "User Passwords"FROM employees
SELECT CONCAT (employee_id, INSTR(last_name,1,4))
AS "User Passwords"FROM employees
SELECT CONCAT (employee_id, SUBSTR(last_name,1,4))
AS "User Passwords"FROM employees(*)Incorrect. Refer to Section 1
7. Which of the following are types of SQL functions? (Choose two correct
answers.) Mark for Review(1) Points(Choose all correct answers)Multi-Row Functions (*)Column-Row FunctionsSingle-Row Functions (*)Many-to-Many FunctionsCorrect
8. Character functions accept character arguments and only return
character values. True or False? Mark for Review
(1) PointsTrueFalse (*)Correct
9. What does the following SQL SELECT statement return?SELECT UPPER( SUBSTR('Database Programming', INSTR('Database
Programming','P'),20))FROM dual;Mark for Review(1) Points
This watermark does not appear in the registered version -http://www.clicktoconvert.com