Computer Knowledge
Database Management Systems
5,543 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
Transaction Tables
-
Small Static tables
-
Internal Tables
-
Tables with generic Keys
B
Correct answer
Explanation
Full buffering loads the entire table into memory. This is appropriate only for small static tables that are read frequently and rarely change, as the memory cost must be justified by high read activity. Transaction tables change too frequently, and internal tables are runtime structures.
-
Physical Definition
-
Business Object
-
Semantic Domain
-
Technical Domain
C
Correct answer
Explanation
A data element represents a semantic domain - it defines the business meaning and technical attributes of a field. It is not a physical definition (that's the domain level), not a business object (higher level), and not a technical domain (the underlying data type).
-
SQL Server Destination
-
OLE DB Destination
-
OLE DB Command Transformation
-
Data Conversion Transformation
C
Correct answer
Explanation
The OLE DB Command Transformation in SSIS data flow executes a SQL statement for each row, making it ideal for updating existing records row-by-row. Options A and B are destination components for inserting data, not updating. Option D is for type conversion, not database updates.
-
Tables
-
Views
-
Flat Files
-
Stored Procedures
C
Correct answer
Explanation
Tables, views, and stored procedures are all database objects within a DBMS. Flat files are external storage structures not part of the database schema, making C the correct choice as the odd one out.
A
Correct answer
Explanation
MultiLoad DELETE mode is specifically designed to perform efficient delete operations on Teradata tables. Unlike standard SQL DELETE commands that process rows one at a time, MultiLoad DELETE mode can perform a global delete operation that spans all AMPs (Access Module Processors) simultaneously. It targets a single table for deletion, making it ideal for bulk data removal tasks. This statement accurately describes the DELETE mode functionality.
-
Import
-
Accept
-
Layout
-
Export
A
Correct answer
Explanation
In Teradata utilities (FastExport, MultiLoad, TPump), the IMPORT command specifies the external client-side file that contains data values. These values are referenced by the USING clause for parameter substitution in the SELECT statement.
-
Only one LONG column can be used per table.
-
A TIMESTAMP data type column stores only time values with fractional seconds
-
The BLOB data type column is used to store binary data in an operating system file.
-
The minimum column width that can be specified for a VARCHAR2 data type column is one.
-
The value for a CHAR data type column is blank-padded to the maximum defined column width.
-
All the above
A,D,E
Correct answer
Explanation
Oracle allows only one LONG column per table due to legacy design limitations (option A). VARCHAR2 minimum width is 1 character (option D) - you cannot create a VARCHAR2(0) column. CHAR values are blank-padded to the full defined width (option E) - this is a key difference from VARCHAR2. Option B is false: TIMESTAMP stores both date and time. Option C is false: BLOB stores binary data within the database, not in OS files (that would be BFILE).
-
Avoids separate updates
-
ncreases performance and ease of use
-
Is useful in data warehousing applications
-
All of the above
D
Correct answer
Explanation
MERGE statement (also called UPSERT) combines INSERT and UPDATE operations in one statement. It avoids writing separate UPDATE and INSERT statements for the same data. This increases performance (single pass over data, reduced overhead) and ease of use (one statement instead of multiple). MERGE is particularly useful in data warehousing for slowly changing dimensions, ETL processes, and synchronization scenarios where you need to update existing rows or insert new ones based on a match condition.
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Oracle database transactions end in multiple ways. Explicitly with COMMIT (save changes) or ROLLBACK (discard changes). Implicitly when a DDL statement (CREATE, ALTER, DROP) or DCL statement (GRANT, REVOKE) executes - these auto-commit. Also when user exits the client tool (iSQL*Plus/SQL*Plus) or if the system crashes (forced rollback/commit). Any of these events terminate the current transaction.
-
Avoids separate updates
-
ncreases performance and ease of use
-
Is useful in data warehousing applications
-
All of the above
D
Correct answer
Explanation
The MERGE statement combines INSERT, UPDATE, and DELETE operations into a single statement, which avoids writing separate update statements. It is commonly used in data warehousing applications for ETL processes and can improve performance by reducing round trips to the database. The typo 'ncreases' in option B should be 'Increases'.
-
COMMIT or ROLLBACK
-
A DDL or DCL statement executing
-
USER exiting iSQL*Plus or System crash
-
Any one of the above
D
Correct answer
Explanation
Database transactions end through multiple mechanisms: explicit COMMIT or ROLLBACK commands, implicit termination when a DDL (CREATE, ALTER, DROP) or DCL (GRANT, REVOKE) statement executes, or external events like user exit or system crash. All these scenarios can terminate a transaction, making 'Any one of the above' the correct answer.