SQL Database Fundamentals and Administration

Test your knowledge of SQL fundamentals including DDL, DML operations, joins, triggers, indexing, and database administration concepts for Oracle and SAP environments

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is a SQL aggregate function

  1. join
  2. len
  3. left
  4. avg
Question 2 Multiple Choice (Single Answer)

The JOIN is a SQL keyword used to ...

  1. update database table
  2. verify that the inserted data is correct
  3. select data from 2 or more tables related by common attribute (table column).
  4. delete data from database table
Question 3 Multiple Choice (Single Answer)

We refer to a join as a self-join when…

  1. we are using left and right join together
  2. we are joining more than 2 tables
  3. we are joining table to itself
  4. when joining a table and its view
Question 4 Multiple Choice (Single Answer)

The difference between the DELETE and TRUNCATE SQL clauses is:

  1. The DELETE clause deletes all rows in a database table, while the TRUNCATE clause can have a WHERE condition and might or might not delete all rows in a table.
  2. The TRUNCATE clause is identical to the DELETE clause
  3. The TRUNCATE clause deletes all rows in a database table, while the DELETE clause can have a WHERE condition and might or might not delete all rows in a table.
  4. None fo the above
Question 5 Multiple Choice (Single Answer)

What does the CREATE TABLE statement do?

  1. Creates a database view
  2. Creates a new database table
  3. Creates a stored procedure
  4. Creates a trigger
Question 6 Multiple Choice (Single Answer)

What is a trigger?

  1. A trigger is part of data extraction process.
  2. A trigger is a special kind of stored procedures executed when certain event occurs.
  3. A trigger defines relations between tables.
  4. A trigger is a part of error handling
Question 7 Multiple Choice (Single Answer)

What does follow after the SQL SELECT clause?

  1. List of columns that will be selected or the * symbol.
  2. The JOIN SQL clause.
  3. The name of the table we are selecting from.
  4. Selects a database
Question 8 Multiple Choice (Single Answer)

Which clause specifies conditions that determines the groups included in the query?

  1. Having Clause
  2. Where clause
  3. Distinct
  4. Exists
Question 9 Multiple Choice (Single Answer)

What is Identity Column?

  1. Work as primary key
  2. Uniquely identify the records
  3. show a relation between the primary key and unique key
  4. All of the above
  5. None of these
Question 10 Multiple Choice (Single Answer)

You want to make changes in another database object whenever any new database object is created. which of the following triggers will you use?

  1. DML Trigger
  2. Instead of Trigger
  3. DDL Trigger
  4. Nested Trigger
Question 11 Multiple Choice (Single Answer)

You are creating an index for an existing table. There is already a nonclustered index on the primary key. You would like to put the data into address sequence, which is made up of several fields. The address is not the primary key. What should you do?

  1. Change the primary key index to clustered and create a nonclustered index on the address
  2. Create a nonclustered index on the address.
  3. Create a clustered index on the address.
  4. Change the primary key to the address and make the index clustered.
Question 12 Multiple Choice (Single Answer)

Which SQL keyword is used to retrieve a minimum value?

  1. DOWN
  2. LOW
  3. MIN
  4. LOWER
Question 13 Multiple Choice (Single Answer)

What is the default value of PAD INDEX option in creation of indexes?

  1. ON
  2. OFF
  3. NULL
  4. None of the options
Question 14 Multiple Choice (Single Answer)

Name the SAP utility provided for performing Database administration activities like (backup,restore)

  1. BRUTILITY
  2. SAPTOOLS
  3. BRTOOLS
  4. SAPUTILITY
Question 15 Multiple Choice (Single Answer)

Find the Valid Oracle SID among the options given below

  1. GRQ
  2. GRQUALITY
  3. GRQ12
  4. ALL THE ABOVE
Question 16 Multiple Choice (Single Answer)

What Work Process is responsible for Database DML opeartions like Insert, Update and Delete?

  1. Insert Work Process
  2. Batch Work Process
  3. Dialog Work Process
  4. Update Work Process
Question 17 Multiple Choice (Single Answer)

Where do we find the Oracle alert log?

  1. /oracle/<SID>/saptrace
  2. /oracle/<SID>/dbs
  3. /oracle/<SID>/sapdata
  4. /oracle/<SID>/trace
Question 18 Multiple Choice (Single Answer)

Deviating from SAP naming conventions for Oracle Database will result in?

  1. May Cause Oracle Database components to function improperly
  2. May Cause some Management Components of SAP to function improperly
  3. May Cause both Oracle components and SAP components to function improperly
  4. No need to follow any SAP standard
Question 19 True/False

Can you use both SELECT and WHERE SQL clauses in one SQL statement?

  1. True
  2. False
Question 20 Multiple Choice (Single Answer)

What is the purpose of the SQL AS clause?

  1. The AS SQL clause is used change the name of a column in the result set or to assign a name to a derived column.
  2. The AS clause is used with the JOIN clause only.
  3. The AS clause defines a search condition.
  4. The AS clause defines a group