Capabilities of the SELECT Statement(SELECT语句的功能):Projection(投影)Selection(选择)Joining(连接)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Capabilities of the SELECT Statement(SELECT语句的功能):Projection(投影)Selection(选择)Joining(连接)相关的知识,希望对你有一定的参考价值。

Capabilities of the SELECT Statement(SELECT语句的功能)

Data retrieval from data base is done through appropriate and efficient use of SQL. Three concepts from relational theory encompass the capability of the SELECT statement: projection, selection, and joining.

  • Projection(投影): A project operation selects only certain columns (fields) from a table. The result table has a subset of the available columns and can include anything from a single column to all available columns. 选择列的能力
  • Selection(选择): A select operation selects a subset of rows (records) in a table (relation) that satisfy a selection condition. The ability to select rows from out of complete result set is called Selection. It involves conditional filtering and data staging. The subset can range from no rows, if none of the rows satisfy the selection condition, to all rows in a table. 从表里选择所需要的行
  • Joinin连接): A join operation combines data from two or more tables based on one or more common column values. A join operation enables an information system user to process the relationships that exist between tables. The join operation is very powerful because it allows system users to investigate relationships among data elements that might not be anticipated at the time that a database is designed. 连接多个表

Consider the above table structures. Fetching first_name name, department_id and salary for a single employee from EMPLOYEES table is Projection. Fetching employee details whose salary is less than 5000, from EMPLOYEES table is Selection. Fetching employee‘s first name, department name by joining EMPLOYEES and DEPARTMENTS is Joining.

技术分享

 

技术分享

 

Question: Identify the capabilities of SELECT statement.

  1. Projection
  2. Selection
  3. Data Control
  4. Transaction

Answer: A, B. The SELECT statement can be used for selection, projection and joining.

 

 

以上是关于Capabilities of the SELECT Statement(SELECT语句的功能):Projection(投影)Selection(选择)Joining(连接)的主要内容,如果未能解决你的问题,请参考以下文章

《Approximation Capabilities of Multilayer Feedforward Networks》的学习笔记

python2.7运行selenium webdriver api报错Unable to find a matching set of capabilities

selenium WebDriver提示Unable to find a matching set of capabilities解决方法

更新浏览器,导致编写脚本报错Message: Unable to find a matching set of capabilities

ubuntu系统下selenium打开火狐浏览器提示'Unable to find a matching set of capabilities.解决方法

number field is the union of the set of all strings and the set of all numbers. The set of things th