answersLogoWhite

0

In essence, Relational Algebra shows the mathematical manner in which a database management system (DBMS) goes about its job. Through the use of Relational Algebra, we can calculate the most efficient way for a DBMS to interact with the database, e.g. updating records, performing a COUNT of the rows in a table etc.

The Relational Algebra for returning the surnames in a table holding details of employees where their salary is greater than 30000 per year, is as follows:

SELECTSurname(PROJECTSalary>30000)

(The SELECT operator is often a Pi symbol, and the PROJECT operator is often a Sigma symbol)

An SQL statement, however, would go something like this:

SELECT Surname

FROM tblEmployee

WHERE Salary>30000

Hopefully you can see the difference. Ultimately, the algebra can be used by mathematicians and DBMS creators to ensure the DBMS works as efficiently as possible in performing tasks required by users. Whilst not really necassary in a small-scale database, clearly in a large, complex database you'll be looking at thousands and thousands of rows that need to be queried, updated etc, so efficiency in getting the data back is very important!

An SQL statement may look similar, but there's no real calculation involved here. It is instead a standardised language allowing database administrators and users to give a set of instructions, telling the DBMS (Oracle, MS Access, MySQL etc.) what you want to do to a database, e.g. query it, update it, delete from it, and so on.

I hope that answers your question!

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the difference between a statement and a clause in SQL?

An SQL statement is a complete set of clauses which returns a value and ends with a semicolon(;) A statement is made up of several clauses Ex: select * from person where f_name='me'; In this ex ' select * from person where f_name='me';' is the statement and select*, from person, where f_name= are the clauses


What are the reasons for converting SQL queries into relational algebra queries?

Converting SQL queries into relational algebra queries can enhance understanding of the underlying operations and data manipulation processes. It provides a more abstract representation of query execution, helping to optimize performance by identifying potential inefficiencies in the SQL statement. Additionally, relational algebra serves as a foundational theoretical framework for database theory, aiding in the formal analysis and optimization of database queries. Finally, it facilitates the translation of queries across different database systems by providing a common operational language.


What are the differences between SQL statement to iSQL plus statement?

Structured Query Lanaguage(SQL) is a command language to communicate with oracle server.whereas SQL*PLUS is an oracle tool that recognises and submits sql statements to the oracle server for execution.


Why not allow database programmers to write directly in relational algebra instead of sql?

I would guess the SQL language was considered to be simpler for the programmer.


What is the difference between T-sql and sql?

T-SQL is Microsoft's version of the generic SQL langauge to be used with, for example, Microsoft SQL Server.


What is the difference between hql and sql?

one of the difference is HQL does not support distinct but SQL supports the distinct in the query


What is the error in this SQL statement?

You need to tell us what the statement is - in order for us to help you !


What is the abbreviation for statement?

Statement can be abbreviated to STMT. It is not widely used, but it appears SQL code.


What does a SQL Delete statement allow?

An SQL Delete statement is a code used for programming. It allows you to delete a single record or multiple records from a graph or table. These codes can be very useful.


Difference between sql server 2003 sql server 2005?

There is no such thing as SQL Server 2003. Microft released SQL Server 2005 as the next version of SQL Server 2000.


What SQL clause is used to determine the fields to be displayed in an SQL Query statement?

The SQL clause used to determine the fields to be displayed in an SQL query statement is the SELECT clause. It specifies the columns or expressions that the query will return from the database. For example, SELECT column1, column2 FROM table_name; retrieves the specified columns from the given table.


Which sql statement is used to update data from a database?

The SQL statement used to update data in a database is the UPDATE statement. It allows you to modify existing records in a table by specifying the columns and values to be updated based on certain conditions.

Trending Questions
8 x-1 equals 7x plus 2 Answer? Where is the independent variable and the dependent variable on the line graph? How do you find the values of x and y in the diagonals of a parallelogram? How do you make a proper fraction into an improper fraction? Assume that y varies inversely as x. If y equals -6 when x equals-2 find y when x equals 5? In chest A there are three times as many coins as in chest b altogether there are 120 coins how many coins are there in chest B? Example of group is an abelian group? What 2 consecutive numbers which give a product of 8556? What is the answer to page 4.4 in the Punchline Algebra book A how can you find fish in the encyclopedia? -5(-8s-3) plus 2(5s plus 4)? What is the answer to 14x - 2 equals 0? How you find the slope of a line through two points? How many sides does a polygon have if its sum of interior angles is 5940? How would you write 3 squared? What is the difference between char and varchar2 in dbms? What do they mean by a to the b power times a to the c power equals a b c power? A rectangular garden has a width of 5 feet and a length of 10 feet If an equal amount is added to both the width and the length, the area is increased to 104 square feet What is this amount? What are some solutions to the problem of personal identity management? A triangle has an angle of 15 degrees. The side opposite the angle is 1.2m in length. How would you find the base of the triangle Not the hypotenuse? What is 5 degrees less than 3150mm?