DBMS Flashcards
What is RDBMS (Relational Database Management System)?
Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables.
Relationships may be created and maintained across and among the data and tables.
An RDBMS has the capability to recombine the data items from different files, providing powerful tools for data usage.
How are relationships between data items in a relational database expressed?
In a relational database, relationships between data items are expressed by means of tables and the Inter-dependencies among these tables are expressed by data values rather than by pointers. This allows a high degree of data independence.
What is a Primary Key?
A PRIMARY KEY constraint is a unique identifier for a row within a database table. Every table should have a primary key constraint to uniquely identify each row and only one primary key constraint can be created for each table.
What is a Unique Key
A UNIQUE constraint that enforces the uniqueness of the values in a set of columns, so no duplicate values are entered.
What is a Foreign Key?
A FOREIGN KEY constraint prevents any actions that would destroy links between tables with the corresponding data values. A foreign key in one table points to a primary key in another table. Foreign keys prevent actions that would leave rows with foreign key values when there are no primary keys with that value.
What is a CHECK constraint?
A CHECK constraint is used to limit the values that can be placed in a column.
What is NOT NULL constraint
A NOT NULL constraint enforces that the column will not accept null values.
What does a Primary key enforces?
It enforces entity integrity
What does a Unique Key enforces?
It enforces entity integity
What does a Foreign key enforces?
It enforces referential integrity
What does a CHECK constraint enforces?
It enforces domain integrity
What does a NOT NULL constraint enforces?
It enforces a domain constraint
What is the similarity between a primary key and a unique key?
They both enforce uniqueness of the column on which they are defined
What is the difference between a primary key and a unique key?
- But by default primary key creates a clustered index on the column, where as unique key creates a non-clustered index by default.
- Another major difference is that, primary key doesn’t allow NULLs, but unique key allows one NULL only
What is Normalization
–Database normalization is a data design and organization processes applied to data structures based on rules that help build relational databases.
In relational database design, the process of organizing data to minimize redundancy.
–Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships.