0% found this document useful (0 votes)
181 views3 pages

Pre-Quiz - Attempt Review Function

The document summarizes a student's attempt at a SQL pre-quiz where they scored 1 out of 5 questions correctly. It provides feedback that preparations need to be made before reattempting. It then lists the questions, correct answers, and student's responses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views3 pages

Pre-Quiz - Attempt Review Function

The document summarizes a student's attempt at a SQL pre-quiz where they scored 1 out of 5 questions correctly. It provides feedback that preparations need to be made before reattempting. It then lists the questions, correct answers, and student's responses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1/22/24, 12:04 PM Pre-Quiz: Attempt review


 Dashboard / My courses / My SQL / Function-Scalar & Aggregate / Pre-Quiz

Quiz review
Started on Monday, 22 January 2024, 11:58 AM
State Finished
Completed on Monday, 22 January 2024, 12:01 PM
Time taken 2 mins 47 secs
Marks 1.00/5.00
Grade 20.00 out of 100.00
Feedback Oops!!! You have scored below 80%. So Kindly make necessary preparations and reattempt.

Question 1
Incorrect

Mark 0.00 out of 1.00

46684
To generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been
entered should have the message "Not Available" displayed.

Which SQL statement would produce the required result?

Select one:
SELECT TO_CHAR(NVL(cust_credit_limit*.15,'Not Available')) "NEW CREDIT"
FROM customers;
SELECT NULLIF(cust_credit_limit*.15,'Not Available')"NEW CREDIT" 
FROM customers;
SELECT IFNULL(cust_credit_limit * 0.15,'Not Available') "NEW CREDIT"
FROM customers;
All the options

The correct answer is: SELECT IFNULL(cust_credit_limit * 0.15,'Not Available') "NEW CREDIT"
FROM customers;

Question 2
Correct
46684
Mark 1.00 out of 1.00

46684
Select the suitable option for fetching the output of the following query. select substr("Oracle World",1,6) from dual;

Select one:
racle Wo
Oracle
racle W
racle

The correct answer is: Oracle


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1009153&cmid=6911 1/3
1/22/24, 12:04 PM Pre-Quiz: Attempt review

Question 3
Incorrect

Mark 0.00 out of 1.00

Which statement is true regarding the default behavior of the ORDER BY clause?

Select one:
Numeric values are displayed from the maximum to the minimum value if they have decimal positions
In a character sort, the values are case-sensitive
NULL values are not considered at all by the sort operation 
Only those columns that are specified in the SELECT list can be used in the ORDER BY clause

The correct answer is: In a character sort, the values are case-sensitive

Question 4
Incorrect

Mark 0.00 out of 1.00


46684
ABC company wants to give each employee a $100 salary increment. You need to evaluate the

results from the EMP table prior to the actual modification. If you do not want to store the results in the database, which statement is
valid?

Select one:
You need to add a column to the EMP table.
You need to give the arithmetic expression that involves the salary increment in the SET clause
of the UPDATE statement.
You need to give the arithmetic expression that involves the salary increment in the DISPLAY

clause of the SELECT statement.

You need to give the arithmetic expression that involves the salary increment in the UPDATE 
clause of the SELECT statement.

46684
The correct answer is: You need to give the arithmetic expression that involves the salary increment in the DISPLAY
clause of the SELECT statement.

46684


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1009153&cmid=6911 2/3
1/22/24, 12:04 PM Pre-Quiz: Attempt review

Question 5
Incorrect

Mark 0.00 out of 1.00

To display the names of employees that are not assigned to a department.


Evaluate this SQL statement:

SELECT last_name, first_name


FROM employee

WHERE dept_id = NULL;

Which change should you make to achieve the desired result?

Select one:

46684
Add a second condition to the WHERE condition.

Change the column in the WHERE condition. 

Create an outer join.


Change the operator in the WHERE condition.

The correct answer is: Change the operator in the WHERE condition.

◄ Post-Quiz

Jump to...

FUNCTIONS Introduction ►

46684

46684


https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1009153&cmid=6911 3/3

You might also like