Browsed by
Tag: Notes on RDBMS

What are the unary operations in Relational Algebra?

What are the unary operations in Relational Algebra?

PROJECTION and SELECTION are the unary operations in relational algebra. Unary operations are those operations which use single operands. Unary operations are SELECTION, PROJECTION, and RENAME. As in SELECTION relational operators are used for example – =,=, etc. In relational algebra, unary operations are operations that operate on a single relation. The correct answer would typically include operations like Selection (σ), Projection (π), and Rename (ρ). These operations manipulate or transform a single relation.

What do you mean by durability in DBMS?

What do you mean by durability in DBMS?

Once the DBMS informs the user that a transaction has completed successfully, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called durability. Durability ensures that once the transaction is committed into the database, it will be stored in the non-volatile memory and after that system failure cannot affect that data anymore.

What is 1NF?

What is 1NF?

1NF is the First Normal Form. It is the simplest type of normalization that you can implement in a database. The primary objectives of 1NF are to: Every column must have atomic (single value) To Remove duplicate columns from the same table Create separate tables for each group of related data and identify each row with a unique column

DBMS Interview Questions – Set 03

DBMS Interview Questions – Set 03

Can you explain Fourth Normal Form and Fifth Normal Form In fourth normal form it should not contain two or more independent multi-v about an entity and it should satisfy “Third Normal form”. Fifth normal form deals with reconstructing information from smaller pieces of information. These smaller pieces of information can be maintained with less redundancy. What is order by clause ORDER BY clause helps to sort the data in either ascending order to descending order. Ascending order sort query:…

Read More Read More

What are the two types of indexes and explain them in detail? Orwhat’s the difference between clustered and non-clustered indexes

What are the two types of indexes and explain them in detail? Orwhat’s the difference between clustered and non-clustered indexes

There are basically two types of indexes:- Clustered Indexes. Non-Clustered Indexes. In clustered index the non-leaf level actually points to the actual data.In Non-Clustered index the leaf nodes point to pointers (they are rowid’s) which then point to actual data. The correct answer to your question would be the difference between clustered and non-clustered indexes. Clustered Index: A clustered index determines the physical order of data rows in a table based on the indexed column(s). Each table can have only…

Read More Read More

What is RDBMS?

What is RDBMS?

RDBMS stands for Relational Database Management Systems. It is used to maintain the data records and indices in tables. RDBMS is the form of DBMS which uses the structure to identify and access data concerning the other piece of data in the database. RDBMS is the system that enables you to perform different operations such as- update, insert, delete, manipulate and administer a relational database with minimal difficulties. Most of the time RDBMS use SQL language because it is easily…

Read More Read More

What is normalization?

What is normalization?

Normalization is a process of analysing the given relation schemas according to their functional dependencies. It is used to minimize redundancy and also used to minimize insertion, deletion and update distractions. Normalization is considered as an essential process as it is used to avoid data redundancy, insertion anomaly, updation anomaly, deletion anomaly. There most commonly used normal forms are: First Normal Form(1NF) Second Normal Form(2NF) Third Normal Form(3NF) Boyce & Codd Normal Form(BCNF)

What is 2NF?

What is 2NF?

2NF is the Second Normal Form. A table is said to be 2NF if it follows the following conditions: The table is in 1NF, i.e., firstly it is necessary that the table should follow the rules of 1NF. Every non-prime attribute is fully functionally dependent on the primary key, i.e., every non-key attribute should be dependent on the primary key in such a way that if any key element is deleted, then even the non_key element will still be saved…

Read More Read More

DBMS Interview Questions – Set 04

DBMS Interview Questions – Set 04

What is Data Warehousing Data Warehousing is a process in which the data is stored and accessed from central location and is meant to support some strategic decisions. Data Warehousing is not a requirement for Data mining. But just makes your Data mining process more efficient. Data warehouse is a collection of integrated, subject-oriented databases designed to support the decision-support functions (DSF), where each unit of data is relevant to some moment in time. What is the default “-SORT” order…

Read More Read More

How many types of database languages are?

How many types of database languages are?

There are four types of database languages: Data Definition Language (DDL) e.g., CREATE, ALTER, DROP, TRUNCATE, RENAME, etc. All these commands are used for updating the data that?s why they are known as Data Definition Language. Data Manipulation Language (DML) e.g., SELECT, UPDATE, INSERT, DELETE, etc. These commands are used for the manipulation of already updated data that’s why they are the part of Data Manipulation Language. DATA Control Language (DCL) e.g., GRANT and REVOKE. These commands are used for…

Read More Read More