When we use criteria to limit the number of rows that are displayed from a single table, we are using the relational operation known as a _________________ .   Question 44 options:   1)  project (projection)   2)  join   3)  select (selection)   4)  product   5)  difference

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
When we use criteria to limit the number of rows that are displayed from a single table, we are using the relational operation known as a _________________ .
 

Question 44 options:

 

1) 

project (projection)
 

2) 

join
 

3) 

select (selection)
 

4) 

product
 

5) 

difference
Expert Solution
Step 1

When we use criteria to limit the number of rows that are displayed from a single table, we are using the relational operation known as select (selection) operator.

 

Consider tables Student and Advisor.

Student ( sid, fname, lname, country, aid )

Advisor ( aid, fname, lname, dept )

 

SELECT operator

This operator is used to specify the condition which forms the basis of the output to be displayed.

Only those rows which satisfy the condition mentioned in this clause are displayed.

 

σ country = "USA" (Student)

This returns all the rows from Student table who have USA has their country.

 

Step 2

1. PROJECT operator

This operator specifies the columns which are to be displayed in the output.

Only those columns which are mentioned with this operator are found in the result set.

Π fname, lname (Student)

The result contains columns fname and lname from Student table.

 

2. JOIN operator

This operator is used to join two tables at a time.

This operator is used when columns required in the output reside in different tables.

Only those tables can participate in join which have share a common column.

Student ⋈ Student.aid = Advisor.aid (Advisor)

This operation returns all rows from both tables where the value of aid in both the tables are same.

 

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education