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
Questions
Which of the following is a SQL aggregate function
- join
- len
- left
- avg
The JOIN is a SQL keyword used to ...
- update database table
- verify that the inserted data is correct
- select data from 2 or more tables related by common attribute (table column).
- delete data from database table
We refer to a join as a self-join when…
- we are using left and right join together
- we are joining more than 2 tables
- we are joining table to itself
- when joining a table and its view
The difference between the DELETE and TRUNCATE SQL clauses is:
- 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.
- The TRUNCATE clause is identical to the DELETE clause
- 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.
- None fo the above
What does the CREATE TABLE statement do?
- Creates a database view
- Creates a new database table
- Creates a stored procedure
- Creates a trigger
What is a trigger?
- A trigger is part of data extraction process.
- A trigger is a special kind of stored procedures executed when certain event occurs.
- A trigger defines relations between tables.
- A trigger is a part of error handling
What does follow after the SQL SELECT clause?
- List of columns that will be selected or the * symbol.
- The JOIN SQL clause.
- The name of the table we are selecting from.
- Selects a database
Which clause specifies conditions that determines the groups included in the query?
- Having Clause
- Where clause
- Distinct
- Exists
What is Identity Column?
- Work as primary key
- Uniquely identify the records
- show a relation between the primary key and unique key
- All of the above
- None of these
You want to make changes in another database object whenever any new database object is created. which of the following triggers will you use?
- DML Trigger
- Instead of Trigger
- DDL Trigger
- Nested Trigger
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?
- Change the primary key index to clustered and create a nonclustered index on the address
- Create a nonclustered index on the address.
- Create a clustered index on the address.
- Change the primary key to the address and make the index clustered.
Which SQL keyword is used to retrieve a minimum value?
- DOWN
- LOW
- MIN
- LOWER
What is the default value of PAD INDEX option in creation of indexes?
- ON
- OFF
- NULL
- None of the options
Name the SAP utility provided for performing Database administration activities like (backup,restore)
- BRUTILITY
- SAPTOOLS
- BRTOOLS
- SAPUTILITY
Find the Valid Oracle SID among the options given below
- GRQ
- GRQUALITY
- GRQ12
- ALL THE ABOVE
What Work Process is responsible for Database DML opeartions like Insert, Update and Delete?
- Insert Work Process
- Batch Work Process
- Dialog Work Process
- Update Work Process
Where do we find the Oracle alert log?
- /oracle/<SID>/saptrace
- /oracle/<SID>/dbs
- /oracle/<SID>/sapdata
- /oracle/<SID>/trace
Deviating from SAP naming conventions for Oracle Database will result in?
- May Cause Oracle Database components to function improperly
- May Cause some Management Components of SAP to function improperly
- May Cause both Oracle components and SAP components to function improperly
- No need to follow any SAP standard
Can you use both SELECT and WHERE SQL clauses in one SQL statement?
- True
- False
What is the purpose of the SQL AS clause?
- 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.
- The AS clause is used with the JOIN clause only.
- The AS clause defines a search condition.
- The AS clause defines a group