0% found this document useful (0 votes)
9 views

RDBMS

The document details a series of SQL assessments completed on September 8 and 10, 2024, with scores ranging from 80% to 100%. The assessments cover various SQL concepts, including database constraints, data models, and SQL commands. Overall, the individual passed all assessments with commendable scores, demonstrating a solid understanding of SQL principles.

Uploaded by

letstry1729
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)
9 views

RDBMS

The document details a series of SQL assessments completed on September 8 and 10, 2024, with scores ranging from 80% to 100%. The assessments cover various SQL concepts, including database constraints, data models, and SQL commands. Overall, the individual passed all assessments with commendable scores, demonstrating a solid understanding of SQL principles.

Uploaded by

letstry1729
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/ 127

Started on Sunday, 8 September 2024, 9:38 PM

 State Finished
Completed on Sunday, 8 September 2024, 9:45 PM

Time taken 6 mins 54 secs
Marks 4.00/5.00

Grade 80.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 0.00/1.00
100%

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 1.00/1.00

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

Select one:
a. Application Programmer

b. End User

c. DBA

d. Network Administrator

 Your answer is correct.

The correct answer is: Application Programmer


100%

Question 3 1.00/1.00

Choose Correct Option

hierarchical
Data is represented in the form of a tree -

relational
Data is represented in the form of a table -

network
Data is represented in the form of a graph -

Your answer is correct.

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


Question 4 1.00/1.00

Which of the following is not a valid relational database?


Select one:
100%
a. Unify

 b. MySQL

c. Oracle

d. Sybase

Your answer is correct.

The correct answer is: Unify

Question 5 1.00/1.00

Terms of Relational

cardinality
________ refers to number of rows in the table

Attribute
______ refers to the columns of the table
 

Degree
 _______ refers to number of columns in the table

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

 

Tuples
 ______ refers to the rows of the table

100%

 Your answer is correct.

The correct answer is: ________ refers to number of rows in the table → cardinality, ______ refers to the
columns of the table → Attribute, _______ refers to number of columns in the table → Degree, _______
refers to the range of values that can be stored for an attribute → Domain, ______ refers to the rows of the
table → Tuples
Started on Sunday, 8 September 2024, 9:00 PM
 State Finished
Completed on Sunday, 8 September 2024, 9:00 PM

Time taken 28 secs
Marks 5/5

Grade 100 out of 100

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1/1
100%

Database is a shared collection of logically unrelated data, designed to meet the needs of an organization.

State True or False.

Select one:
a. FALSE
b. TRUE

The correct answer is: FALSE

Question 2 1/1

Which of the following are considered as constraints?

Select one or more:


a. Check
b Unique
b. Unique
 c. NOT NULL
d. NULL


The correct answers are: NOT NULL, Unique, Check

100%
Question 3 1/1

Which of the following represents the degree of the relation?


Select one:
a. No of Attributes
b. Domain
c. No of rows
d. Cardinality

The correct answer is: No of Attributes

Question 4 1/1

Which of the following are DML statements?

Select one or more:


a. INSERT
 b. SELECT
c. CREATE

d. TRUNCATE

 The correct answers are: SELECT, INSERT

100%

Question 5 1/1

Which of the following are data models?

Select one or more:


a. Relational
b. Conceptual
c. Hierarchical
d. Network

The correct answers are: Hierarchical, Network, Relational


Started on Sunday, 8 September 2024, 9:56 PM
 State Finished
Completed on Sunday, 8 September 2024, 10:05 PM

Time taken 9 mins 20 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

SQL was founded in the year 1970. State true or false.


Select one:
True 

False

The correct answer is 'True'.

Question 2 1.00/1.00

The constraint name will be the default name if the constraint name is not mentioned for an attribute. State
true or false.

Select one:
True 
False


The correct answer is 'True'.

 Question 3 1.00/1.00

100% In a relational database a referential integrity constraint can be done using

 Select one:
a. composite key

b. primary key

c. secondary key

d. foreign key

Your answer is correct.

The correct answer is: foreign key

Question 4 1.00/1.00

Which of the following is not a part of RDBMS?

S l
Select one:
 Views
Objects

Polymorphism
 DDL


The correct answer is: Polymorphism

100%

 Question 5 1.00/1.00

Which of the following is not modification of the database?

Select one:
a. Deletion

b. Updating

c. Insertion

d. Sorting

Your answer is correct.


The correct answer is: Sorting
Question 6 1.00/1.00

Column header is referred as

Select one:

a. Table
 b. Tuples

 c. Relation

100%
d. Attributes

e. Domain

Your answer is correct.


The correct answer is: Attributes

Question 7 1.00/1.00

_____ is called as meta data.

Select one:
a. Data Information

b. Meta Information

c. Data Dictionary

d. Meta Dictionary

 Your answer is correct.

The correct answer is: Data Dictionary


 Question 8 0.00/1.00

100%
Which of the following data models supports many-to-many relationships?


Select one or more:
Relational model
Hierarchical model 
Network model
Waterfall model

The correct answers are: Network model, Relational model

Question 9 1.00/1.00

A relational database consists of a collection of

Select one:
a. Records
b. Tables

c. Keys

d. Fields


Your answer is correct.

 The correct answer is: Tables

100%


Question 10 1.00/1.00

Which of these are standard and best practises for SQL?

Select one:
Use upper case for all SQL keywords.
All of the given options
Don't use space in identifiers.
Each table must have a primary key.

The correct answer is: All of the given options


Started on Tuesday, 10 September 2024, 1:04 PM
 State Finished
Completed on Tuesday, 10 September 2024, 1:12 PM

Time taken 7 mins 54 secs
Marks 9.00/9.00

Grade 100.00 out of 100.00

 Feedback Congratulations!!! You have passed by securing more than 80%


Question 1 1.00/1.00

100%
Which of the following options is not correct?

Select one:
a. alter table emp modify name varchar(30);
b. alter table emp drop column_name;
c. alter table emp drop column column_name;
d. alter table emp add column_name varchar(25);

The correct answer is: alter table emp drop column_name;

Question 2 1.00/1.00

A table consists of ______ primary keys.

Select one:
a. Any number
b. 4

c. 1
 d. 2


The correct answer is: 1

100%
Question 3 1.00/1.00

 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:
a. column level check constraint

b. table level check constraint

c. column level foreign key constraint

d. table level foreign key constraint

Your answer is correct.

The correct answer is: table level check constraint


 Question 4 1.00/1.00

 How would you add a foreign key constraint on the dept_no column in the EMP table, referring to the id
column in the DEPT table?


Select one:

 a. This task cannot be accomplished.

b. Use the UPDATE TABLE command with the MODIFY clause on the EMP table.
100%

c. Use the ALTER TABLE command with the MODIFY clause on the EMP table.

d. Use the ALTER TABLE command with the ADD clause on the EMP table.

e. Use the ALTER TABLE command with the MODIFY clause on the DEPT table.

Your answer is correct.


The correct answer is: Use the ALTER TABLE command with the ADD clause on the EMP table.

Question 5 1.00/1.00

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

Select one:
a. delete from emp where column = salary;
b. alter table emp delete column salary;
lt t bl d l l 
c. alter table emp drop column salary;
 d. alter table emp delete salary;


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


Question 6 1.00/1.00

100%
Choose the correct option


not null
cardholdername

not null
validitydate

unique
cardholderphoneno

check
creditcardtype should be silver or platinum only

primary key
creditcardno

Your answer is correct.


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


Question 7 1.00/1.00


Choose the correct options. __________ command is used to delete the records and _________
 command is used to delete the db objects?

 Select one:
Truncate , Delete
100%

Delete , Truncate

Drop ,Truncate

Truncate , Drop

Your answer is correct.


The correct answer is:
Truncate , Drop

Question 8 2.00/2.00

Which command is used to change a table's behavior?

Select one:
CREATE
CREATE
 DROP

 ALTER 

RENAME


Your answer is correct.

The correct answer is:
100% ALTER


Started on Tuesday, 10 September 2024, 1:12 PM
 State Finished
Completed on Tuesday, 10 September 2024, 1:22 PM

Time taken 9 mins 28 secs
Marks 10.00/10.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Cascade constraints are used only in drop statements. State True or False.

Select one:
True

False 

The correct answer is 'False'.

Question 2 1.00/1.00

The EMPLOYEES table has these columns:


LAST NAME VARCHAR2(35)

SALARY NUMBER(8,2)

HIRE_DATE DATE

Management wants to add a default value to the SALARY column. You plan to alter the table by
 using this SQL statement:

 ALTER TABLE EMPLOYEES


MODIFY (SALARY DEFAULT 5000);

What is true about your ALTER statement?

100%

Select one:

a. Column definitions cannot be altered at add DEFAULT values for columns with a NUMBER
data type.

b. Column definitions cannot be altered to add DEFAULT values.

c. A change to the DEFAULT value affects only subsequent insertions to the table.

d. All the rows that have a NULL value for the SALARY column will be updated with the value
5000.

Your answer is correct.

The correct answer is: A change to the DEFAULT value affects only subsequent insertions to the table.

Question 3 1.00/1.00

Which CREATE TABLE statement is valid?


Which CREATE TABLE statement is valid?


 Select one:
a. CREATE TABLE ord_details 

(ord_no NUMBER(2),
 item_no NUMBER(3),

 ord_date DATE DEFAULT SYSDATE NOT NULL,


CONSTRAINT ord_pk PRIMARY KEY (ord_no,item_no));
100%
b. CREATE TABLE ord_details
 (ord_no NUMBER(2) PRIMARY KEY,

item_no NUMBER(3) PRIMARY KEY,


ord_date DATE NOT NULL);

c. CREATE TABLE ord_details


(ord_no NUMBER(2) UNIQUE, NOT NULL,

item_no NUMBER(3),
ord_date DATE DEFAULT SYSDATE NOT NULL);

d. CREATE TABLE ord_details


(ord_no NUMBER(2),

item_no NUMBER(3),
ord_date DATE DEFAULT NOT NULL,
CONSTRAINT ord_uq UNIQUE (ord_no),

CONSTRAINT ord_pk PRIMARY KEY (ord_no));


 Your answer is correct.

The correct answer is: CREATE TABLE ord_details


 (ord_no NUMBER(2),
item_no NUMBER(3),

ord_date DATE DEFAULT SYSDATE NOT NULL,
CONSTRAINT ord_pk PRIMARY KEY (ord_no,item_no));

100%
Question 4 1.00/1.00


When we attempt to create the salary table with this command:
1.CREATE TABLE salary

2.(employee_id NUMBER(9)
3.CONSTRAINT salary_pk PRIMARY KEY,
4.1995_salaryNUMBER(8,2),

5.manager_name VARCHAR2(25)
6.CONSTRAINT mgr_name_nn NOT NULL,

7.$salary_96NUMBER(8,2));

Which two lines of this statement will return errors?

Select one or more:


a. 5

b. 1
c. 4

d. 3
 e. 2

 f. 7

Your answer is correct.



The correct answers are: 7, 4
100%

Question 5 1.00/1.00

Which of the following are true about check constraints?

Select one:
Check constraint can be used only for column level
Check constraint can be applied only for one column in a table
Check constraint can be applied on characters without the use of scalar functions
Check constraint can be used for both column level and table level

The correct answer is: Check constraint can be used for both column level and table level

Question 6 1.00/1.00
 ____ key has a unique and holds the value to identify the record and duplicate null values are not allowed.

 Select one:
All of the given options

Primary key
 Not Null
Foreign Key

100%
The correct answer is: Primary key

Question 7 1.00/1.00

Composite key is used in one to one relationship. State true or false.

Select one:
True

False 

The correct answer is 'False'.

Question 8 1.00/1.00
 By using _____ datatype we can store numeric and character values as an input

 Select one:
All of the given options
 Char
varchar

varchar2

100%
The correct answer is: All of the given options

Question 9 1.00/1.00

Which statement would you use to add a primary key constraint to the patient table using the id_number
column, immediately enabling the constraint?

Select one:
a. This task cannot be accomplished.

b. ALTER TABLE patient


MODIFY (id_number CONSTRAINT pat_id_pk PRIMARY KEY);

c. ALTER TABLE patient


ADD (id_number CONSTRAINT pat_id_pk PRIMARY KEY);

d. ALTER TABLE patient 


ADD CONSTRAINT pat_id_pk PRIMARY KEY(id_number);

 Your answer is correct.

The correct answer is: ALTER TABLE patient


 ADD CONSTRAINT pat_id_pk PRIMARY KEY(id_number);


Question 10 1.00/1.00
100%

To permanently remove all the data from the STUDENT table, and you need the table structure in the future.

Which single command performs this?

Select one:
a. DELETE * FROM student
KEEP STRUCTURE;

b. TRUNCATE TABLE student; 

c. DROP TABLE student;

d. TRUNCATE TABLE student


KEEP STRUCTURE;

Your answer is correct.


The correct answer is: TRUNCATE TABLE student;
Started on Wednesday, 11 September 2024, 3:00 PM
 State Finished
Completed on Wednesday, 11 September 2024, 3:12 PM

Time taken 12 mins 1 sec
Marks 10.00/10.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Delete statement supports up to two conditions only. State True or False


Select one:
True

False 

The correct answer is 'False'.

Question 2 1.00/1.00

On delete restrict is used to restrict the deletion of child records. State True or False.

Select one:
True 

False

The correct answer is 'True'.


Question 3 1.00/1.00


Which of the following is not a DML statement?
100%

Select one or more:


 SELECT
ALTER
DROP
UPDATE

The correct answers are: DROP, ALTER

Question 4 1.00/1.00

Which are auto-commit statements?

Select one or more:


Insert
Delete
Truncate
Truncate
 Drop


The correct answers are: Drop, Truncate

 Question 5 1.00/1.00

100%
Consider the below table structure:

 Column Name DataType Constraint

Empname Varchar2(20) Not Null

EmpId Number(10) PK

Phoneno Number(10) NotNull

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.

Select one:
a. The column order should not be changed.

b. empid value should be given with double quotes.

c. The statement will get executed successfully

d. Value for phoneno is missing.


p g


 Your answer is correct.
The correct answer is: Value for phoneno is missing.


Question 6 1.00/1.00

100%
DELETE FROM dept WHERE dept_id = 901;
The above delete statement throws an integrity constraint error because a child record was found. What

could we do to make the statement execute?

Select one:
a. Delete the child records first.

b. Add the "CONSTRAINTS CASCADE" option to the command.

c. Add the FORCE keyword to the command.

d. You cannot make the command execute.

Your answer is correct.

The correct answer is: Delete the child records first.

Question 7 1.00/1.00
Examine the structure of the Employee table:

Column Name DataType Constraint

Empname Varchar2(20) Not Null
 EmpId Number(10) PK

 Phoneno Number(10) NotNull

DeptId Number(10) FK

100% Data in the Department table:


DeptId Dname Location

1 Sales Mumbai

2 Marketing Kolkata

Which of the update statement produces the following error in the employee table?
ORA-02291: integrity constraint (SYS_C23) violated - parent key not found

Select one:
a. UPDATE Employee SET Empid = 101 WHERE Deptid=3;

b. UPDATE Employee SET empid = NULL WHERE phoneno=9876543210;

c. UPDATE Employee SET empid = NULL WHERE deptid=5;

d. UPDATE Employee SET Deptid=3 WHERE Empid = 101;

Your answer is correct.

The correct answer is: UPDATE Employee SET Deptid=3 WHERE Empid = 101;


Question 8 1.00/1.00


Which query is used to delete employee records whose age is greater than 55?

Select one:
 Delete * from employee where age=55;

100%
Delete * from employee where age >55;
Delete from employee where age >=55;
 Delete from employee where age >55;

The correct answer is: Delete from employee where age >55;

Question 9 1.00/1.00

Which SQL statement needs both insert and update privilege on the target table and select privilege on the
source table?

Select one:
a. delete
b. merge
c. alter
d. update

The correct answer is: merge

Question 10 1.00/1.00

 Examine the structure of the STUDENT table:

100%
Column Name DataType Constraint

 Stud_id Number(3) PK

Name Varchar2(20) NotNull

Address Varchar2(30)

DOB Date

Which statement inserts a new row into the STUDENT table?

Select one:
a. INSERT INTO student (stud_id, address, name, dob)

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

b. INSERT INTO student VALUES (101,'Smith');

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

d. INSERT INTO student (stud_id, address, dob)

VALUES (101 '100 M i St t' '17 JUN 99')


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


Your answer is correct.

 The correct answer is: INSERT INTO student (stud_id, address, name, dob)
VALUES (101,'100 Main Street','Smith','17-JUN-99');

100%


Started on Wednesday, 11 September 2024, 3:13 PM
 State Finished
Completed on Wednesday, 11 September 2024, 3:17 PM

Time taken 3 mins 12 secs
Marks 5.00/5.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Match appropriately.

Removes all or only the rows specified from the table.


Delete

Removes the entire data from the table, while the structure remains intact.
Truncate

Removes the table itself from the database.
Drop

Your answer is correct.


The correct answer is: Delete → Removes all or only the rows specified from the table., Truncate → Removes
the entire data from the table, while the structure remains intact., Drop → Removes the table itself from the
database.
 Question 2 1.00/1.00


It is possible to update more than one column with a single UPDATE statement. State true or false.

Select one:
 True 

False

100%

The correct answer is 'True'.


Question 3 1.00/1.00

To have all the rows deleted from the table using delete statement, you must specify the query with WHERE
clause that specifies all the rows. State true or false.

Select one:
True

False 

The correct answer is 'False'.

Q estion 4 1 00/1 00
Question 4 1.00/1.00

To change the structure of the table we use

ALTER TABLE
  Syntax.


Your answer is correct.
100%
The correct answer is:
To change the structure of the table we use [ALTER TABLE] Syntax.

Question 5 1.00/1.00

Which statement/command would not cause a transaction to end?

Select one:
CREATE

ROLLBACK

SELECT

COMMIT

Your answer is correct.


 The correct answer is:
SELECT

100%


Started on Wednesday, 11 September 2024, 3:17 PM
 State Finished
Completed on Wednesday, 11 September 2024, 3:30 PM

Time taken 12 mins 30 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

A DML statement is used to modify the structure of the database. State True or false.

Select one:
True

False 

The correct answer is 'False'.

Question 2 1.00/1.00

How do we represent comments in oracle?

Select one or more:


a. ##

b. /* */
/ /

 c. */ */

d. %%

e. - -

 Your answer is correct.


The correct answers are: - -, /* */
100%

Question 3 1.00/1.00

Which option is used to delete data from both parent and child tables?

Select one:
All the given options
Restrict
Set null
Cascade

The correct answer is: Cascade

Question 4 1.00/1.00
Ques o /


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


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

b. Only a DBA can execute the DROP TABLE command.



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

100% d. The structure of the table remains in the database, and the data and indexes are deleted.

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

command is executed.

Your answer is correct.


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 5 0.00/1.00

Which statement is used to update multiple rows in a single query?

Select one:
And
None of the given options
When 
Where


The correct answer is: None of the given options

 Question 6 1.00/1.00

100% Which statements are true regarding constraints?

 Select one or more:


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

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

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

d. 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.

Question 7 1.00/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:

a. DELETE FROM employee; 

 b. This task cannot be accomplished.

 c. DROP TABLE employee;

d. TRUNCATE TABLE employee;


100%

Your answer is correct.


 The correct answer is: DELETE FROM employee;

Question 8 1.00/1.00

Create table subjects(Sub_id number(2) primary key,Subj_name varchar(50));


Insert into subjects values (null,’Oracle’);

What will be the output of the given query?

Select one:
The query will be executed successfully.
The query will generate an ORA-02291: integrity constraint violated-parent key not found error.
None of the given options
The query will generate an ORA-01400: cannot insert NULL value into primary key
The correct answer is: The query will generate an ORA-01400: cannot insert NULL value into primary key

 Question 9 1.00/1.00


Which query will change the cust_address to 'Panama' for those who are from ‘Los Angeles’?


Select one:
100% Update customer set cust_address=’ Los Angeles’ where cust_address=’Panama’;
Update customer make cust_address=’Panama’ where cust_address=’Los Angeles’;

Update table customer set cust_address=’Panama’ where cust_address=’Los Angeles’;
Update customer set cust_address=’Panama’ where cust_address=’Los Angeles’;

The correct answer is: Update customer set cust_address=’Panama’ where cust_address=’Los Angeles’;

Question 10 1.00/1.00

Which query will delete all the data in the Employee table that belongs to the employee id 1207?

Select one:
Delete * from Employee where emp_id=1207;
Delete emp_id=1207 from Employee;
Delete from Employee where emp_id=1207;
Delete all from Employee where emp_id=1207;

The correct answer is: Delete from Employee where emp_id=1207;

100%


Started on Wednesday, 11 September 2024, 3:58 PM
 State Finished
Completed on Wednesday, 11 September 2024, 4:06 PM

Time taken 8 mins 47 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Which statement about SQL is true?


Select one:
a. The results are sorted by the first column in the SELECT list if the ORDER BY clause is not
provided.
b. You cannot specify a column alias in an ORDER BY clause.
c. Date values are displayed in descending order by default.
d. Null values are displayed last in ascending sequences.
e. You cannot sort query results by a column that is not included the SELECT list.

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

Question 2 1.00/1.00

Which statement is used to manipulate data without affecting the data in the table?
 Select one:
Truncate

Insert
 Delete
Select


The correct answer is: Select
100%

Question 3 1.00/1.00

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

Select one:
a. select empname, manager_id from employee where manager_id NULL;
b. select empname, manager_id from employee where manager_id is NULL VALUE;
c. select empname, manager_id from employee where manager_id is NULL;
d. select empname, manager_id from employee where manager_id is NOT NULL;

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

Question 4 1.00/1.00

 Select the missing keyword, to complete the select query for the given scenario

100%

select the student details whose firstname starts with 'A' or whose city is 'Chennai' and firstname ends with 'n'

select * from CSR_STUDENT where firstname like 'A%'

OR

 city ='Chennai'

AND

 firstname like '%n';



 Your answer is correct.

The correct answer is:


 Select the missing keyword, to complete the select query for the given scenario

100%

select the student details whose firstname starts with 'A' or whose city is 'Chennai' and firstname ends with 'n'

select * from CSR_STUDENT where firstname like 'A%' [OR] city ='Chennai' [AND] firstname like '%n';
Question 5 1.00/1.00

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

 Select one:
a. select distinct department_id from employee;
 b. select unique department_id from employee;
c. select department_id from employee;

d. select department_id distinct from employee;
100%

 The correct answer is: select distinct department_id from employee;

Question 6 1.00/1.00

Which statement is true regarding distinct keywords?

Select one:
All the given options
Distinct reduces the execution time of the query.
Distinct decreases the performance of the query.
Distinct remove duplicate values in the Select clause.

The correct answer is: Distinct remove duplicate values in the Select clause.

Question 7 1.00/1.00

Select the suitable option for retrieving all the employees whose name ends with "kumar"?

Select one:

a. select * from employee where empname like '%kumar%';
 b. select * from employee where empname like 'kumar';
c. select * from employee where empname like '%kumar';
100%
d. select * from employee where empname like 'kumar%';

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

Question 8 1.00/1.00

DML is used to__________

Select one:
None of the given options.
Control transactional processing in a database.
Control access to data stored in a database.
Manipulate the data stored in a database.

The correct answer is: Manipulate the data stored in a database.




Question 9 0.00/1.00

Which operator is equivalent to the ‘or’ operator?

Select one:

&&

100% Any
In
 || 

The correct answer is: In

Question 10 1.00/1.00

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

Select one or more:


a. select name,salary from employee where salary between 40000 and 100000;
b. select name,salary from employee where salary>=40000 and salary<=100000;

c. select name,salary from employee where salary between 40000 100000;


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

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;

100%


Started on Wednesday, 11 September 2024, 4:07 PM
 State Finished
Completed on Wednesday, 11 September 2024, 4:12 PM

Time taken 5 mins 20 secs
Marks 5.00/5.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

 Observe this table.

The above query produces an error on execution. What is the reason for the error?

Select one:
a. An alias cannot be used in an expression

b. The alias MIDPOINT should be enclosed within double quotation marks for the CUST_CREDIT_LIMIT/2
expression
c.
The MIDPOINT +100 expression gives an error because CUST_CREDIT_LIMIT contains NULL values


d.
The alias NAME should not be enclosed within double quotation marks


Your answer is correct.
100% The correct answer is:
An alias cannot be used in an expression

Question 2 1.00/1.00

The SELECT statement is used to describe the table and the table data from a database. State true or false.

Select one:
True

False 

The correct answer is 'False'.

Question 3 1.00/1.00
 Which of the following are the correct syntaxes for displaying the StudentName and Department from
Student table?


Select one or more:

a. SELECT STUDENTNAME, DEPARTMENT FROM Student;

 b. select studentname, department FROM Student;

c. SELECT StudentName, Department FROM Student;


100%

d. select studentname, department FROM STUDENT;


Your answer is correct.


The correct answers are: SELECT STUDENTNAME, DEPARTMENT FROM Student;, select studentname, department
FROM Student;, SELECT StudentName, Department FROM Student;,
select studentname, department FROM STUDENT;

Question 4 1.00/1.00

Which of the following command is used to select all the fields available in the table?

Select one:
#

%
%

 ALL

 *


Your answer is correct.

The correct answer is:
 *

100%


Question 5 1.00/1.00

___________ clause is used to retrieve data from one or more tables?

Select one:
Order by

Where

Having

Select

Your answer is correct.

The correct answer is:


Select
Started on Wednesday, 11 September 2024, 4:13 PM
 State Finished
Completed on Wednesday, 11 September 2024, 4:26 PM

Time taken 12 mins 57 secs
Marks 10.00/10.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

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

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

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

Question 2 1.00/1.00

To update the CUST_CREDIT_LIMIT column to NULL for all the customers, where

CUST_INCOME_LEVEL has NULL in the CUSTOMERS table. Which SQL statement will
accomplish the task?


Select one:
 a. UPDATE customers

 SET cust_credit_limit = TO_NUMBER(‘ ‘,9999)


WHERE cust_income_level IS NULL;

100%
b. UPDATE customers
SET cust_credit_limit = NULL
 WHERE cust_income_level = NULL;
c. UPDATE customers

SET cust_credit_limit = TO_NUMBER(NULL)

WHERE cust_income_level = TO_NUMBER(NULL);

d. UPDATE customers 
SET cust_credit_limit = NULL
WHERE cust_income_level IS NULL;

The correct answer is: UPDATE customers


SET cust_credit_limit = NULL
WHERE cust_income_level IS NULL;

Question 3 1.00/1.00
To calculate the number of days from 1st Jan 2007 till date:

 Dates are stored in the default format of dd-mm-rr.


Which SQL statements would give the required output?

Select one or more:

a. SELECT SYSDATE - '01-JAN-2007' FROM DUAL ;

100% b. SELECT SYSDATE - TO_DATE('01/JANUARY/2007') FROM DUAL;


c. SELECT SYSDATE - TO_DATE('01-JANUARY-2007) FROM DUAL; 

d. SELECT TO_DATE(SYSDATE,'DD/MONTH/YYYY')-'01/JANUARY/2007' FROM DUAL;
e. SELECT TO_CHAR(SYSDATE,'DD-MON-YYYY')-'01-JAN-2007' FROM DUAL;

The correct answers are: SELECT SYSDATE - TO_DATE('01/JANUARY/2007') FROM DUAL;, SELECT SYSDATE -
TO_DATE('01-JANUARY-2007) FROM DUAL;

Question 4 1.00/1.00

The CUSTOMERS table has these columns:

CUSTOMER_ID NUMBER(4) NOT NULL


 CUSTOMER_NAME VARCHAR2(100) NOT NULL


CUSTOMER_ADDRESS VARCHAR2(150)


CUSTOMER_PHONE VARCHAR2(20)

 You need to produce output that states "Dear Customer customer_name, ".

100%

The customer_name data values come from the CUSTOMER_NAME column in the

CUSTOMERS table.

Which statement produces this output?

Select one:
a. SELECT 'Dear Customer ' || customer_name || ',' || FROM customers;

b. SELECT "Dear Customer", customer_name || ',' FROM customers;


c. SELECT 'Dear Customer ' || customer_name ',' FROM customers;

d. SELECT dear customer, customer_name, FROM customers;


e. SELECT 'Dear Customer ' || customer_name || ',' FROM customers; 

The correct answer is: SELECT 'Dear Customer ' || customer_name || ',' FROM customers;
 Question 5 1.00/1.00

 To display the names of all promos done after January

1, 2001 starting with the latest promo.



Which query would give the required result? (Choose all that apply.)

 Select one or more:


a. SELECT promo_name,promo_begin_date
100%
FROM promotions
WHERE promo_begin_date > '01-JAN-01'

ORDER BY promo_name DESC;
b. SELECT promo_name,promo_begin_date "START DATE"
FROM promotions
WHERE promo_begin_date > '01-JAN-01'
ORDER BY "START DATE" DESC;
c. SELECT promo_name,promo_begin_date
FROM promotions
WHERE promo_begin_date > '01-JAN-01'
ORDER BY 1 DESC;
d. SELECT promo_name,promo_begin_date
FROM promotions
WHERE promo_begin_date > '01-JAN-01'
ORDER BY 2 DESC;

The correct answers are: SELECT promo_name,promo_begin_date "START DATE"


FROM promotions
WHERE promo_begin_date > '01-JAN-01'
ORDER BY "START DATE" DESC;, SELECT promo_name,promo_begin_date
 FROM promotions
WHERE promo_begin_date > '01-JAN-01'
 ORDER BY 2 DESC;


Question 6 1.00/1.00

100% Generate a list of all customer last names with their credit limits from the CUSTOMERS table. Customers who
do not have a credit limit should appear last in the list. kindly note that customers who do not have credit
 card will have NULL against credit limit.

Which query would achieve the required result?

Select one:
a. SELECT cust_last_name,cust_credit_limit
FROM customers
ORDER BY cust_credit_limit DESC;
b. SELECT cust_last_name,cust_credit_limit
FROM customers
ORDER BY cust_last_name,cust_credit_limit NULLS LAST;
c. SELECT cust_last_name,cust_credit_limit
FROM customers;
d. SELECT cust_last_name,cust_credit_limit
FROM customers
ORDER BY cust_credit_limit;

The correct answer is: SELECT cust_last_name,cust_credit_limit
 FROM customers
ORDER BY cust_credit_limit;

 Question 7 1.00/1.00

100% 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:
a. You need to give the arithmetic expression that involves the salary increment in the SET clause of the
UPDATE statement.
b. You need to give the arithmetic expression that involves the salary increment in the DISPLAY 
clause of the SELECT statement.

c. You need to add a column to the EMP table.


d. You need to give the arithmetic expression that involves the salary increment in the UPDATE 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.
Question 8 1.00/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;
100%

Which change should you make to achieve the desired result?


Select one:
a. Change the operator in the WHERE condition.
b. Change the column in the WHERE condition.

c. Add a second condition to the WHERE condition.

d. Create an outer join.

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

Question 9 1.00/1.00

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

Select one:

a. racle W

 b. racle
c. racle Wo
 d. Oracle

100%
The correct answer is: Oracle

Question 10 1.00/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:
a. SELECT NVL(cust_credit_limit,'Not Available')*.15 "NEW CREDIT"
FROM customers;
b. SELECT TO_CHAR(NVL(cust_credit_limit*.15,'Not Available')) "NEW CREDIT"
FROM customers;
c. SELECT NVL(cust_credit_limit*.15,'Not Available')"NEW CREDIT"
FROM customers;
d. SELECT NVL(TO_CHAR(cust_credit_limit*.15),'Not Available') "NEW CREDIT"
FROM customers;

The correct answer is: SELECT NVL(TO_CHAR(cust_credit_limit*.15),'Not Available') "NEW CREDIT"
FROM customers;

100%


Started on Wednesday, 11 September 2024, 5:30 PM
 State Finished
Completed on Wednesday, 11 September 2024, 5:38 PM

Time taken 8 mins 14 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

SELECT lot_no "Lot Number", COUNT(*) "Number of Cars Available"



FROM cars
WHERE model = 'Fire'

GROUP BY lot_no
HAVING COUNT(*) > 10

ORDER BY COUNT(*);
In the above statement which clause restricts which groups are displayed?

Select one:
a. ORDER BY COUNT(*)
b. HAVING COUNT(*) > 10
c. GROUP BY lot_no
d. WHERE model = 'Fire'
e. SELECT lot_no "Lot Number", COUNT(*) "Number of Cars Available"

The correct answer is: HAVING COUNT(*) > 10


The correct answer is: HAVING COUNT( ) > 10


Question 2 1.00/1.00

 Select the suitable option for displaying the average commission percentage of all employees, where the
commission percentage column of certain employees include NULL value.

Select one:
100%
a. select AVG(ommission_pct) from emp;
b. select AVG(NVL(commission_pct)) from emp;

c. select AVG(NVL(0,commission_pct)) from emp;
d. select AVG(NVL(commission_pct,0)) from emp;

The correct answer is: select AVG(NVL(commission_pct,0)) from emp;

Question 3 0.00/1.00

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:
a. FALSE 
b. TRUE
 The correct answer is: TRUE


Question 4 1.00/1.00

We need to analyze how long your orders take to be shipped from the date that the order is placed. To do
 this, you must create a report that displays the customer number, date ordered, date shipped, and the
number of months in whole numbers from the time the order is placed to the time the order is shipped.
100%
Which statement produces the required results?


Select one:
a. SELECT custid, orderdate, shipdate,
MONTHS_BETWEEN (shipdate, orderdate)"Time Taken"
FROM ord;
b. SELECT custid, orderdate, shipdate,
ROUNDOFF(shipdate - orderdate) "Time Taken"
FROM ord;
c. SELECT custid, orderdate, shipdate,
ROUND(DAYS_BETWEEN (shipdate, orderdate))/ 30) "Time Taken"
FROM ord;
d. SELECT custid, orderdate, shipdate, 
ROUND(MONTHS_BETWEEN (shipdate, orderdate))
"Time Taken" FROM ORD;

The correct answer is: SELECT custid, orderdate, shipdate,


ROUND(MONTHS_BETWEEN (shipdate, orderdate))
"Time Taken" FROM ORD;


Question 5 1.00/1.00

_______ will perform summary operations on a set of values to result an single value.

Select one:

a. Aggregate functions
100% b. Single row functions
c. Numeric functions
 d. Date functions

The correct answer is: Aggregate functions

Question 6 1.00/1.00

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

Select one:
a. FALSE
b. TRUE

The correct answer is: FALSE



 Question 7 1.00/1.00

 The PART table contains these columns:

 ID NUMBER(7) PK
COST NUMBER(7,2)

PRODUCT_ID NUMBER(7)
100%

Evaluate these two SQL statements:



1.SELECT ROUND(MAX(cost),2),

ROUND(MIN(cost),2),ROUND(SUM(cost),2),
ROUND(AVG(cost),2)

FROM part;

2.SELECT product_id, ROUND(MAX(cost),2),

ROUND(MIN(cost),2),ROUND(SUM(cost),2),

ROUND(AVG(cost),2)
FROM part

GROUP BY product_id;

How will the results differ?

Select one:
a One of the statements will generate an error
a. One of the statements will generate an error.

 b. Statement 1 will display a result for each part; statement 2 will display a result for each product.

 c. The results will be the same, but the display will differ.
d. Statement 1 will only display one row of results; statement 2 could display more than one.

 The correct answer is: Statement 1 will only display one row of results; statement 2 could display more than
one.

100%

 Question 8 1.00/1.00

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

Select one:
a. TRUE
b. FALSE

The correct answer is: TRUE

Question 9 1.00/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'.
p y

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

a. SELECT ordid, NVL(to_char(shipdate), 'Not Shipped') SHIPDATE,
NVL(total,'Not Available')TOTAL FROM order;

b. SELECT ordid, shipdate "Not Shipped",
 total "Not Available"
FROM order;
100%
c. SELECT ordid, IFNULL(shipdate, 'Not Shipped') as SHIPDATE,Total FROM order;
d. SELECT ordid,TO_CHAR(shipdate, 'Not Shipped'),

TO_CHAR(total,'Not Available')
FROM order;

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

Question 10 1.00/1.00

Evaluate these two SQL statements:

1. SELECT CONCAT(first_name, last_name),

LENGTH(CONCAT(first_name, last_name))
FROM employee

WHERE UPPER(last_name) LIKE '%J'

OR UPPER(l t ) LIKE '%K'


OR UPPER(last_name) LIKE %K
 OR UPPER(last_name) LIKE '%L';


2. SELECT INITCAP(first_name) || INITCAP(last_name),

LENGTH(last_name) + LENGTH(first_name)
 FROM employee

WHERE INITCAP(SUBSTR(last_name, 1, 1)) IN ('J', 'K', 'L');



How will the results differ?
100%

Select one:
 a. The statements will retrieve the same data from the database, but will display it differently.

b. The statements will retrieve different data from the database.


c. Statement 1 will execute, but statement 2 will not.
d. Statement 2 will execute, but statement 1 will not.

The correct answer is: The statements will retrieve different data from the database.
Started on Wednesday, 11 September 2024, 5:38 PM
 State Finished
Completed on Wednesday, 11 September 2024, 5:42 PM

Time taken 3 mins 22 secs
Marks 4.00/5.00

Grade 80.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Single row function accepts only a single argument. State true or false.

Select one:
True

False 

The correct answer is 'False'.

Question 2 1.00/1.00

Using the CUSTOMERS table, you need to generate a report that shown the average credit limit for customers
in WASHINGTON and NEW YORK. Which SQL statement would produce the required result?

100% Select one:


a. SELECT cust_city,AVG(NVL(cust_credit_limit,0)) FROM customers WHERE cust_city IN
 ('WASHINGTON','NEW YORK')

b. SELECT cust_city,AVG(cust_credit_limit) FROM customers WHERE cust_city IN ('WASHINGTON','NEW


YORK') GROUP BY cust_city,cust_credit_limit;

c. SELECT cust_city,AVG(cust_credit_limit) FROM customers WHERE cust_city IN ('WASHINGTON','NEW 


YORK') GROUP BY cust_city;

d. SELECT cust_city,AVG(cust_credit_limit) FROM customers WHERE cust_city IN ('WASHINGTON','NEW


YORK') GROUP BY cust_credit_limit,cust_city;

Your answer is correct.


The correct answer is: SELECT cust_city,AVG(cust_credit_limit) FROM customers WHERE cust_city IN
('WASHINGTON','NEW YORK') GROUP BY cust_city;

Question 3 1.00/1.00
 Which of the following clause is the last clause in the select statement?

 Select one:
Group By

Where

Having

Order By

100%

 Your answer is correct.

The correct answer is:


Order By

Question 4 0.00/1.00

Choose the missing clauses in the order of execution of a query._______ , where, _______ , having ,
_________ , order by.

Select one:
select,group by,from

select,from,group by 

from,group by,select

from,select,group by

Your answer is incorrect.

The correct answer is:
 from,group by,select


Question 5 1.00/1.00

100%

State True or False. Single row functions work on single row and gives single output per row whereas
 aggregate functions work on multiple rows and gives single output as a whole.

Select one:
True 

False

The correct answer is 'True'.


Started on Wednesday, 11 September 2024, 5:42 PM
 State Finished
Completed on Wednesday, 11 September 2024, 5:48 PM

Time taken 5 mins 49 secs
Marks 10.00/10.00

Grade 100.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Consider the below tables:


Promotions Table

Column Name Datatype Constraint

Promo_id Number PK

Promo_name Varchar

Promo_begin_date Date

Promo_end_date Date

Sales Table

Column Name Datatype Constraint

Promo_id Number FK

Cust_id Number FK

Time_id Date
 Customer Table

 Column Name Datatype Constraint

cust_id Number PK

cust_name Varchar

The Below query will generate a report showing the promo name along with the

customer name for all products that were sold during their promo campaign and before 30th October 2007.
100%
SELECT promo_name,cust_name FROM promotions p JOIN sales s

ON(time_id BETWEEN promo_begin_date AND promo_end_date)

JOIN customer c ON (s.cust_id = c.cust_id) AND time_id < '30-oct-2007';

Which statement is true regarding the above query?

Select one:
a. It produces an error because the join order of the tables is incorrect.

b. It executes successfully but does not give the required result.

c. It executes successfully and gives the required result.

d. It produces an error because equijoin and nonequijoin conditions cannot be used in the same

Your answer is correct.


The correct answer is: It executes successfully but does not give the required result.

 Question 2 1.00/1.00

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


Emp_Id Dept_Id Commission
100%
1 10 500

 2 20 1000

3 10

4 10 600

5 30 800

6 30 200

7 10

8 20 300

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

Select one or more:


a. Listing the departments whose average commission is more that 600
b. Listing the employees who earn the same amount of commission as employee 3

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

d. Finding the total commission earned by the employees in department 10



e. Listing the employees whose annual commission is more than 6000

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

100%

Your answer is correct.



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

Question 3 1.00/1.00

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

Select one:
a. SELECT employees.last_name, departments.department_name,

departments.location_id FROM employees e, departments d


WHERE e.department_id =d.department_id;

b SELECT e last name d department name d location id


b. SELECT e.last_name, d.department_name, d.location_id
 FROM employees e, departments d

WHERE e.department_id =d.department_id;



c. SELECT last_name, department_name, location_id

FROM employees , departments ;
 d. SELECT e.last_name, d.department_name, d.location_id

 FROM employees e, departments d

WHERE manager_id =manager_id;


100%


Your answer is correct.

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;

Question 4 1.00/1.00

SELECT cust_city, COUNT(cust_last_name)


FROM customers
WHERE cust_credit_limit > 1000
GROUP BY cust_city
HAVING AVG(cust_credit_limit) BETWEEN 5000 AND 6000;

Which statement is true regarding the outcome of the above query?



Select one:
 a. Date functions

b. It returns an error because the BETWEEN operator cannot be used in the HAVING clause.

c. It returns an error because WHERE and HAVING clauses cannot be used to apply conditions on the
 same column.

 d. It returns an error because WHERE and HAVING clauses cannot be used in the same SELECT
statement.
100%
e. It executes successfully.

Your answer is correct.


The correct answer is: It executes successfully.

Question 5 1.00/1.00

Which statements are true regarding the USING and ON clauses in table joins?

Select one or more:


a. The WHERE clause can be used to apply additional conditions in SELECT statement containing the 
ON or the USING clause.

b. Both USING and ON clause can be used for equijoins and nonequijoins
c. The ON clause can be used to join tables on columns that have different names but compatible 
 data types.

 d. Maximum of one pair of columns can be joined between two tables using the ON clause

Your answer is correct.



The correct answers are: The ON clause can be used to join tables on columns that have different names but
 compatible data types., The WHERE clause can be used to apply additional conditions in SELECT
statement containing the ON or the USING clause.
100%

Question 6 1.00/1.00

The following query is written to retrieve all those product IDs from the SALES table that have more than
55000 sold and have been ordered more than 10 times:

SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*)>10
GROUP BY prod_id HAVING COUNT(*)>10;

Which statement is true regarding this SQL statement?

Select one:
a. It produces an error because COUNT (*) should be only in the HAVING clause and not in the WHERE 
clause.

b. It executes successfully but produces no result because COUNT(prod_id) should be used instead of
COUNT(*) .
c. It executes successfully and generates the required result.
d. It produces an error because COUNT (*) should be specified the SELECT clause also.


The correct answer is: It produces an error because COUNT (*) should be only in the HAVING clause and not
in the WHERE clause.


Question 7 1.00/1.00

100%
Which SQL statement produces an error?

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

Th i N f h d ll lid
The correct answer is: None of the statements produce an error; all are valid.

 Question 8 1.00/1.00

 Which statement would display the highest credit limit available in each income level in each city in the
Customers table?

Select one:
100%
a. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers

GROUP BY cust_city , , cust_income_level ,MAX(cust_credit_limit);
b. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level,cust_credit_limit;
c. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_credit_limit , cust_income_level, cust_city ;
d. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level;

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


FROM customers
GROUP BY cust_city, cust_income_level;
 Question 9 1.00/1.00


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

 SELECT last_name, first_name


FROMemployee

WHEREsalary > AVG(salary);

100%
Which change should you make to achieve the desired results?


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

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

d. Change the function in the WHERE clause.

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

Question 10 1.00/1.00

Which statements would execute successfully?


Select one or more:
 a. SELECT SUM (DISTINCT NVL(subject1,0)),MAX(subject1)
FROM marks
 WHERE subject1 > subject2;
b. SELECT student_name,subject1

FROM marks

WHERE subject1 > AVG(subject1);

 c. SELECT SUM (subject1+subject2+subject3)


FROM marks
100%
WHERE student_name IS NULL
d. SELECT student_name,SUM(subject1)

FROM marks
WHERE student_name LIKE 'R%';

The correct answers are: SELECT SUM (DISTINCT NVL(subject1,0)),MAX(subject1)


FROM marks
WHERE subject1 > subject2;, SELECT SUM (subject1+subject2+subject3)
FROM marks
WHERE student_name IS NULL
Started on Wednesday, 11 September 2024, 7:33 PM
 State Finished
Completed on Wednesday, 11 September 2024, 7:39 PM

Time taken 6 mins 5 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

The NOT operator can be used with ______ operators.


Select one or more:


a. >

b. ALL

c. ANY

d. IN

Your answer is correct.

The correct answers are: IN, ANY, ALL

Question 2 1.00/1.00

Evaluate this SQL statement:


Q
SELECT first_name, commission
 FROM employee
WHERE commission =

(SELECT commission
 FROM employee
WHERE UPPER(first_name) = 'SCOTT');

What would cause this statement to fail?

Select one:
100%
a. There is more than one employee with the first name Scott.

 b. Scalar function is not allowed in Subquery.

c. The FIRST_NAME values in the database are in lowercase.

d. Scott has a zero commission value.

e. All the given options

Your answer is correct.

The correct answer is: There is more than one employee with the first name Scott.

Question 3 1.00/1.00

Consider the following table:

Product Table
Column Name DataType Constraint

prod_name Varchar2(20)

prod_id Number(10) PK

Customer Table

Column Name DataType Constraint

cust_last_name Varchar2(20)
100%
cust_id Number(10) PK

 cust_city Varchar2(20)

Sales Table

Column Name DataType Constraint

prod_id Number(10) FK

cust_id Number(10) FK

quantity_sold Number(10,2)

Generate a report that gives details of the customer's last name, name of the product and the quantity sold
for all customers in 'Tokyo'.

Which two queries give the required result? (Choose two.)

Select one or more:


a. SELECT c.cust_last_name,p.prod_name,s.quantity_sold
FROM sales s JOIN products p
FROM sales s JOIN products p

 USING (prod_id)

JOIN customers c

USING (cust_id)
 WHERE c.cust_city='Tokyo';

 b. SELECT c.cust_last_name,p.prod_name,s.quantity_sold

FROM products p JOIN sales s



ON(p.prod_id=s.prod_id)
100%
JOIN customers c

ON(s.cust_id=c.cust_id)

WHERE c.cust_city='Tokyo';

c. SELECT c.cust_last_name,p.prod_name,s.quantity_sold

FROM products p JOIN sales s


USING (prod_id)
ON(p.prod_id=s.prod_id)

JOIN customers c
USING(cust_id)

WHERE c.cust_city='Tokyo';

d. SELECT c.cust_last_name,p.prod_name,s.quantity_sold

FROM products p JOIN sales s JOIN customers c


ON(p.prod_id=s.prod_id)

ON(s.cust_id=c.cust_id)

WHERE c.cust_city='Tokyo';

Your answer is correct.
 The correct answers are: SELECT c.cust_last_name,p.prod_name,s.quantity_sold
FROM sales s JOIN products p
 USING (prod_id)
JOIN customers c

USING (cust_id)
WHERE c.cust_city='Tokyo';, SELECT c.cust_last_name,p.prod_name,s.quantity_sold

FROM products p JOIN sales s
100%
ON(p.prod_id=s.prod_id)
JOIN customers c
 ON(s.cust_id=c.cust_id)
WHERE c.cust_city='Tokyo';

Question 4 1.00/1.00

Which SELECT statement displays all the employees who do not have any subordinates?

Select one:
a. SELECT e.ename
FROM emp e
WHERE e.empno NOT IN (SELECT m.mgr
FROM emp m);

b. SELECT e.ename 

FROM emp e

WHERE e.empno NOT IN (SELECT m.mgr


FROM emp m
 WHERE m.mgr IS NOT NULL);

 c. SELECT e.ename

FROM emp e

WHERE e.empno IN (SELECT m.mgr

FROM emp m);

 d. SELECT e.ename
FROM emp e
100%
WHERE e.mgr IS NOT NULL;

Your answer is correct.

The correct answer is: SELECT e.ename


FROM emp e
WHERE e.empno NOT IN (SELECT m.mgr
FROM emp m
WHERE m.mgr IS NOT NULL);

Question 5 1.00/1.00

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

Select one or more:


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

b. The tables to be joined have columns with the same name and compatible data types.
 c. The tables to be joined have multiple NULL columns.

d. You want to create a nonequijoin.



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.

100%


Question 6 1.00/1.00

Consider the below tables:

Employee Table

Column Name DataType Constraint

Name Varchar2(20)

Empno Number(10) PK

salary Number(10,2)

Tax Table

Column Name DataType Constraint

Taxgrade Number

Lowsal Number(10)

highsal Number(10,2)

We want to create a report that displays the employee details along with the tax category of each
 employee. The tax category is determined by comparing the salary of the employee from the EMP table to
the lower and upper salary values in the TAX table.

Which SELECT statement produces the required results?

Select one:

a. SELECT e.name, e.salary, t.taxgrade

100% FROM emp e, tax t

WHERE e.salary IN t.lowsal AND t.highsal;



b. SELECT e.name, e.salary, t.taxgrade
FROM emp e, tax t
WHERE e.salary <= t.lowsal OR e.salary >= t.highsal;

c. SELECT e.name, e.salary, t.taxgrade


FROM emp e, tax t
WHERE e.salary >= t.lowsal AND <= t.highsal;

d. SELECT e.name, e.salary, t.taxgrade 

FROM emp e, tax t


WHERE e.salary BETWEEN t.lowsal AND t.highsal;

Your answer is correct.


The correct answer is: SELECT e.name, e.salary, t.taxgrade
FROM emp e tax t
FROM emp e, tax t
 WHERE e.salary BETWEEN t.lowsal AND t.highsal;


Question 7 1.00/1.00


SELECT last_name, first_name
 FROM employee
WHERE salary IN
100% (SELECT salary
FROM employee
 WHERE dept_no = 3 OR dept_no = 5);
Which values are displayed?

Select one:
a. last name and first name of only the employees whose salary falls in the range of salaries from
department 3 or 5

b. last name and first name of all employees except those working in department 3 or 5

c. last name and first name of only the employees in department number 3 or 5

d. last name and first name of all employees with the same salary as employees in department 3 or 
5

Your answer is correct.


The correct answer is: last name and first name of all employees with the same salary as employees in
department 3 or 5

Question 8 1.00/1.00

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

 Select one:
a. IN operator

b. BETWEEN x AND y operator
100%
c. LIKE operator

 d. equal operator

e. greater than or equal to operator

Your answer is correct.


The correct answer is: equal operator

Question 9 0.00/1.00

In which cases would you use an outer join?

Select one:
a. The tables being joined have only matched data.

b. The tables being joined have NOT NULL columns.

c Only when the tables have a primary key/foreign key relationship 


c. Only when the tables have a primary key/foreign key relationship. 
 d. The tables being joined have both matched and unmatched data.

 e. The tables being joined have only unmatched data.

Your answer is incorrect.



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

100%

 Question 10 1.00/1.00

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

SELECT last_name, first_name


FROMemployee
WHEREsalary > AVG(salary);

Which change should you make to achieve the desired results?

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

b. Change the function in the WHERE clause.

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

d. Use a subquery in the WHERE clause to compare the average salary value.
 Your answer is correct.
The correct answer is: Use a subquery in the WHERE clause to compare the average salary value.

100%


Started on Wednesday, 11 September 2024, 7:39 PM
 State Finished
Completed on Wednesday, 11 September 2024, 7:41 PM

Time taken 1 min 44 secs
Marks 4.00/5.00

Grade 80.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

You issue the following SQL statement on the CUSTOMERS table to display the customers who are in the
same country as customers with the last name 'king' and whose credit limit is less than the maximum credit
limit in countries that have customers with the last name 'king'.


Which statement is true regarding the outcome of the above query?


Select one:
 a. It produces an error and the < operator should be replaced by < ALL to get the required output.

100% b. It produces an error and the < operator should be replaced by < ANY to get the required output

c. It produces an error and the IN operator should be replaced by = in the WHERE clause of the main

query to get the required output

d. It executes and shows the required result.

Your answer is correct.

The correct answer is: It executes and shows the required result.

Question 2 1.00/1.00

Where can subqueries be used?

Select one or more:


a. The WHERE clause in only the SELECT statement
b. The FROM clause in the SELECT statement

c. The HAVING clause in the SELECT statement

d. The GROUP BY clause in the SELECT statement

e. Field names in the SELECT statement.

 f. The WHERE clause in the SELECT as well as all DML statements

100%
Your answer is correct.
The correct answers are: Field names in the SELECT statement., The FROM clause in the SELECT statement, The
 HAVING clause in the SELECT statement, The WHERE clause in the SELECT as well as all DML statements

Question 3 1.00/1.00

The NOT operator can be used with IN, ANY, and ALL operators in multiple-row subqueries. State true or false.

Select one:
True 

False

The correct answer is 'True'.



Question 4 1.00/1.00


Main query and subquery can get data from different tables.

Select one:

True 

 False

100%

The correct answer is 'True'.


Question 5 0.00/1.00

Subquery can be used in which of the following statements?

Select one:
Select 

Insert

Delete

All the given options

Update

Your answer is incorrect.


ou a s e s co ec .

 The correct answer is:


All the given options

100%


Started on Wednesday, 11 September 2024, 7:41 PM
 State Finished
Completed on Wednesday, 11 September 2024, 7:47 PM

Time taken 5 mins 51 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

Consider the below tables:


Customer Table

Column Name Datatype Constraint

custNo Number PK

custname Varchar

custaddress varchar

Cust_credit_limit Number

Grade Table

Column Name Datatype Constraint

Grade Varchar

Startval Number

Endval Number
 To display names and grades of customers who have the highest credit limit.
Which SQL statements would accomplish the task?

Select one or more:

a. SELECT custname, grade

 FROM customers, grades


WHERE cust_credit_limit IN (SELECT MAX(cust_credit_limit)

FROM customers)
100%
AND MAX(cust_credit_limit) BETWEEN startval AND endval;

 b. SELECT custname, grade 

FROM customers, grades

WHERE cust_credit_limit = (SELECT MAX(cust_credit_limit)

FROM customers)
AND cust_credit_limit BETWEEN startval AND endval;

c. SELECT custname, grade 


FROM customers, grades
WHERE (SELECT MAX(cust_credit_limit)
FROM customers) BETWEEN startval and endval
AND cust_credit_limit BETWEEN startval AND endval;

d. SELECT custname, grade


FROM customers, grades
WHERE (SELECT MAX(cust_credit_limit)
FROM customers) BETWEEN startval and endval;

Your answer is correct.


 The correct answers are: SELECT custname, grade
FROM customers, grades
 WHERE cust_credit_limit = (SELECT MAX(cust_credit_limit)
FROM customers)
 AND cust_credit_limit BETWEEN startval AND endval;, SELECT custname, grade
FROM customers, grades
 WHERE (SELECT MAX(cust_credit_limit)
FROM customers) BETWEEN startval and endval

AND cust_credit_limit BETWEEN startval AND endval;

100%


Question 2 1.00/1.00

Joining a table to itself is called as ______.

Select one:
a. Outer Join

b. Self Join

c. Equi Join

d. Non Equi Join

Your answer is correct.

The correct answer is: Self Join


 Question 3 1.00/1.00


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


Select one:
 a. Cross

b. Left Outer

c. Natural
100%
d. Full Outer

Your answer is correct.


The correct answer is: Natural

Question 4 1.00/1.00

Consider the below orders table:

Column Name Datatype Constraint

order_id Number PK

Order_date Date

Order_mode varchar

Customer_id Number
 Order_total Number(8,2)


There is only one customer with the CUST_LAST_NAME column having value Roberts. Which INSERT
statement should be used to add a row into the ORDERS table for the customer whose CUST_LAST_NAME is

Roberts and CREDIT_LIMIT is 600?

Select one:
 a. INSERT INTO orders ( order_id ,order _date,order_mode , (SELECT customer_id FROM customers

WHERE cust_last_name ='Roberts' AND


100%

credit_limit =600) , order _total )


 VALUES (1,'10-mar-2007','direct' ,& customer_id,1000);

b. INSERT INTO( SELECT o.order_id,o.order,o.order_mode,c.customer_id,o.order_total

FROM orders o, customers c WHERE o.customer_id = c.customer_id AND c.cust_last_name


='Roberts' and c.credit_limit =600)

VALUES (1,'10-mar-2007','direct' ,& &customer_id,1000);

FROM customers
WHERE cust_last_name ='Roberts' AND

credit_limit =600) ,1000 );

c. INSERT INTO orders VALUES( 1,'10-mar-2007','direct', (SELECT customer_id FROM

customers WHERE cust_last_name ='Roberts' AND


credit_limit =600) ,1000 );

d. INSERT INTO orders ( order_id ,order _date,order_mode , (SELECT customer_id FROM customers

WHERE cust_last_name ='Roberts' AND

credit_limit =600) , order _total )


VALUES (1,'10-mar-2007','direct' ,& &customer_id,1000);


Your answer is correct.

The correct answer is: INSERT INTO orders VALUES( 1,'10-mar-2007','direct', (SELECT customer_id FROM
customers WHERE cust_last_name ='Roberts' AND

credit_limit =600) ,1000 );

100%

Question 5 1.00/1.00

Mr. John is the president of a company. Five managers report to him. All other employees report to these
managers.

Examine the code:


SELECT employee.ename FROM emp employee
WHERE employee.empno NOT IN (SELECT manager.mgr
FROM emp manager);

The above statement returns no rows selected. as the result. Why?

Select one:
a. None of the employees has a manager.

b. All employees have a manager.

c. A NULL value is returned from the subquery.

d. NOT IN operator is not allowed in subqueries.



Your answer is correct.
 The correct answer is: A NULL value is returned from the subquery.


Question 6 1.00/1.00

100% Consider the below table:


Products Table

Column Name Datatype Constraint

Prod_id Number PK

Prod_name Varchar

Prod_list_price varchar

Cust_credit_limit Number

What would be the outcome of executing the below SQL statement?

select prod_name from products where prod_id in(


select prod_id from products where prod_list_price=(
select max(prod_list_price) from products where prod_list_price<(
select max(prod_list_price)from products)));

Select one:
a It shows the names of all products in the table
a. It shows the names of all products in the table.
 b. It produces an error

 c. It shown the names of all products whose list price is less than the maximum list price

d. It shown the names of products whose list price is the second highest in the table


Your answer is correct.

The correct answer is: It shown the names of products whose list price is the second highest in the table
100%

Question 7 1.00/1.00

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

Select one:
a. Self Join

b. Outer Join

c. Non Equi Join

d. Equi Join

Your answer is correct.


The correct answer is: Outer Join
 Question 8 1.00/1.00


To delete rows from the SALES table, where the PROMO_NAME column in the
PROMOTIONS table has either 'blowout sale' or 'everyday low price' as values.

Which DELETE statements are valid? (Choose all that apply.)

Select one or more:
 a. DELETE 

100%
FROM sales

WHERE promo_id IN (SELECT promo_id



FROM promotions
WHERE promo_name = 'blowout sale'

OR promo_name = 'everyday low price');

b. DELETE 
FROM sales
WHERE promo_id IN (SELECT promo_id
FROM promotions
WHERE promo_name IN ('blowout sale','everyday low price'));

c. DELETE 

FROM sales
WHERE promo_id = (SELECT promo_id

FROM promotions
WHERE promo_name = 'blowout sale')
OR promo_id = (SELECT promo_id

FROM promotions
WHERE promo_name = 'everyday low price');

d. DELETE
 FROM sales
WHERE promo_id = (SELECT promo_id
 FROM promotions
WHERE promo_name = 'blowout sale')
 AND promo_id = (SELECT promo_id
FROM promotions

WHERE promo_name = 'everyday low price');
100%

 Your answer is correct.


The correct answers are: DELETE
FROM sales
WHERE promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = 'blowout sale')
OR promo_id = (SELECT promo_id
FROM promotions
WHERE promo_name = 'everyday low price');, DELETE
FROM sales
WHERE promo_id IN (SELECT promo_id
FROM promotions
WHERE promo_name = 'blowout sale'
OR promo_name = 'everyday low price');, DELETE
FROM sales
WHERE promo_id IN (SELECT promo_id
FROM promotions
WHERE promo_name IN ('blowout sale','everyday low price'));

 Question 9 0.00/1.00

 Equijoin is called as ______.


Select one:

 a. Simple Join

b. Outer Join
100%

c. Equal Join 

d. Self Join

Your answer is incorrect.

The correct answer is: Simple Join

Question 10 1.00/1.00

The _______ join produces the cross product of two tables.

Select one:
a. Equi

b. Outer

c. Self
d. Cross


Your answer is correct.

The correct answer is: Cross

100%


Started on Wednesday, 11 September 2024, 7:48 PM
 State Finished
Completed on Wednesday, 11 September 2024, 7:56 PM

Time taken 7 mins 45 secs
Marks 9.00/10.00

Grade 90.00 out of 100.00

 Congratulations!!! You have passed by securing more than 80%


Feedback


Question 1 1.00/1.00
100%

CREATE INDEX emp_dept_id_idx



ON employee(dept_id);

Which of the following statements are true with respect to the above index?

Select one:
a. Increase the chance of full table scans.

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

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

d. Store an index in the EMPLOYEE table.

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

Your answer is correct.


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

Question 2 1.00/1.00

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

Select one:

a. REMOVE emp_dept_vu;
 b. REMOVE VIEW emp_dept_vu;

100% c. DROP VIEW emp_dept_vu;

d. DELETE VIEW emp_dept_vu;



e. DROP emp_dept_vu;

f. DELETE emp_dept_vu;

Your answer is correct.

The correct answer is: DROP VIEW emp_dept_vu;

Question 3 1.00/1.00

You need to create the patient_id_seq sequence to be used with the patient table's primary key column.
The sequence should begin at 1000, have a maximum value of 999999999, never reuse any numbers, and
increment by 1.

Which statement would you use to complete this task?


 Select one:
a. CREATE SEQUENCE patient_id_seq

ON patient (patient_id)

 MINVALUE 1000

MAXVALUE 999999999

INCREMENT BY 1
 NOCYCLE;

100% b. CREATE SEQUENCE patient_id_seq

START WITH 1000



MAXVALUE 999999999
NOCYCLE;

c. CREATE SEQUENCE patient_id_seq

START WITH 1000


MAXVALUE 999999999
STEP BY 1;

d. This task cannot be accomplished.

Your answer is correct.


The correct answer is: CREATE SEQUENCE patient_id_seq
START WITH 1000
MAXVALUE 999999999
NOCYCLE;

Question 4 0.00/1.00

Create index customer_index on customer_info(lower(city));



What will be the output of the query?

Select one:

An index can be created only on a date.

100% The Index will be created successfully.


An index can be created only on integers
 The query will generate an error. 
Cannot apply a function to a column in the index.

The correct answer is: The Index will be created successfully.

Question 5 1.00/1.00

Create or replace view Employees as Select emp_id,dep_name from employee_master natural join
department_info;

In the above complex view insert,update and delete operations are possible. State true or false.

Select one:
True

False 

The correct answer is 'False'.

 Question 6 1.00/1.00

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

100%
Select one:

 a. grant select on department to PUBLIC;

b. grant select on department to ALL USERS;

c. grant select on department to PRIVATE;

d. grant select on department to ALL;

Your answer is correct.


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

Question 7 1.00/1.00

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

Select one:
True 
True 
 False

The correct answer is 'True'.



Question 8 1.00/1.00

100%
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'.

Question 9 1.00/1.00

A/an ______ index is based on expressions.

Select one:
a. Unique Index

b. Non clustered Index


c. Clustered Index

d. Function Based


Your answer is correct.

 The correct answer is: Function Based

100%

Question 10 1.00/1.00

Which object privileges can be granted on a view?

Select one:
a. DELETE, INSERT, SELECT, UPDATE

b. none

c. DELETE, INSERT,SELECT

d. ALTER, DELETE, INSERT, SELECT

Your answer is correct.

The correct answer is: DELETE, INSERT, SELECT, UPDATE

You might also like