Download as pdf or txt
Download as pdf or txt
You are on page 1of 42

1/21/24, 11:35 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Function-Scalar & Aggregate / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 11:27 PM
State Finished
Completed on Sunday, 21 January 2024, 11:33 PM
Time taken 5 mins 56 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

45573
All columns in the SELECT list that are not in group functions must be in the GROUP-BY clause. State True or False.

Select one:
TRUE
FALSE

The correct answer is: TRUE

Question 2

45573
Correct

Mark 1.00 out of 1.00

What will be the output for the below query:

select ceil(5.3) from dual;

Select one:
None of the options

5.0

45573
6

Your answer is correct.

The correct answer is: 6

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004505&cmid=6358 1/3
1/21/24, 11:35 PM Post-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Single row functions can be nested to any level. State true or False.

Select one:
TRUE
FALSE

The correct answer is: TRUE

Question 4
Correct

Mark 1.00 out of 1.00

45573
Group functions can be used in the where clause. State True or False.

Select one:
TRUE
FALSE

The correct answer is: FALSE

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004505&cmid=6358 2/3
1/21/24, 11:35 PM Post-Quiz: Attempt review

Question 5
Incorrect

Mark 0.00 out of 1.00

We need to create a report to display the order id, ship date and order total of your ORDER table. If the

order has not been shipped, your report must display 'Not Shipped'. If the total is not available,

your report must display 'Not Available'.

In the ORDER table, the SHIPDATE column has a datatype of DATE. The TOTAL column has a

datatype of INT.

Which statement do you use to create this report?

Select one:
SELECT ordid, IFNULL(shipdate, 'Not Shipped') as SHIPDATE,Total FROM order; 
SELECT ordid, IFNULL(shipdate, 'Not Shipped') SHIPDATE,

FROM order; 45573


IFNULL(total,'Not Available')TOTAL FROM order;

SELECT ordid, shipdate "Not Shipped",


total "Not Available"
FROM order;
SELECT ordid,TO_CHAR(shipdate, 'Not Shipped'),
TO_CHAR(total,'Not Available')
FROM order;

The correct answer is: SELECT ordid, IFNULL(shipdate, 'Not Shipped') SHIPDATE,
IFNULL(total,'Not Available')TOTAL FROM order;
FROM order;

45573
◄ Average Cost For Location

Jump to...

Pre-Quiz ►

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004505&cmid=6358 3/3
1/21/24, 11:22 PM Pre-Quiz: Attempt review


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

Quiz review
Started on Sunday, 21 January 2024, 11:20 PM
State Finished
Completed on Sunday, 21 January 2024, 11:22 PM
Time taken 2 mins 6 secs
Marks 3.00/5.00
Grade 60.00 out of 100.00
Feedback Oops!!! You have scored below 80%. So Kindly make necessary preparations and reattempt.

Question 1
Correct

Mark 1.00 out of 1.00

45573
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: 45573


Change the operator in the WHERE condition.
Create an outer join.

Add a second condition to the WHERE condition.

Change the column in the WHERE condition.

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

Question 2
Correct

Mark 1.00 out of 1.00


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

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

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

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004391&cmid=6338 1/3
1/21/24, 11:22 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

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

Select one:
racle Wo
racle W
Oracle
racle

The correct answer is: Oracle

Question 4
Incorrect

Mark 0.00 out of 1.00

45573
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 UPDATE 

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

clause of the SELECT statement.

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

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004391&cmid=6338 2/3
1/21/24, 11:22 PM Pre-Quiz: Attempt review

Question 5
Incorrect

Mark 0.00 out of 1.00

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 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 
SELECT TO_CHAR(NVL(cust_credit_limit*.15,'Not Available')) "NEW CREDIT"
FROM customers;

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

◄ Post-Quiz

Jump to...

FUNCTIONS Introduction ►

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004391&cmid=6338 3/3
1/21/24, 11:17 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / SQL Select Statement / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 11:14 PM
State Finished
Completed on Sunday, 21 January 2024, 11:16 PM
Time taken 2 mins 20 secs
Marks 3.50/5.00
Grade 70.00 out of 100.00
Feedback Oops!!! You have scored below 80%. So Kindly make necessary preparations and reattempt.

Question 1
Correct

Mark 1.00 out of 1.00

45573
Select the suitable option for retrieving all the employees who have a manager?

Select one:
select empname, manager_id from employee where manager_id is NOT NULL;
select empname, manager_id from employee where manager_id is NULL VALUE;
select empname, manager_id from employee where manager_id is NULL;
select empname, manager_id from employee where manager_id NULL;

The correct answer is: select empname, manager_id from employee where manager_id is NOT NULL;

Question 2
Correct
45573
Mark 1.00 out of 1.00

Select the suitable option for retrieving all the employees whose last name is "kumar"?

Select one:
select * from employee where empname like '%kumar%';
select * from employee where empname like 'kumar%';
select * from employee where empname like 'kumar';
select * from employee where empname like '%kumar';

45573
The correct answer is: select * from employee where empname like '%kumar';

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004314&cmid=6337 1/3
1/21/24, 11:17 PM Post-Quiz: Attempt review

Question 3
Incorrect

Mark 0.00 out of 1.00

How to retrieve department_id column without any duplication from employee relation?

Select one:
select department_id distinct from employee; 
select department_id from employee;
select all department_id from employee;
select distinct department_id from employee;

The correct answer is: select distinct department_id from employee;

Question 4
Partially correct

Mark 0.50 out of 1.00

45573
Select the suitable option for retrieving all the employees whose salary range is between 40000 and 100000?

Select one or more:


select name,salary from employee where salary between 40000 and 100000;
select name,salary from employee where salary between 40000 100000; 

select name,salary from employee where salary>=40000 and salary<=100000;

select name,salary from employee where salary is between 40000 and 100000;
select name,salary from employee where salary lies between 40000 and 100000;

45573
The correct answers are: select name,salary from employee where salary between 40000 and 100000;, select name,salary from employee where
salary>=40000 and salary<=100000;

Question 5
Correct

Mark 1.00 out of 1.00

Which statement about SQL is true?

Select one:

provided. 45573
The results are sorted by the first column in the SELECT list if the ORDER BY clause is not

Date values are displayed in descending order by default.


Null values are displayed first in ascending sequences.

You cannot sort query results by a column that is not included the SELECT list.

You cannot specify a column alias in an ORDER BY clause.

The correct answer is: Null values are displayed first in ascending sequences.

◄ Venue Details Based On Capacity

Jump to...

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004314&cmid=6337 2/3
1/21/24, 11:17 PM Post-Quiz: Attempt review

Pre-Quiz ►

45573

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004314&cmid=6337 3/3
1/21/24, 11:14 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / SQL Select Statement / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 11:11 PM
State Finished
Completed on Sunday, 21 January 2024, 11:13 PM
Time taken 2 mins 6 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

45573
Which statement is true when a DROP TABLE command is executed on a table?

Select one:
Any pending transactions on the table are rolled back.

Only a DBA can execute the DROP TABLE command.

The DROP TABLE command can be executed on a table on which there are pending
transactions.

The table structure and its deleted data cannot be rolled back and restored once the DROP TABLE command is executed. 

Your answer is correct.


45573
The correct answer is: The table structure and its deleted data cannot be rolled back and restored once the DROP TABLE command is executed.

Question 2
Correct

Mark 1.00 out of 1.00

Which statements are true regarding constraints?

Select one or more:

45573
A constraint is enforced only for the INSERT operation on a table.

A constraint can be disabled even if the constraint column contains data.

A columns with the UNIQUE constraint can contain NULL values.

A foreign key cannot contain NULL values.

Your answer is correct.


The correct answers are: A constraint can be disabled even if the constraint column contains data., A columns with the UNIQUE constraint can contain
NULL values.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004275&cmid=6320 1/3
1/21/24, 11:14 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

You need to remove all the data from the employee table while leaving the table definition intact.
You want to be able to undo this operation. How would you accomplish this task?

Select one:
This task cannot be accomplished.

DELETE FROM employee; 

TRUNCATE TABLE employee;

DROP TABLE employee;

Your answer is correct.

The correct answer is: DELETE FROM employee;

Question 4
45573
Correct

Mark 1.00 out of 1.00

The SQL statements executed in a user session as follows:

create table product(pid int(10),pname varchar(10));


Insert into product values(1,'pendrive');
Insert into product values(2,'harddisk');
savepoint a;
update product set pid=20 where pid=1;
savepoint b; 45573
delete from product where pid=2;
commit;
delete from product where pid=10;

Which statements describe the consequence of issuing the ROLLBACK TO SAVE POINT a command in the session?

Select one:
The rollback generates an error.

Both the DELETE statements and the UPDATE statement are rolled back.

45573
Only the DELETE statements are rolled back.

Only the seconds DELETE statement is rolled back.

Your answer is correct.

The correct answer is: The rollback generates an error.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004275&cmid=6320 2/3
1/21/24, 11:14 PM Pre-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

Match the following

Like Match a character pattern 

Between......and Range of values 

In(set) Match any of the list vaues 

Isnull checks whether a value is null or not. 

Your answer is correct.


The correct answer is: Like → Match a character pattern, Between......and → Range of values, In(set) → Match any of the list vaues, Isnull → checks whether
a value is null or not.

45573
◄ Post-Quiz

Jump to...

Select Statement Introduction ►

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004275&cmid=6320 3/3
1/21/24, 11:11 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Joins & SubQuery / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 11:09 PM
State Finished
Completed on Sunday, 21 January 2024, 11:11 PM
Time taken 1 min 58 secs
Marks 4.67/5.00
Grade 93.33 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Partially correct

Mark 0.67 out of 1.00

45573
The NOT operator can be used with ______ operators.

Select one or more:


>

ANY

IN

ALL

Your answer is partially correct.


You have correctly selected 2.
The correct answers are: IN, ANY, ALL
45573
Question 2
Correct

Mark 1.00 out of 1.00

In which cases would you use an outer join?

Select one:

45573
The tables being joined have only unmatched data.

The tables being joined have both matched and unmatched data.

The tables being joined have NOT NULL columns.

The tables being joined have only matched data.

Only when the tables have a primary key/foreign key relationship.

Your answer is correct.

The correct answer is: The tables being joined have both matched and unmatched data.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004244&cmid=6382 1/3
1/21/24, 11:11 PM Post-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which operator is NOT appropriate in the join condition of a non-equi join SELECT statement?

Select one:
equal operator

IN operator

BETWEEN x AND y operator

LIKE operator

greater than or equal to operator

Your answer is correct.

The correct answer is: equal operator

45573
Question 4
Correct

Mark 1.00 out of 1.00

To display the names of employees who earns more than the average salary of all
employees.

SELECT last_name, first_name


FROMemployee

45573
WHEREsalary > AVG(salary);

Which change should you make to achieve the desired results?

Select one:
Move the function to the SELECT clause and add a GROUP BY clause and a HAVING clause.

Change the function in the WHERE clause.

Move the function to the SELECT clause and add a GROUP BY clause.

Use a subquery in the WHERE clause to compare the average salary value.

Your answer is correct.


45573
The correct answer is: Use a subquery in the WHERE clause to compare the average salary value.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004244&cmid=6382 2/3
1/21/24, 11:11 PM Post-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

In which two cases would you use the USING clause? (Choose two)

Select one or more:


The tables to be joined have multiple NULL columns.

You want to create a nonequijoin.

The tables to be joined have columns with the same name and compatible data types.

The tables to be joined have columns of the same name and different data types.

Your answer is correct.

The correct answers are: The tables to be joined have columns of the same name and different data types., The tables to be joined have columns with the
same name and compatible data types.

45573
◄ Highest Seating Capacity

Jump to...

Pre-Quiz ►

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004244&cmid=6382 3/3
1/21/24, 11:08 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Joins & SubQuery / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 11:03 PM
State Finished
Completed on Sunday, 21 January 2024, 11:08 PM
Time taken 4 mins 40 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

45573
To create a report displaying employee last names, department names, and locations. Which query should you use to create an equi-
join?

Select one:
SELECT e.last_name, d.department_name, d.location_id
FROM employees e, departments d

WHERE manager_id =manager_id;

SELECT last_name, department_name, location_id


FROM employees , departments ;

45573
SELECT employees.last_name, departments.department_name,
departments.location_id FROM employees e, departments d

WHERE e.department_id =d.department_id;

SELECT e.last_name, d.department_name, d.location_id


FROM employees e, departments d

WHERE e.department_id =d.department_id;

Your answer is correct.

45573
The correct answer is: SELECT e.last_name, d.department_name, d.location_id
FROM employees e, departments d
WHERE e.department_id =d.department_id;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004163&cmid=6359 1/4
1/21/24, 11:08 PM Pre-Quiz: Attempt review

Question 2
Correct

Mark 1.00 out of 1.00

The COMMISSION column shows the monthly commission earned by the employee.

Emp_Id Dept_Id Commission

1 10 500

2 20 1000

3 10

4 10 600

5 30 800

6 30 200

7 10

8 20 300

45573
Which tasks would require sub queries or joins in order to be performed in a single
step?

Select one or more:


Finding the total commission earned by the employees in department 10

Listing the employees who do not earn commission and who are working for department 20 in descending order of the employee
ID

45573
Listing the employees whose annual commission is more than 6000

Finding the number of employees who earn a commission that is higher than the average commission of the company 

Listing the employees who earn the same amount of commission as employee 3

Listing the departments whose average commission is more that 600

Your answer is correct.

45573
The correct answers are: Listing the employees who earn the same amount of commission as employee 3, Finding the number of employees who earn a
commission that is higher than the average commission of the company

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004163&cmid=6359 2/4
1/21/24, 11:08 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which statement would display the highest credit limit available in each income level in each city in

the Customers table?

Select one:
SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level,cust_credit_limit;
SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city , cust_income_level ,MAX(cust_credit_limit);
SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level;
SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers

45573
GROUP BY cust_credit_limit , cust_income_level, cust_city ;

The correct answer is: SELECT cust_city, cust_income_level,MAX(cust_credit_limit)


FROM customers
GROUP BY cust_city, cust_income_level;

Question 4
Correct

Mark 1.00 out of 1.00

45573
What statement would display the age of Customers with the alias name as AGE?

Select one:
select round((curdate()-Birth_date)/365) AGE from customer;
select (start_date-curdate())/365) AGE from customer

select round((birth_date)-Birth_date)/365) from customer;

select (Birth_date/365) AGE from customer;

The correct answer is: select round((curdate()-Birth_date)/365) AGE from customer;

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004163&cmid=6359 3/4
1/21/24, 11:08 PM Pre-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

Which SQL statement produces an error?

Select one:
SELECT *
FROM emp_dept_vu;
SELECT job_id, SUM(salary)
FROM emp_dept_vu
WHERE department_id IN (10,20)
GROUP BY job_id
HAVING SUM(salary) > 20000;
None of the statements produce an error; all are valid. 

SELECT department_id, SUM(salary)


FROM emp_dept_vu

45573
GROUP BY department_id;
SELECT department_id, job_id, AVG(salary)
FROM emp_dept_vu
GROUP BY department_id, job_id;

The correct answer is: None of the statements produce an error; all are valid.

◄ Post-Quiz

Jump to...

45573 JOINS & SUB-QUERIES Introduction ►

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004163&cmid=6359 4/4
1/21/24, 11:01 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / DCL & Database Objects / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:57 PM
State Finished
Completed on Sunday, 21 January 2024, 11:01 PM
Time taken 3 mins 27 secs
Marks 3.00/5.00
Grade 60.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

CREATE INDEX emp_dept_id_idx


ON employee(dept_id);
45573
Which of the following statements are true with respect to the above index?

Select one:
May reduce the amount of disk I/O for INSERT statements.

Override the unique index created when the FK relationship was defined.

May reduce the amount of disk I/O for SELECT statements.

45573
Increase the chance of full table scans.

Store an index in the EMPLOYEE table. 

Your answer is incorrect.


The correct answer is: May reduce the amount of disk I/O for SELECT statements.

Question 2
Correct

Mark 1.00 out of 1.00

45573
An owner can give specific privileges on the owner's objects to others. State True or False.

Select one:
True 

False

The correct answer is 'True'.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004071&cmid=6391 1/3
1/21/24, 11:01 PM Post-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?

Select one:
DROP VIEW emp_dept_vu;

DROP emp_dept_vu;

DELETE emp_dept_vu;

DELETE VIEW emp_dept_vu;

REMOVE emp_dept_vu;

REMOVE VIEW emp_dept_vu;

45573
Your answer is correct.
The correct answer is: DROP VIEW emp_dept_vu;

Question 4
Correct

Mark 1.00 out of 1.00

Which SQL statement grants a privilege to all the database users?

Select one:
grant select on department to ALL;

45573
grant select on department to ALL USERS;

grant select on department to PRIVATE;

grant select on department to PUBLIC;

Your answer is correct.


The correct answer is: grant select on department to PUBLIC;

Question 5
Incorrect

Mark 0.00 out of 1.00 45573


The owner has all the privileges on the object. State true or False.

Select one:
True

False 

The correct answer is 'True'.

◄ Create Index

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004071&cmid=6391 2/3
1/21/24, 11:01 PM Post-Quiz: Attempt review

Jump to...

45573

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004071&cmid=6391 3/3
1/21/24, 10:57 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / DCL & Database Objects / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:53 PM
State Finished
Completed on Sunday, 21 January 2024, 10:57 PM
Time taken 3 mins 38 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

Equijoin is called as ______. 45573


Select one:
Simple Join

Outer Join

Self Join

Equal Join

Your answer is correct.


The correct answer is: Simple Join
45573
Question 2
Correct

Mark 1.00 out of 1.00

The _______ join produces the cross product of two tables.

Select one:
Cross

Self

Outer
45573
Equi

Your answer is correct.

The correct answer is: Cross

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004013&cmid=6383 1/3
1/21/24, 10:57 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

_____ is used to retrieve records that do not meet the join condition

Select one:
Equi Join

Outer Join

Self Join

Non Equi Join

Your answer is correct.

The correct answer is: Outer Join

Question 4
Correct
45573
Mark 1.00 out of 1.00

The _______ join is based on all columns in the two tables that have the same data type.

Select one:
Left Outer

Cross

Full Outer

Natural 45573
Your answer is correct.

The correct answer is: Natural

Question 5
Correct

Mark 1.00 out of 1.00

Joining a table to itself is called as ______. 45573


Select one:
Outer Join

Self Join

Non Equi Join

Equi Join

Your answer is correct.


The correct answer is: Self Join

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004013&cmid=6383 2/3
1/21/24, 10:57 PM Pre-Quiz: Attempt review

◄ Post-Quiz

Jump to...

DCL & Database Objects ►

45573

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1004013&cmid=6383 3/3
1/21/24, 10:52 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Data Manipulation Language / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:48 PM
State Finished
Completed on Sunday, 21 January 2024, 10:52 PM
Time taken 4 mins 34 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

State True or False. 45573


COMMIT ends the current transaction by making all pending data changes permanent.

Select one:
TRUE

FALSE

Your answer is correct.


The correct answer is: TRUE

Question 2
45573
Incorrect

Mark 0.00 out of 1.00

Merge is not supported by MySQL. The other possible way of doing the work of merge statement, is by using ON DUPLICATE KEY UPDATE in the insert
statement. State TRUE or FALSE.

Select one:
FALSE 
TRUE

The correct answer is: TRUE


45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003929&cmid=6319 1/3
1/21/24, 10:52 PM Post-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Examine the structure of the STUDENT table:

Column Name DataType Constraint

Stud_id int(3) PK

Name Varchar(20) Not Null

Address Varchar(30)

DOB Date

Which statement inserts a new row into the STUDENT table?

Select one:

45573
INSERT INTO student VALUES (101,'Smith');

INSERT INTO student VALUES (101,'100 Main Street','17-JUN-99','Smith');

INSERT INTO student (stud_id, address, dob)


VALUES (101,'100 Main Street','17-JUN-99');

INSERT INTO student (stud_id, address, name, dob)

VALUES (101,'100 Main Street','Smith','1994-02-01');

Your answer is correct.

45573
The correct answer is: INSERT INTO student (stud_id, address, name, dob)
VALUES (101,'100 Main Street','Smith','1994-02-01');

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003929&cmid=6319 2/3
1/21/24, 10:52 PM Post-Quiz: Attempt review

Question 4
Correct

Mark 1.00 out of 1.00

Consider the below table structure:

Column Name DataType Constraint

Empname Varchar(20) Not Null

EmpId int(10) PK

Phoneno bigint(10) Not Null

insert into employee(empid,empname)values('123','John');

When we issue the above insert command and if the statement fails,

what would be the reason.

45573
Select one:
The statement will get executed successfully

Value for phoneno is missing.

empid value should be given without single quotes.

The column order should not be changed.

Your answer is correct.


The correct answer is: Value for phoneno is missing.

Question 5
Correct
45573
Mark 1.00 out of 1.00

Which among the following tags belong to DML?

Select one or more:


ALTER

DELETE

CREATE

45573
UPDATE

Your answer is correct.

The correct answers are: UPDATE, DELETE

◄ Delete 2

Jump to...

Pre-Quiz ►

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003929&cmid=6319 3/3
1/21/24, 10:47 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Data Manipulation Language / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:39 PM
State Finished
Completed on Sunday, 21 January 2024, 10:47 PM
Time taken 7 mins 41 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Incorrect

Mark 0.00 out of 1.00

Which of the below is DDL Query? 45573


Select one or more:
Delete * from table_name; 


Truncate table table_name;

Drop table table_name;

All the options

Your answer is incorrect.


45573
The correct answers are:
Truncate table table_name;,
Drop table table_name;

Question 2
Correct

Mark 1.00 out of 1.00

45573
Which of the below is a reference option for deleting rows from a table?

Select one:
Cascade

Set Null

All the options

Restrict

Your answer is correct.


The correct answer is: Cascade

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003793&cmid=6304 1/3
1/21/24, 10:47 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

What is the Default format for ‘Date’ datatype?

Select one:

MM-YYYY-DD

DD-MON-YYYY

NONE

45573
YYYY-MM-DD

Your answer is correct.


The correct answer is: YYYY-MM-DD

Question 4
Correct

Mark 1.00 out of 1.00

45573
To remove a relation from SQL database, we use ___________ command.

Select one:
Drop

All the options

Truncate

Delete

Your answer is correct.

45573
The correct answer is: Drop

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003793&cmid=6304 2/3
1/21/24, 10:47 PM Pre-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

Numeric datatype is used to store_______

Select one:
Both whole and natural numbers.

Whole number

Rational number

Natural number

Your answer is correct.


45573
The correct answer is: Both whole and natural numbers.

◄ Post-Quiz

Jump to...

Data Manipulation Language - Introduction ►

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003793&cmid=6304 3/3
1/21/24, 10:39 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Data Definition Language / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:34 PM
State Finished
Completed on Sunday, 21 January 2024, 10:38 PM
Time taken 4 mins 8 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

45573
We need to ensure that the amount withdrawn should be less then the credit card limit amount, to ensure this integrity what type
constraint will be used?

Select one:
table level check constraint

column level check constraint

column level foreign key constraint

table level foreign key constraint

45573
Your answer is correct.
The correct answer is: table level check constraint

Question 2
Correct

Mark 1.00 out of 1.00

An emp table contains fields employ name, desig and salary. How do you drop column salary?

Select one:
alter table emp delete salary;
45573
alter table emp drop column salary;
alter table emp delete column salary;
delete from emp where column = salary;

The correct answer is: alter table emp drop column salary;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003722&cmid=6303 1/3
1/21/24, 10:39 PM Post-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which of the following options is not correct?

Select one:
alter table emp drop column column_name;
alter table emp modify name varchar(30);
alter emp drop column_name;
alter table emp add column_name varchar(25);

The correct answer is: alter emp drop column_name;

Question 4
Correct

Mark 1.00 out of 1.00

45573
A table consists of ______ primary keys.

Select one:
4
Any number
2
1

45573
The correct answer is: 1

Question 5
Correct

Mark 1.00 out of 1.00

Choose the correct option

creditcardno primary key 

validitydate not null 

cardholderphoneno

creditcardtype should be sliver or platinum only


45573unique 

check 

cardholdername not null 

Your answer is correct.


The correct answer is: creditcardno → primary key, validitydate → not null, cardholderphoneno → unique, creditcardtype should be sliver or platinum only →
check, cardholdername → not null

◄ Drop 1

Jump to...

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003722&cmid=6303 2/3
1/21/24, 10:39 PM Post-Quiz: Attempt review

Pre-Quiz ►

45573

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003722&cmid=6303 3/3
1/21/24, 10:34 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / Data Definition Language / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:31 PM
State Finished
Completed on Sunday, 21 January 2024, 10:34 PM
Time taken 2 mins 23 secs
Marks 5.00/5.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Correct

Mark 1.00 out of 1.00

45573
In a relational database a referential integrity constraint can be done using

Select one:
primary key

foreign key

secondary key

composite key

Your answer is correct.


The correct answer is: foreign key
45573
Question 2
Correct

Mark 1.00 out of 1.00

___________ removes data from the table, but structure remains the same.

Select one:
Trunc

None of the options

Truncate
45573
Drop

Your answer is correct.

The correct answer is: Truncate

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003679&cmid=6286 1/3
1/21/24, 10:34 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which of the following is not modification of the database

Select one:
Updating

Deletion

Sorting

Insertion

Your answer is correct.

The correct answer is: Sorting

Question 4
Correct
45573
Mark 1.00 out of 1.00

Column header is referred as

Select one:
Attributes

Relation

Table

Domain 45573
Tuples

Your answer is correct.


The correct answer is: Attributes

Question 5
Correct

45573
Mark 1.00 out of 1.00

A relational database consists of a collection of

Select one:
Tables

Records

Keys

Fields

Your answer is correct.


The correct answer is: Tables

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003679&cmid=6286 2/3
1/21/24, 10:34 PM Pre-Quiz: Attempt review

◄ ER Model & Normalization - Presentation Deck

Jump to...

Data Definition Language - Introduction ►

45573

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003679&cmid=6286 3/3
1/21/24, 10:25 PM Post-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / RDBMS Concepts / Post-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:15 PM
State Finished
Completed on Sunday, 21 January 2024, 10:25 PM
Time taken 10 mins 13 secs
Marks 3.33/5.00
Grade 66.67 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

45573
SQL is a case sensitive language and the data stored inside the table are case in-sensitive. Say true or false?

Select one:
True 

False

The correct answer is 'False'.

Question 2

45573
Correct

Mark 1.00 out of 1.00

Tom has designed a payroll software for XYZ technology.The sofware will store the salary details into the database and later he can
retreive the same for future references. Tom falls under which category of user.

Select one:
Application Programmer

DBA

Network Administrator

45573
End User

Your answer is correct.

The correct answer is: Application Programmer

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003415&cmid=6283 1/3
1/21/24, 10:25 PM Post-Quiz: Attempt review

Question 3
Partially correct

Mark 0.33 out of 1.00

Choose Correct Option

Data is represented in the form of a graph - relational 

Data is represented in the form of a tree - hierarchical 

Data is represented in the form of a table - network 

Your answer is partially correct.

You have correctly selected 1.


The correct answer is: Data is represented in the form of a graph - → network, Data is represented in the form of a tree - → hierarchical, Data is represented
in the form of a table - → relational

Question 4
Correct
45573
Mark 1.00 out of 1.00

Terms of Relational

______ refers to the columns of the table Attribute 

_______ refers to number of columns in the table Degree 

________ refers to number of rows in the table cardinality 

45573
_______ refers to the range of values that can be stored for an attribute
Domain 

______ refers to the rows of the table Tuples 

Your answer is correct.

The correct answer is: ______ refers to the columns of the table → Attribute, _______ refers to number of columns in the table → Degree, ________ refers to
number of rows in the table → cardinality, _______ refers to the range of values that can be stored for an attribute → Domain, ______ refers to the rows of the
table → Tuples

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003415&cmid=6283 2/3
1/21/24, 10:25 PM Post-Quiz: Attempt review

Question 5
Correct

Mark 1.00 out of 1.00

Which of the following is not a valid relational database?

Select one:
MySQL

Sybase

Oracle

Unify

Your answer is correct.

The correct answer is: Unify

45573
◄ RDBMS Concepts

Jump to...

ER Model & Normalization Intro Video ►

45573

45573

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003415&cmid=6283 3/3
1/21/24, 10:14 PM Pre-Quiz: Attempt review


 Dashboard / My courses / MySQL Database / RDBMS Concepts / Pre-Quiz

Quiz review
Started on Sunday, 21 January 2024, 10:08 PM
State Finished
Completed on Sunday, 21 January 2024, 10:14 PM
Time taken 5 mins 22 secs
Marks 4.67/5.00
Grade 93.33 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question 1
Partially correct

Mark 0.67 out of 1.00

45573
Which of the following are data models?

Select one or more:


Conceptual
Relational
Network
Hierarchical

The correct answers are: Hierarchical, Network, Relational

Question 2
Correct
45573
Mark 1.00 out of 1.00

Which of the following are DML statements?

Select one or more:


SELECT
CREATE
INSERT
TRUNCATE

45573
The correct answers are: SELECT, INSERT

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003316&cmid=6280 1/2
1/21/24, 10:14 PM Pre-Quiz: Attempt review

Question 3
Correct

Mark 1.00 out of 1.00

Which of the following represents the degree of the relation?

Select one:
No of rows
Domain
Cardinality
No of Attributes

The correct answer is: No of Attributes

Question 4
Correct

Mark 1.00 out of 1.00

45573
Database is a shared collection of logically unrelated data, designed to meet the needs of an organization. State True or False.

Select one:
TRUE
FALSE

The correct answer is: FALSE

Question 5
Correct
45573
Mark 1.00 out of 1.00

Which of the following are considered as constraints?

Select one or more:


Check
NULL
NOT NULL
Unique

The correct answers are: NOT NULL, Unique, Check


45573

Jump to...

RDBMS Introduction ►

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=1003316&cmid=6280 2/2

You might also like