Database Administration and SQL Fundamentals

Test your knowledge of database administration concepts across Oracle, SQL Server, and Sybase, including physical components, background processes, datatypes, stored procedures, and basic SQL operations.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

With SQL, how can you insert a new record into the "Persons" table?

  1. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
  2. INSERT ('Jimmy', 'Jackson') INTO Persons
  3. INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
  4. INSERT ('Jimmy', 'Jackson') INTO Persons
Question 2 Multiple Choice (Single Answer)

With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?

  1. INSERT ('Olsen') INTO Persons (LastName)
  2. INSERT INTO Persons (LastName) VALUES ('Olsen')
  3. INSERT INTO Persons ('Olsen') INTO LastName
  4. INSERT FROM Persons ('Olsen') INTO LastName
Question 3 Multiple Choice (Single Answer)

How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?

  1. UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
  2. UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
  3. MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
  4. MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
Question 4 Multiple Choice (Single Answer)

With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?

  1. DELETE FROM Persons WHERE FirstName = 'Peter'
  2. DELETE FirstName='Peter' FROM Persons
  3. DELETE ROW FirstName='Peter' FROM Persons
  4. DELETE FROM Persons WHERE FirstName <> 'Peter'
Question 5 Multiple Choice (Single Answer)

With SQL, how can you return the number of records in the "Persons" table?

  1. SELECT COUNT() FROM Persons
  2. SELECT COLUMNS() FROM Persons
  3. SELECT COLUMNS(*) FROM Persons
  4. SELECT COUNT(*) FROM Persons
Question 6 True/False

Select statement in Sybase can include columns not specified in the GROUP BY clause

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

This tool compares two files and produces a detailed report on the mismatches and successful matches. Used extensively in data validation.

  1. QUEST TOAD FOR ORACLE 9
  2. None
  3. SCOOTER SOFTWARE BEYOND COMPARE 3
  4. EMBARCADERO DB ARTISAN 8
Question 8 True/False

In Sybase we can not compare a date column with a varchar value.

  1. True
  2. False
Question 9 Multiple Choice (Multiple Answers)

Choose the data type not supported by SQL Server

  1. varchar
  2. int
  3. text
  4. binary
  5. Image
Question 10 Multiple Choice (Single Answer)

Tool(s) used for Sybase to oracle migration is/are:

  1. SQL Developer
  2. SQLWays
  3. Both a and b
  4. Only a
Question 11 Multiple Choice (Multiple Answers)

Sybase exodus is migration of Sybase to which of the following databases

  1. MYSQL
  2. SQL Server
  3. DB2
  4. Oracle
  5. All of the above/ Any database suggested by client
Question 12 Multiple Choice (Single Answer)

What is a child stored procedure?

  1. A procedure that is very small
  2. A procedure being invoked by another procedure
  3. A procedure that is not used by application
  4. System stored procedures
Question 13 Multiple Choice (Multiple Answers)

Choose the datatypes not supported by Oracle

  1. timestamp
  2. varchar
  3. datetime
  4. number
  5. raw
Question 14 Multiple Choice (Single Answer)

In Sybase what returns the number of row affected by the preceding query

  1. @@trancount
  2. @@rowcount
  3. @@sqlstatus
  4. @@rescount
Question 15 Multiple Choice (Multiple Answers)

Magic tables in Sybase are

  1. inserted
  2. updated
  3. deleted
  4. created
Question 16 Multiple Choice (Single Answer)

Identify the background process which, is responsible for writing data from buffer cache to the datafiles to make changes permanent

  1. Checkpoint (CKPT)
  2. Database Writer (DBWR)
  3. Process Monitor (PMON)
  4. Log Writer (LGWR)
Question 17 Multiple Choice (Multiple Answers)

Identify the parts of System Global Area. Choose all that apply.

  1. Database Buffer Cache
  2. Shared Pool
  3. Data Dictionary
  4. Redolog Group
  5. Redolog Buffer
Question 18 Multiple Choice (Multiple Answers)

Identify the physical components of the database. Choose all that apply

  1. Database
  2. Controlfile
  3. Table
  4. Datafile
  5. Index
  6. Redolog Group
Question 19 Multiple Choice (Single Answer)

Identify the physical component of the database, which stores the information about the database layout

  1. Datafile
  2. Controlfile
  3. Redolog Group
  4. Archivelogs
  5. Password File