Skip to main content

In what case relational calculus differ from relational algebra, and in what sense are they similar?


Relational algebra is a procedural language and Relational calculus is non-procedural language. In relational algebra user has to specify, what is required, and what the steps to obtain the required output are whereas in relational calculus user has to specify what is needed but does not have to specify how to obtain the result. Both, relational calculus and relational algebra are formal language. They are the basis on which other, higher level data manipulation languages for relational calculus. Relational algebra have operators like join, union, intersection, division, projection, selection etc. but relation calculus has tuples and domain oriented expressions. Expressive power of both relational algebra and relational calculus is equivalent i.e. any query that can be expressed in relational algebra can also be expressed in relational calculus. Relational algebra is relatively easier to manipulate than relational calculus. Relational algebra are more powerful than the relational calculus.


Rational Algebra
Relational Calculus
It is a procedural language.
It is non-procedural language.
We specify the sequence of operation to perform a particular query.
We specify only what is required without bothering about the sequence of operations to perform query.
Evaluation of the query depends upon the order of operation.
Does not depend on the order of the operations.
It is closely related to programming language.
It is closely related to natural language.
It can be directly implemented.
It needs to be first converted into relational algebra before it can be implemented.
The queries are domain independent.
The queries are domain dependent.


Comments

Popular posts from this blog

SAP-1(Simple as Possible-1) Computer Architecture Introduction

The Simple-As-Possible (SAP)-1 computer is a very basic model of a microprocessor explained by Albert Paul Malvino. The SAP-1 design contains the basic necessities for a functional Microprocessor. Its primary purpose is to develop a basic understanding of how a microprocessor works, interacts with memory and other parts of the system like input and output. The instruction set is very limited and is simple. The features in SAP-1 computer are: W bus – A single 8 bit bus for address and data transfer.  16 Bytes memory (RAM)  Registers are accumulator and B-register each of 8 bits.  Program counter – initializes from 0000 to 1111 during program execution.  Memory Address Register (MAR) to store memory addresses.  Adder/ Subtracter for addition and subtraction instructions.  A Control Unit  A Simple Output.  6 machine state reserved for each instruction  The instruction format of SAP-1 Computer is (XXXX) (XXXX) A Simple animation ...

[FIX]Illuminate\Database\QueryException SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = enrolmentsystem and table_name = migrations and table_type = 'BASE TABLE')

Illuminate\Database\QueryException    SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = enrolmentsystem and table_name = migrations and table_type = 'BASE TABLE')   at vendor/laravel/framework/src/Illuminate/Database/Connection.php:678     674▕         // If an exception occurs when attempting to run a query, we'll format the error     675▕         // message to include the bindings with SQL, which will make this exception a     676▕         // lot more helpful to the developer instead of just the database's errors.     677▕         catch (Exception $e) {   ➜ 678▕             throw new QueryException(     679▕                 $query, $this->prepareBindings($binding...