Browsed by
Category: Blog

What is Relational Algebra?

What is Relational Algebra?

Relational Algebra is a Procedural Query Language which contains a set of operations that take one or two relations as input and produce a new relationship. Relational algebra is the basic set of operations for the relational model. The decisive point of relational algebra is that it is similar to the algebra which operates on the number. There are few fundamental operations of relational algebra: select project set difference union rename,etc.

What is System R? How many of its two major subsystems?

What is System R? How many of its two major subsystems?

System R was designed and developed from 1974 to 1979 at IBM San Jose Research Centre. System R is the first implementation of SQL, which is the standard relational data query language, and it was also the first to demonstrate that RDBMS could provide better transaction processing performance. It is a prototype which is formed to show that it is possible to build a Relational System that can be used in a real-life environment to solve real-life problems. Following are…

Read More Read More

Eklavya Online

Eklavya Online

Eklavya Online is Free Study Portal for NewBies and Experienced Guys who wanna upgrade their knowledge in their respective industry and strive to learn more.

What are CODD rules

What are CODD rules

In 1969 Dr. E. F. Codd laid down some 12 rules which a DBMS should adhere in order to get the logo of a true RDBMS. Rule 1: Information Rule. “All information in a relational data base is represented explicitly at the logical level and in exactly one way – by values in tables.” Rule 2: Guaranteed access Rule. “Each and every datum (atomic value) in a relational data base is guaranteed to be logically accessible by resorting to a…

Read More Read More

We have an employee salary table, how do we find the second highest from it.

We have an employee salary table, how do we find the second highest from it.

Below Sql Query find the second highest salary SELECT * FROM pcdsEmployeeSalary a WHERE (2=(SELECT COUNT(DISTINCT(b.salary)) FROM pcdsEmployeeSalary b WHERE b.salary>=a.salary)) To find the second highest salary from an employee salary table in a Database Management System (DBMS), you can use a query like this: sql SELECT MAX(salary) AS second_highest_salary FROM employees WHERE salary < (SELECT MAX(salary) FROM employees); This query first finds the maximum salary in the table using MAX(salary). Then, it finds the maximum salary that is less…

Read More Read More

What is Snow Flake Schema design in database? What’s the difference between Star and Snow flake schema

What is Snow Flake Schema design in database? What’s the difference between Star and Snow flake schema

Star schema is good when you do not have big tables in data warehousing. But when tables start becoming really huge it is better to denormalize. When you denormalize star schema it is nothing but snow flake design. For instance below customeraddress table is been normalized and is a child table of Customer table. Same holds true for Salesperson table.

What is “CROSS JOIN”? Orwhat is Cartesian product

What is “CROSS JOIN”? Orwhat is Cartesian product

CROSS JOIN” or “CARTESIAN PRODUCT” combines all rows from both tables. Number of rows will be product of the number of rows in each table. In real life scenario I can not imagine where we will want to use a Cartesian product. But there are scenarios where we would like permutation and combination probably Cartesian would be the easiest way to achieve it.

What is ETL process in Data warehousing? What are the different stages in “Data warehousing

What is ETL process in Data warehousing? What are the different stages in “Data warehousing

ETL (Extraction, Transformation and Loading) are different stages in Data warehousing. Like when we do software development we follow different stages like requirement gathering, designing, coding and testing. In the similar fashion we have for data warehousing. Extraction:- In this process we extract data from the source. In actual scenarios data source can be in many forms EXCEL, ACCESS, Delimited text, CSV (Comma Separated Files) etc. So extraction process handle’s the complexity of understanding the data source and loading it…

Read More Read More

Introduction to RDBMS

Introduction to RDBMS

Introduction Data is meaningful information. Database is a collection of relevant data. DBMS means database management system. DBMS provides the software to manage the database. Following are the operations to be performed on database: insertion, deletion, updation, sorting, searching, traversing, etc. Following are the different types of DBMS: FMS, Hierarchical, DBMS FMS (File Management System) It is simple to create but difficult to manage. No relations are there (like 1-to-1, 1-to-many) Hierarchical System Here data is stored in tree like…

Read More Read More

How to select the first record in a given set of rows

How to select the first record in a given set of rows

Select top 1 * from sales.salesperson To select the first record in a given set of rows in a database management system (DBMS), you can typically use the LIMIT clause in conjunction with the ORDER BY clause to specify the ordering of the rows. The LIMIT clause restricts the number of rows returned by the query, and by combining it with ORDER BY, you can ensure that the first row returned is the one you want. Here’s an example in…

Read More Read More