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.
Questions
With SQL, how can you insert a new record into the "Persons" table?
- INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
- INSERT ('Jimmy', 'Jackson') INTO Persons
- INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
- INSERT ('Jimmy', 'Jackson') INTO Persons
With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
- INSERT ('Olsen') INTO Persons (LastName)
- INSERT INTO Persons (LastName) VALUES ('Olsen')
- INSERT INTO Persons ('Olsen') INTO LastName
- INSERT FROM Persons ('Olsen') INTO LastName
How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
- UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
- UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
- MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
- MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
- DELETE FROM Persons WHERE FirstName = 'Peter'
- DELETE FirstName='Peter' FROM Persons
- DELETE ROW FirstName='Peter' FROM Persons
- DELETE FROM Persons WHERE FirstName <> 'Peter'
With SQL, how can you return the number of records in the "Persons" table?
- SELECT COUNT() FROM Persons
- SELECT COLUMNS() FROM Persons
- SELECT COLUMNS(*) FROM Persons
- SELECT COUNT(*) FROM Persons
Select statement in Sybase can include columns not specified in the GROUP BY clause
- True
- False
This tool compares two files and produces a detailed report on the mismatches and successful matches. Used extensively in data validation.
- QUEST TOAD FOR ORACLE 9
- None
- SCOOTER SOFTWARE BEYOND COMPARE 3
- EMBARCADERO DB ARTISAN 8
In Sybase we can not compare a date column with a varchar value.
- True
- False
Choose the data type not supported by SQL Server
- varchar
- int
- text
- binary
- Image
Tool(s) used for Sybase to oracle migration is/are:
- SQL Developer
- SQLWays
- Both a and b
- Only a
Sybase exodus is migration of Sybase to which of the following databases
- MYSQL
- SQL Server
- DB2
- Oracle
- All of the above/ Any database suggested by client
What is a child stored procedure?
- A procedure that is very small
- A procedure being invoked by another procedure
- A procedure that is not used by application
- System stored procedures
Choose the datatypes not supported by Oracle
- timestamp
- varchar
- datetime
- number
- raw
In Sybase what returns the number of row affected by the preceding query
- @@trancount
- @@rowcount
- @@sqlstatus
- @@rescount
Magic tables in Sybase are
- inserted
- updated
- deleted
- created
Identify the background process which, is responsible for writing data from buffer cache to the datafiles to make changes permanent
- Checkpoint (CKPT)
- Database Writer (DBWR)
- Process Monitor (PMON)
- Log Writer (LGWR)
Identify the parts of System Global Area. Choose all that apply.
- Database Buffer Cache
- Shared Pool
- Data Dictionary
- Redolog Group
- Redolog Buffer
Identify the physical components of the database. Choose all that apply
- Database
- Controlfile
- Table
- Datafile
- Index
- Redolog Group
Identify the physical component of the database, which stores the information about the database layout
- Datafile
- Controlfile
- Redolog Group
- Archivelogs
- Password File