Computer Science, asked by sivaganesh73, 1 year ago

Difference between selection and projection in relational algebra


Anonymous: ___k off

Answers

Answered by Anonymous
3

Answer:

Explanation:

In Relational algebra 'Selection' and 'Projection' are different operations, but the SQL SELECT combines these operations in a single statement. Select retrieves the tuples (rows) in a relation (table) for which the condition in 'predicate' section (WHERE clause) stands true.

Answered by hotelcalifornia
1

The difference between selection and projection is Selection means which rows are to be returned and Projection means choosing which columns the query shall return.

Explanation:

  • Relational Algebra gives output based on the input command and it is performed recursively.
  • Selection is also used to select a row also known as the tuple from a relation based on the condition.
  • The condition is also known as the predicate.
  • It is denoted by \sigma (Sigma).
  • Example:  For selecting  rows from Student relation having age of 18 years. It is given by \sigma (age = 18 ) (Student)
  • Projection is used to select some attribute from a relation , depending upon the Predicate.
  • Example: For selecting consumer name from Customer relation having age greater than 20.
  • It is written as  \pi (CustomerName, age>20)  (Customers)  

Learn more about DBMS

What is the difference between DBMS and RDBMS?

brainly.in/question/4259962

What are the advantages of dbm

brainly.in/question/416244

Similar questions