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

rdbms

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

rdbms

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 63

 Parvesh Modi .

 Dashboard / RDBMS / RDBMS Concepts / Post-Quiz

Started on Monday, 22 March 2021, 11:49 PM


State Finished
Completed on Monday, 22 March 2021, 11:56 PM
Time taken 6 mins 35 secs
Marks 4.60/5.00
Grade 92.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question Which of the following is not a valid relational database?


1
Correct

Mark 1.00 out of Select one:


1.00 a. Sybase

b. Unify 

c. MySQL

d. Oracle

Your answer is correct.

The correct answer is: Unify

Question SQL is a case sensitive language and the data stored inside the table are case in-sensitive. Say true or false?
2
Select one:
Correct
True
Mark 1.00 out of
1.00
False 

The correct answer is 'False'.

Question Terms of Relational


3
_______ refers to the range of values that can be stored for an attribute
Partially correct
Degree 
Mark 0.60 out of
1.00
_______ refers to number of columns in the table Domain 

______ refers to the rows of the table Tuples 

________ refers to number of rows in the table cardinality 

______ refers to the columns of the table Attribute 

Your answer is partially correct.

You have correctly selected 3.


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

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

Mark 1.00 out of


1.00
Select one:
a. Network Administrator

b. End User

c. DBA

d. Application Programmer 

Your answer is correct.

The correct answer is: Application Programmer

Question Choose Correct Option


5
Correct Data is represented in the form of a tree - hierarchical 
Mark 1.00 out of
Data is represented in the form of a graph - network 
1.00

Data is represented in the form of a table - relational 

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 graph - → network,
Data is represented in the form of a table - → relational
 Parvesh Modi .

 Dashboard / RDBMS / RDBMS Concepts / Pre-Quiz

Started on Monday, 22 March 2021, 11:46 PM


State Finished
Completed on Monday, 22 March 2021, 11:48 PM
Time taken 2 mins 35 secs
Marks 5/5
Grade 100 out of 100
Feedback Congratulations!!! You have passed by securing more than 80%

Question Which of the following are DML statements?


1
Select one or more:
Correct
a. INSERT 
Mark 1 out of 1

b. SELECT 

c. TRUNCATE

d. CREATE

The correct answers are: SELECT, INSERT

Question Which of the following are considered as constraints?


2
Select one or more:
Correct
a. Unique 
Mark 1 out of 1
b. NOT NULL 

c. Check 

d. NULL

The correct answers are: NOT NULL, Unique, Check

Question Which of the following are data models?


3
Select one or more:
Correct

Mark 1 out of 1
a. Hierarchical 

b. Relational 

c. Network 

d. Conceptual

The correct answers are: Hierarchical, Network, Relational

Question Database is a shared collection of logically unrelated data, designed to meet the needs of an organization. State True or False.
4
Select one:
Correct

Mark 1 out of 1
a. TRUE

b. FALSE 

The correct answer is: FALSE


 Parvesh Modi .

Question Which of the following represents the degree of the relation?


5
Select one:
Correct
a. No of rows
Mark 1 out of 1

b. Cardinality

c. Domain

d. No of Attributes 

The correct answer is: No of Attributes


31/03/2020 Post-Quiz: Attempt review

 Adeeb Khan .

 Dashboard / RDBMS / Data Definition Language / Post-Quiz

Started on Saturday, 25 January 2020, 4:43 PM


State Finished
Completed on Saturday, 25 January 2020, 4:49 PM
Time taken 5 mins 55 secs
Marks 8.30/9.00
Grade 92.22 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

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

Correct

Mark 1.00 out


of 1.00
Select one:
a. column level foreign key constraint

b. table level check constraint 

c. table level foreign key constraint

d. column level check constraint

Your answer is correct.

The correct answer is: table level check constraint

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=32750&cmid=1147 1/5
31/03/2020 Post-Quiz: Attempt review

Question theAdeeb
Tom , the administrator gets an error when executing the following scripts in the Oracle server. He finds that SQL Khan .
2 statements placed are not in the correct order.
Partially Help Tom to place the statements in the correct order. The script starts from the creation of course table. The schema
correct diagram is given below
Mark 0.50 out
of 1.00

 CREATE TABLE enrollment


(
batchid char(4),
sid char(4) ,
edate date,
primary key(batchid,sid),
foreign key(sid) references student(sid),
foreign key(batchid) references batch(batchid)
);

 CREATE TABLE student


(
sid char(4) primary key,
sname varchar2(20),
sdob date,
scity varchar2(20),
squal varchar2(20),
semail varchar2(30),
sphone varchar2(20)
);

 CREATE TABLE batch


(
batchid char(4) primary key,
bsdate date ,
bstrength number(3),
courseid char(4),
foreign key(courseid) references course(courseid)
);

 CREATE TABLE course


(
courseid char(4) primary key,
coursename varchar2(40),
coursecategory varchar2(20),
coursefees number(10,2),
courseduration number(3)
);

Your answer is partially correct.

The correct order for these items is as follows:

1. CREATE TABLE course


(
courseid char(4) primary key,
https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=32750&cmid=1147 2/5
31/03/2020 Post-Quiz: Attempt review

coursename varchar2(40),
coursecategory varchar2(20),  Adeeb Khan .
coursefees number(10,2),
courseduration number(3)
);
2. CREATE TABLE student
(
sid char(4) primary key,
sname varchar2(20),
sdob date,
scity varchar2(20),
squal varchar2(20),
semail varchar2(30),
sphone varchar2(20)
);
3. CREATE TABLE batch
(
batchid char(4) primary key,
bsdate date ,
bstrength number(3),
courseid char(4),
foreign key(courseid) references course(courseid)
);
4. CREATE TABLE enrollment
(
batchid char(4),
sid char(4) ,
edate date,
primary key(batchid,sid),
foreign key(sid) references student(sid),
foreign key(batchid) references batch(batchid)
);

Question Choose the correct option


3
Partially cardholdername not null 
correct
creditcardtype should be silver or platinum only check 
Mark 0.80 out
of 1.00 cardholderphoneno unique 

creditcardno primary key 

validitydate check 

Your answer is partially correct.

You have correctly selected 4.


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

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=32750&cmid=1147 3/5
31/03/2020 Post-Quiz: Attempt review

Question  Adeeb Khan .


4 on delete cascade on delete set null

Correct

Mark 2.00 out Tom, the administrator should create the table "CSR_Registration" with the following rules
of 2.00 Whenever a row in the CSR_Student table is deleted, the row from the CSR_Registration must be deleted
When deleting the row from the CSR_course table link column of the CSR_registration must be made to null

Drag and drop the correct keyword for the below given query.

create table CSR_registration(courseid number(4) references CSR_course(courseid) on delete set null  ,studid
number(4) references CSR_student(studid) on delete cascade  ,doj date);

Question An emp table contains fields employ name, desig and salary. How do you drop column salary?
5
Select one:
Correct
a. delete from emp where column = salary;
Mark 1.00 out
of 1.00 b. alter table emp drop column salary; 

c. alter table emp delete salary;

d. alter table emp delete column salary;

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

Question Which of the following options is not correct?


6
Select one:
Correct
a. alter table emp drop column_name; 
Mark 1.00 out
of 1.00 b. alter table emp modify name varchar(30);

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;

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=32750&cmid=1147 4/5
31/03/2020 Post-Quiz: Attempt review

Question A table consists of ______ primary keys.  Adeeb Khan .


7
Select one:
Correct
a. 4
Mark 1.00 out
of 1.00 b. 1 

c. Any number

d. 2

The correct answer is: 1

Question 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
8 table?

Correct

Mark 1.00 out


of 1.00
Select one:
a. Use the ALTER TABLE command with the MODIFY clause on the DEPT table.

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

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

d. This task cannot be accomplished.

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

Your answer is correct.

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

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=32750&cmid=1147 5/5
31/03/2020 Pre-Quiz: Attempt review

 Adeeb Khan .

 Dashboard / RDBMS / Data Definition Language / Pre-Quiz

Started on Saturday, 25 January 2020, 2:55 PM


State Finished
Completed on Saturday, 25 January 2020, 2:57 PM
Time taken 1 min 50 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question Column header is referred as


1
Select one:
Incorrect
a. Relation
Mark 0.00 out
of 1.00 b. Table

c. Tuples

d. Attributes

e. Domain 

Your answer is incorrect.

The correct answer is: Attributes

Question A relational database consists of a collection of


2
Select one:
Correct
a. Keys
Mark 1.00 out
of 1.00 b. Tables 

c. Fields

d. Records

Your answer is correct.


The correct answer is: Tables

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


3
Select one:
Correct
a. composite key
Mark 1.00 out
of 1.00 b. foreign key 

c. primary key

d. secondary key

Your answer is correct.

The correct answer is: foreign key

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=31914&cmid=1112 1/2
31/03/2020 Pre-Quiz: Attempt review

Question Which of the following is not modification of the database  Adeeb Khan .
4
Select one:
Correct
a. Insertion
Mark 1.00 out
of 1.00 b. Updating

c. Sorting 

d. Deletion

Your answer is correct.

The correct answer is: Sorting

Question _____ is called as meta data.


5
Select one:
Correct
a. Meta Dictionary
Mark 1.00 out
of 1.00 b. Data Dictionary 

c. Meta Information

d. Data Information

Your answer is correct.

The correct answer is: Data Dictionary

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=31914&cmid=1112 2/2
31/03/2020 Post-Quiz: Attempt review

 Adeeb Khan .

 Dashboard / RDBMS / Data Manipulation Language / Post-Quiz

Started on Sunday, 26 January 2020, 7:33 PM


State Finished
Completed on Sunday, 26 January 2020, 7:35 PM
Time taken 2 mins 5 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question Examine the structure of the STUDENT table:


1
Correct Column Name DataType Constraint

Mark 1.00 out Stud_id Number(3) PK


of 1.00
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 VALUES (101,'100 Main Street','17-JUN-99','Smith');

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

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


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

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


VALUES (101,'100 Main Street','Smith','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');

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=42753&cmid=1175 1/3
31/03/2020 Post-Quiz: Attempt review

Question Consider the below table structure:  Adeeb Khan .


2 Column Name DataType Constraint
Correct Empname Varchar2(20) Not Null
Mark 1.00 out
EmpId Number(10) PK
of 1.00
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. Value for phoneno is missing. 

b. empid value should be given without single quotes.

c. The statement will get executed successfully

d. The column order should not be changed.

Your answer is correct.


The correct answer is: Value for phoneno is missing.

Question Which SQL statement needs both insert and update privilege on the target table and select privilege on the source table?
3
Select one:
Incorrect
a. alter 
Mark 0.00 out
of 1.00 b. delete

c. merge

d. update

The correct answer is: merge

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=42753&cmid=1175 2/3
31/03/2020 Post-Quiz: Attempt review

Question Examine the structure of the Employee table:  Adeeb Khan .


4 Column Name DataType Constraint
Correct Empname Varchar2(20) Not Null
Mark 1.00 out
EmpId Number(10) PK
of 1.00
Phoneno Number(10) NotNull

DeptId Number(10) FK

Data in the Department table:


DeptId Dname Location

1 Sales Mumbai

2 Marketing Kolkata

Which update statement produces the following error?


ORA-02291: integrity constraint (SYS_C23) violated - parent key not found

Select one:
a. UPDATE Employee SET empid = NULL WHERE deptid=5;

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

c. UPDATE Employee SET Deptid=3 WHERE Empid = 101; 

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

Your answer is correct.

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

Question DELETE FROM dept WHERE dept_id = 901;


5 The above delete statement throws an integrity constraint error because a child record was found. What could we do to make
the statement execute?
Correct

Mark 1.00 out Select one:


of 1.00
a. Delete the child records first. 

b. Add the FORCE keyword to the command.

c. You cannot make the command execute.

d. Add the CONSTRAINTS CASCADE option to the command.

Your answer is correct.


The correct answer is: Delete the child records first.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=42753&cmid=1175 3/3
31/03/2020 Pre-Quiz: Attempt review

 Adeeb Khan .

 Dashboard / RDBMS / Data Manipulation Language / Pre-Quiz

Started on Sunday, 26 January 2020, 6:18 PM


State Finished
Completed on Sunday, 26 January 2020, 6:23 PM
Time taken 4 mins 38 secs
Marks 4.67/5.00
Grade 93.33 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question
Which CREATE TABLE statement is valid?
1
Correct

Mark 1.00 out


of 1.00 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)); 

b. CREATE TABLE ord_details


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

c. CREATE TABLE ord_details


(ord_no NUMBER(2) PRIMARY KEY,
item_no NUMBER(3) PRIMARY KEY,
ord_date DATE 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));

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=41976&cmid=1148 1/3
31/03/2020 Pre-Quiz: Attempt review

Question To permanently remove all the data from the STUDENT table, and you need the table structure in the future.
Which single
Adeeb Khan .
2 command performs this?

Correct
Select one:
Mark 1.00 out
a. DELETE * FROM student
of 1.00
KEEP STRUCTURE;

b. TRUNCATE TABLE student; 

c. TRUNCATE TABLE student


KEEP STRUCTURE;

d. DROP TABLE student;

Your answer is correct.

The correct answer is: TRUNCATE TABLE student;

Question When we attempt to create the salary table with this command:
3 1.CREATE TABLE salary
Partially
2.(employee_id NUMBER(9)
correct
3.CONSTRAINT salary_pk PRIMARY KEY,
Mark 0.67 out
of 1.00 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. 3 

b. 4 

c. 5

d. 1

e. 7 

f. 2

Your answer is partially correct.

You have selected too many options.


The correct answers are: 7, 4

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=41976&cmid=1148 2/3
31/03/2020 Pre-Quiz: Attempt review

Question  Adeeb Khan .


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

Mark 1.00 out


of 1.00 Select one:
a. This task cannot be accomplished.

b. ALTER TABLE patient


ADD (id_number CONSTRAINT pat_id_pk PRIMARY KEY);

c. ALTER TABLE patient


MODIFY (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
The EMPLOYEES table has these columns:
5 LAST NAMEVARCHAR2(35)
Correct
SALARYNUMBER(8,2)
Mark 1.00 out
HIRE_DATEDATE
of 1.00

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?

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

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

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

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

Your answer is correct.

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

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=41976&cmid=1148 3/3
31/03/2020 Test Your Understanding: Attempt review

 Adeeb Khan .

 Dashboard / RDBMS / Data Manipulation Language / Test Your Understanding

Started on Sunday, 26 January 2020, 7:45 PM


State Finished
Completed on Sunday, 26 January 2020, 7:46 PM
Time taken 1 min 25 secs
Marks 4.00/5.00
Grade 80.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question select  statement/command would not cause a transaction to end


1
Correct
commit create rollback

Mark 1.00 out


of 1.00

Your answer is correct.

The correct answer is:


[select] statement/command would not cause a transaction to end

Question Match appropriately.


2
Correct

Mark 1.00 out Truncate Removes the entire data from the table, while the structure remains intact. 
of 1.00
Drop Removes the table itself from the database. 

Delete Removes all or only the rows specified from the table. 

Your answer is correct.


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

Question It is possible to update more than one column with a single UPDATE statement. State true or false.
3
Select one:
Correct
True 
Mark 1.00 out
of 1.00 False

The correct answer is 'True'.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=42886&cmid=1176 1/2
31/03/2020 Test Your Understanding: Attempt review

Question To have all the rows deleted from the table using delete statement, you must specify the query with WHEREclause thatKhan .
Adeeb
4 specifies all the rows. State true or false.

Correct
Select one:
Mark 1.00 out
True
of 1.00
False 

The correct answer is 'False'.

Question
To change the structure of the table we use MODIFY TABLE  Syntax.
5
Incorrect

Mark 0.00 out


of 1.00

Your answer is incorrect.

The correct answer is:


To change the structure of the table we use [ALTER TABLE] Syntax.

https://accenturelearning.tekstac.com/mod/quiz/review.php?attempt=42886&cmid=1176 2/2
slhmsÿmlhÿW ÿ

1 ÿ34567849 ÿ3  ÿ8ÿÿ449ÿÿ94 ÿ85

89:;9<=ÿ?@ 8 4ABÿCDÿ496ÿEDEDBÿFGHIÿ


89:9< 56
J?KLM<9<=ÿ?@ 8 4ABÿCDÿ496ÿEDEDBÿIGDNÿ
OPK<ÿ9:Q<@ NÿR5ÿSTÿ55
U:;QV IWDDSDWDD
X;:=< YZ[ZZÿ8ÿ8\ÿSDDWDD
]<<=^:_Q `894485aaaÿb8ÿ64cÿd455 ÿ7Aÿ59ÿR89ÿ64ÿFDe

 !"#$%&
'
()**+,-
f98dÿ\85ÿ4ÿ7ÿ5 ÿÿ6ÿg69ÿ45Wÿ4ÿh9ÿ89ÿ45W
ÿ8G
./*0ÿ2344ÿ)5-ÿ)6 4Wÿijÿk
2344 7Wÿh lj

h6ÿ899ÿ45g9ÿ5Gÿij

 !"#$%&
7
()**+,-
jc44ÿ65ÿg8ÿiÿ54R5G
SWÿjij`hÿ̀mn`hop95q4RBÿ45q4RrB
ijnfhso`mn`hop95q4RBÿ45q4Rrr
./*0ÿ2344ÿ)5-ÿ)6  mÿRd8A
2344
tsj jÿlj o45q4Rrÿiuvjÿwexw
m lj o45q4Rrÿiuvjÿwevw
m lj o45q4Rrÿiuvjÿweiwy

EWÿjij`hÿunuh`op95q4Rrÿzzÿunuh`o45q4RrB
ijnfhso45q4Rrÿ{ÿ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?&)@MKÿ>)&NÿO?
60G62"1G,7-60G6.P
1Aÿ$(C(#%ÿ60G6.-:H>I60G62"1G,7KÿL)&'ÿ60/7"2ÿRSTUTÿWXYZ[W\Z]ÿ^_ÿ̀aRbcS^_def_ag a_TRÿhfUiaj
dUfklÿmhÿWXYZ[W\Z]nÿo

?/02ÿ*4"2ÿÿ6/22"6A
%!"ÿ6/22"6ÿ*4"2ÿFÿ$(C(#%ÿ60G6.-:H>I60G62"1G,7KÿL)&'ÿ60/7"2ÿRSTUTÿWXYZ[W\Z]ÿ^_
`aRbcS^_def_aga_TRÿhfUiajÿdUfklÿmhÿWXYZ[W\Z]n

12345678
 
&)p()ÿO?ÿ70ÿ+"ÿ!"ÿ,*ÿ ÿo ÿ6,*0"ÿÿ!"ÿ$(C(#%ÿ*"7"Aÿ?/0ÿ6*ÿÿo ÿ3"68.ÿ*.ÿ6/7+*/ÿ/8ÿ07"26
3//ÿ*1ÿ6/,07ÿ*7"ÿÿ!"ÿ/21"2ÿ+.ÿ6,*0"A
ÿÿÿ


s2

6*/

?/02ÿ*4"2ÿÿ6/22"6A
%!"ÿ6/22"6ÿ*4"2ÿF
&)p()ÿO?ÿ70ÿ+"ÿ!"ÿq,*rÿ6,*0"ÿÿ!"ÿ$(C(#%ÿ*"7"Aÿ?/0ÿq6*rÿ3"68.ÿ*.ÿ6/7+*/ÿ/8ÿ07"26ÿ3//ÿ*1
6/,07ÿ*7"ÿÿ!"ÿ/21"2ÿ+.ÿ6,*0"A

t0
 Reshma Banu Mothadi Shaik .

 Dashboard / RDBMS / Joins & Subquery / Post-Quiz

Started on Monday, 16 March 2020, 4:46 PM


State Finished
Completed on Monday, 16 March 2020, 4:50 PM
Time taken 4 mins 6 secs
Marks 9.50/10.00
Grade 95.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question In which two cases would you use the USING clause? (Choose two)
1
Select one or more:
Correct
a. You want to create a nonequijoin.
Mark 1.00 out
of 1.00 b. The tables to be joined have columns with the same name and compatible data types. 

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

d. The tables to be joined have multiple NULL columns.

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.

Question Which SELECT statement displays all the employees who do not have any subordinates?
2
Select one:
Correct
a. SELECT e.ename
Mark 1.00 out
FROM emp e
of 1.00
WHERE e.mgr IS NOT NULL;

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
WHERE e.empno NOT IN (SELECT m.mgr
FROM emp m);

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 SELECT last_name, first_name  Reshma Banu Mothadi Shaik .
3 FROM employee
WHERE salary IN
Correct
(SELECT salary
Mark 1.00 out FROM employee
of 1.00
WHERE dept_no = 3 OR dept_no = 5);
Which values are displayed?

Select one:
a. last name and first name of all employees except those working in department 3 or 5

b. last name and first name of only the employees whose salary falls in the range of salaries from 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 Consider the below tables:


4
Correct Employee Table

Mark 1.00 out Column Name DataType Constraint


of 1.00
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
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 BETWEEN t.lowsal AND t.highsal; 

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


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

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


FROM emp e, tax t
WHERE e.salary >= 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
WHERE e.salary BETWEEN t.lowsal AND t.highsal;
Question Evaluate this SQL statement:  Reshma Banu Mothadi Shaik .
5 SELECT first_name, commission
FROM employee
Correct
WHERE commission =
Mark 1.00 out (SELECTcommission
of 1.00
FROMemployee
WHEREUPPER(first_name) = 'SCOTT')

What would cause this statement to fail?

Select one:
a. The FIRST_NAME values in the database are in lowercase.

b. There is more than one employee with the first name Scott. 

c. Scott has a NULL commission value.

d. There is no employee with the first name Scott.

e. Scott has a zero commission value.

Your answer is correct.

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

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

Correct
SELECT last_name, first_name
Mark 1.00 out FROMemployee
of 1.00
WHEREsalary > AVG(salary);

Which change should you make to achieve the desired results?

Select one:
a. Change the function in the WHERE clause.

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

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

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

Your answer is correct.

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

Question Which operator is NOT appropriate in the join condition of a non-equi join SELECT statement?
7
Select one:
Correct
a. BETWEEN x AND y operator
Mark 1.00 out
of 1.00 b. IN operator

c. LIKE operator

d. equal operator 

e. greater than or equal to operator

Your answer is correct.


The correct answer is: equal operator
Question Consider the following table:  Reshma Banu Mothadi Shaik .
8
Partially Product Table
correct
Column Name DataType Constraint
Mark 0.50 out
prod_name Varchar2(20)
of 1.00
prod_id Number(10) PK

Customer Table

Column Name DataType Constraint

cust_last_name Varchar2(20)

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 products p JOIN sales s
ON(p.prod_id=s.prod_id)
JOIN customers c
ON(s.cust_id=c.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 JOIN customers c
ON(p.prod_id=s.prod_id)
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 sales s JOIN products p
USING (prod_id)
JOIN customers c
USING (cust_id)
WHERE c.cust_city='Tokyo'; 

Your answer is partially correct.

You have correctly selected 1.


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
ON(p.prod_id=s.prod_id)
JOIN customers c
ON(s.cust_id=c.cust_id)
WHERE c.cust_city='Tokyo';  Reshma Banu Mothadi Shaik .

Question In which cases would you use an outer join?


9
Select one:
Correct
a. The tables being joined have NOT NULL columns.
Mark 1.00 out
of 1.00 b. The tables being joined have only matched data.

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

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

e. The tables being joined have only unmatched data.

Your answer is correct.

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

Question The NOT operator can be used with ______ operators.


10
Select one or more:
Correct
a. >
Mark 1.00 out
of 1.00 b. ANY 

c. ALL 

d. IN 

Your answer is correct.

The correct answers are: IN, ANY, ALL


 Reshma Banu Mothadi Shaik .

 Dashboard / RDBMS / Joins & Subquery / Pre-Quiz

Started on Tuesday, 17 March 2020, 6:42 PM


State Finished
Completed on Tuesday, 17 March 2020, 6:46 PM
Time taken 4 mins 7 secs
Marks 10.00/10.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question Which SQL statement produces an error?


1
Select one:
Correct
a. SELECT job_id, SUM(salary)
Mark 1.00 out
FROM emp_dept_vu
of 1.00
WHERE department_id IN (10,20)
GROUP BY job_id
HAVING SUM(salary) > 20000;

b. None of the statements produce an error; all are valid. 

c. SELECT *
FROM emp_dept_vu;

d. SELECT department_id, job_id, AVG(salary)


FROM emp_dept_vu
GROUP BY department_id, job_id;

e. SELECT department_id, SUM(salary)


FROM emp_dept_vu
GROUP BY department_id;

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

Question Which statement would display the highest credit limit available in each income level in each city in
2 the Customers table?
Correct
Select one:
Mark 1.00 out
of 1.00 a. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)
FROM customers
GROUP BY cust_credit_limit , cust_income_level, cust_city ;

b. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)


FROM customers
GROUP BY cust_city, cust_income_level; 

c. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)


FROM customers
GROUP BY cust_city, cust_income_level,cust_credit_limit;

d. SELECT cust_city, cust_income_level,MAX(cust_credit_limit)


FROM customers
GROUP BY cust_city , , cust_income_level ,MAX(cust_credit_limit);

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


FROM customers
GROUP BY cust_city, cust_income_level;
Question Consider the below tables:  Reshma Banu Mothadi Shaik .
3
Correct Promotions Table

Mark 1.00 out Column Name Datatype Constraint


of 1.00
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.

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 and gives the required result.

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

d. It executes successfully but does not give the required result. 

Your answer is correct.

The correct answer is: It executes successfully but does not give the required result.
Question SELECT cust_city. COUNT(cust_last_name)  Reshma Banu Mothadi Shaik .
4 FROM customers
WHERE cust_credit_limit > 1000
Correct
GROUP BY cust_city
Mark 1.00 out HAVING AVG(cust_credit_limit) BETWEEN 5000 AND 6000;
of 1.00

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

Select one:
a. Date functions

b. It executes successfully. 

c. It returns an error because WHERE and HAVING clauses cannot be used in the same SELECT statement.

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

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

Your answer is correct.

The correct answer is: It executes successfully.

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

Mark 1.00 out SELECT last_name, first_name


of 1.00
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. Move the function to the SELECT clause and add a GROUP BY clause and a HAVING clause.

c. Change the function in the WHERE clause.

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

The correct answer is: Use a subquery in the WHERE clause to compare the average salary value.
Question To create a report displaying employee last names, department names, and locations. Which
 query should
Reshma Banuyou use to create
Mothadi Shaik .
6 an equi-join?

Correct

Mark 1.00 out Select one:


of 1.00
a. SELECT last_name, department_name, location_id
FROM employees , departments ;

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 e.last_name, d.department_name, d.location_id


FROM employees e, departments d
WHERE manager_id =manager_id;

d. SELECT employees.last_name, departments.department_name,


departments.location_id FROM employees e, departments d
WHERE e.department_id =d.department_id;

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 Which statements would execute successfully?


7
Correct
Select one or more:
Mark 1.00 out
of 1.00 a. SELECT SUM (subject1+subject2+subject3)
FROM marks
WHERE student_name IS NULL 

b. SELECT student_name,subject1
FROM marks
WHERE subject1 > AVG(subject1);

c. SELECT student_name,SUM(subject1)
FROM marks
WHERE student_name LIKE 'R%';

d. SELECT SUM (DISTINCT NVL(subject1,0)),MAX(subject1)


FROM marks
WHERE subject1 > subject2; 

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
Question The COMMISSION column shows the monthly commission earned by the employee.  Reshma Banu Mothadi Shaik .
8
Correct Emp_Id Dept_Id Commission

Mark 1.00 out 1 10 500


of 1.00
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. Finding the total commission earned by the employees in department 10

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. Listing the employees whose annual commission is more than 6000

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

f. Listing the departments whose average commission is more that 600

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 The following query is written to retrieve all those product IDs from the SALES table that have more than 55000 sold and have
9 been ordered more than 10 times:

Correct

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

Which statement is true regarding this SQL statement?

Select one:
a. It executes successfully and generates the required result.

b. It produces an error because COUNT (*) should be only in the HAVING clause and not in the
WHERE clause. 

c. It executes successfully but produces no result because COUNT(prod_id) should be used instead of COUNT(*) .

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 Which statements are true regarding the USING and ON clauses in table joins?  Reshma Banu Mothadi Shaik .
10
Correct
Select one or more:
Mark 1.00 out
a. The WHERE clause can be used to apply additional conditions in SELECT statement
of 1.00
containing the ON or the USING clause. 

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

c. Both USING and ON clause can be used for equijoins and nonequijoins

d. The ON clause can be used to join tables on columns that have different names but compatible data types. 

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.
 Reshma Banu Mothadi Shaik .

 Dashboard / RDBMS / Joins & Subquery / Test Your Understanding

Started on Monday, 16 March 2020, 4:50 PM


State Finished
Completed on Monday, 16 March 2020, 4:52 PM
Time taken 1 min 50 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

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 executes and shows the required result. 

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 < operator should be replaced by < ALL to get the required output.

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

Your answer is correct.


The correct answer is: It executes and shows the required result.
Question Rearrange the statement so as to obtain the names of products whose list price is the second
 highest
ReshmainBanu
the table
Mothadi Shaik .
2
Correct
 SELECT prod_name FROM products
Mark 1.00 out
of 1.00  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)));

Your answer is correct.

Question Where can subqueries be used?


3
Correct

Mark 1.00 out Select one or more:


of 1.00 a. The FROM clause in the SELECT statement 

b. The GROUP BY clause in the SELECT statement

c. The WHERE clause in the SELECT as well as all DML statements 

d. The WHERE clause in only the SELECT statement

e. The HAVING clause in the SELECT statement 

f. Field names in the SELECT statement. 

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 The NOT operator can be used with IN, ANY, and ALL operators in multiple-row subqueries. State true or false.
4
Correct

Mark 1.00 out Select one:


of 1.00 True 

False

The correct answer is 'True'.

Question
5 Main query and subquery can/must get data from different  tables.
Correct

Mark 1.00 out


of 1.00
 Reshma Banu Mothadi Shaik .

 Dashboard / RDBMS / Data Control Language & Database Objects / Post-Quiz

Started on Monday, 16 March 2020, 10:17 PM


State Finished
Completed on Monday, 16 March 2020, 10:20 PM
Time taken 3 mins 26 secs
Marks 8.00/8.00
Grade 100.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%

Question Which SQL statement grants a privilege to all the database users?
1
Select one:
Correct
a. grant select on department to ALL;
Mark 1.00 out
of 1.00 b. grant select on department to PUBLIC; 

c. grant select on department to PRIVATE;

d. grant select on department to ALL USERS;

Your answer is correct.

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

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

Correct
Which statement would you use to complete this task?
Mark 1.00 out
of 1.00
Select one:
a. CREATE SEQUENCE patient_id_seq
START WITH 1000
MAXVALUE 999999999
STEP BY 1;

b. CREATE SEQUENCE patient_id_seq


START WITH 1000
MAXVALUE 999999999
NOCYCLE; 

c. CREATE SEQUENCE patient_id_seq


ON patient (patient_id)
MINVALUE 1000
MAXVALUE 999999999
INCREMENT BY 1
NOCYCLE;

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 Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?
 Reshma Banu Mothadi Shaik .
3
Select one:
Correct
a. REMOVE emp_dept_vu;
Mark 1.00 out
of 1.00 b. DROP emp_dept_vu;

c. DELETE emp_dept_vu;

d. REMOVE VIEW emp_dept_vu;

e. DROP VIEW emp_dept_vu; 

f. DELETE VIEW emp_dept_vu;

Your answer is correct.

The correct answer is: DROP VIEW emp_dept_vu;

Question CREATE INDEX emp_dept_id_idx


4 ON employee(dept_id);

Correct
Which of the following statements are true with respect to the above index?
Mark 1.00 out
of 1.00
Select one:
a. May reduce the amount of disk I/O for INSERT statements.

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

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

d. Store an index in the EMPLOYEE table.

e. Increase the chance of full table scans.

Your answer is correct.


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

Question A/an ______ index is based on expressions.


5
Select one:
Correct
a. Non clustered Index
Mark 1.00 out
of 1.00 b. Unique Index

c. Function Based 

d. Clustered Index

Your answer is correct.


The correct answer is: Function Based

Question An owner can give specific privileges on the owner's objects to others. State...
6
Select one:
Correct
True 
Mark 1.00 out
of 1.00 False

The correct answer is 'True'.


Question Which object privileges can be granted on a view?  Reshma Banu Mothadi Shaik .
7
Select one:
Correct
a. ALTER, DELETE, INSERT, SELECT
Mark 1.00 out
of 1.00 b. DELETE, INSERT,SELECT

c. none

d. DELETE, INSERT, SELECT, UPDATE 

Your answer is correct.

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

Question The owner has all the privileges on the object. State true or False.
8
Select one:
Correct
True 
Mark 1.00 out
of 1.00 False

The correct answer is 'True'.


 Reshma Banu Mothadi Shaik .

 Dashboard / RDBMS / Data Control Language & Database Objects / Pre-Quiz

Started on Monday, 16 March 2020, 10:08 PM


State Finished
Completed on Monday, 16 March 2020, 10:16 PM
Time taken 7 mins 55 secs
Marks 9.00/10.00
Grade 90.00 out of 100.00
Feedback Congratulations!!! You have passed by securing more than 80%
Question To delete rows from the SALES table, where the PROMO_NAME column in the  Reshma Banu Mothadi Shaik .
1 PROMOTIONS table has either blowout sale or everyday low price as values.
Which DELETE statements are valid? (Choose all that apply.)
Correct

Mark 1.00 out Select one or more:


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

b. 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'); 

c. 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');

d. DELETE
FROM sales
WHERE promo_id IN (SELECT promo_id
FROM promotions
WHERE promo_name = 'blowout sale')
OR promo_name = 'everyday low price'; 

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 Consider the below tables:  Reshma Banu Mothadi Shaik .
2
Incorrect Customer Table

Mark 0.00 out Column Name Datatype Constraint


of 1.00
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 (SELECT MAX(cust_credit_limit)
FROM customers) 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 cust_credit_limit IN (SELECT MAX(cust_credit_limit)
FROM customers)
AND MAX(cust_credit_limit) BETWEEN startval AND endval;

Your answer is incorrect.


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;
Question _____ is used to retrieve records that do not meet the join condition  Reshma Banu Mothadi Shaik .
3
Select one:
Correct
a. Equi Join
Mark 1.00 out
of 1.00 b. Self Join

c. Outer Join 

d. Non Equi Join

Your answer is correct.


The correct answer is: Outer Join

Question The _______ join is based on all columns in the two tables that have the same column name.
4
Select one:
Correct
a. Natural 
Mark 1.00 out
of 1.00 b. Cross

c. Full Outer

d. Left Outer

Your answer is correct.


The correct answer is: Natural

Question Mr. John is the president of a company. Five managers report to him. All other employees report to these managers.
5
Examine the code:
Correct
SELECT employee.ename FROM emp employee
Mark 1.00 out WHERE employee.empno NOT IN (SELECT manager.mgr
of 1.00
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 Equijoin is called as ______.


6
Select one:
Correct
a. Outer Join
Mark 1.00 out
of 1.00 b. Self Join

c. Equal Join

d. Simple Join 

Your answer is correct.

The correct answer is: Simple Join


Question Consider the below orders table:  Reshma Banu Mothadi Shaik .
7
Correct Column Name Datatype Constraint

Mark 1.00 out order_id Number PK


of 1.00
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
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 ( 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);

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


customers WHERE cust_last_name ='Roberts' AND
credit_limit =600) ,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 );

Question The _______ join produces the cross product of two tables.
8
Select one:
Correct
a. Equi
Mark 1.00 out
of 1.00 b. Self

c. Outer

d. Cross 

Your answer is correct.

The correct answer is: Cross


Question Consider the below table:  Reshma Banu Mothadi Shaik .
9 Products Table
Correct
Column Name Datatype Constraint
Mark 1.00 out
of 1.00 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 shown the names of all products whose list price is less than the maximum list price

b. It shows the names of all products in the table.

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

d. It produces an error

Your answer is correct.

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

Question Joining a table to itself is called as ______.


10
Select one:
Correct
a. Outer Join
Mark 1.00 out
of 1.00 b. Equi Join

c. Non Equi Join

d. Self Join 

Your answer is correct.

The correct answer is: Self Join

You might also like