C192 Advanced SQL

Description

College C192 Databases Quiz on C192 Advanced SQL, created by Craig Willey on 27/06/2020.
Craig Willey
Quiz by Craig Willey, updated more than 1 year ago
Craig Willey
Created by Craig Willey over 4 years ago
5
0

Resource summary

Question 1

Question
You can join tables by using a condition in the ____ clause.
Answer
  • FROM
  • WHERE
  • SELECT
  • JOIN

Question 2

Question
Which of the following joins compares the tables in the FROM clause and lists only those rows that satisfy the condition in the WHERE clause?
Answer
  • inner
  • outer
  • nested
  • product

Question 3

Question
In a(n) ____ join, all rows from both tables are included regardless of whether they match rows from the other table.
Answer
  • normal
  • inner
  • full outer
  • combined

Question 4

Question
In a ____, all rows from the table on the left (the table listed first in the query) will be included regardless of whether they match rows from the table on the right (the table listed second in the query).
Answer
  • left inner join
  • left outer join
  • right inner join
  • right outer join

Question 5

Question
In a ____, all rows from the table on the right will be included regardless of whether they match rows from the table on the left.
Answer
  • left inner join
  • left outer join
  • right outer join
  • right inner join

Question 6

Question
The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.
Answer
  • AC
  • SA
  • AS
  • IN

Question 7

Question
The main mechanism for providing access to a database is the ____ command.
Answer
  • PERMIT
  • ACCESS
  • GRANT
  • REVOKE

Question 8

Question
The correct command to allow user Thompson to delete rows in the CUSTOMER table would be: GRANT ____ ON CUSTOMER TO THOMPSON.
Answer
  • DROP
  • REMOVE
  • UPDATE
  • DELETE

Question 9

Question
The privilege ____ can be granted to retrieve data.
Answer
  • SELECT
  • UPDATE
  • RETRIEVE
  • READ

Question 10

Question
When you specify a foreign key, the table referenced by the foreign key is the ____.
Answer
  • super
  • sibling
  • parent
  • child

Question 11

Question
The privilege ____ can be granted to change data.
Answer
  • WRITE
  • UPDATE
  • ALTER
  • READ AND WRITE

Question 12

Question
The privilege ____ can be granted to change the table structure.
Answer
  • WRITE
  • UPDATE
  • ALTER
  • MODIFY

Question 13

Question
To create a stored procedure in Oracle, use the ____ command.
Answer
  • CREATE ROUTINE
  • CREATE SCRIPT
  • CREATE PROCEDURE
  • CREATE EXECUTABLE

Question 14

Question
A(n) ____ is a procedure that is executed automatically in response to an associated database operation.
Answer
  • cursor
  • trigger
  • waypoint
  • fetchpoint
Show full summary Hide full summary

Similar

GENDER OF SPANISH NOUNS
differentiated4u
ART NOUVEAU
Britknee52
Spanish Vocabulary- Beginner
ThomasK
Explain why Pope Urban II called the First crusade.
Alan Thomson
ICT Revision 2014
11RaceyG
Organic Chemistry Functional Groups
linpubotwheeds
Logic Pro X Practice Exam
Chris Redding
An Inspector Calls - Quotes
jaynejuby
Coastal Development and physical processess
Corey Meehan
GCSE ICT Edexcel Flashcards
Sarah Bramley-Dymond