Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle series: (13) Multi-table query

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Multi-table query, including equivalent join, non-equivalent join, external join, self-join.

Internal connections, including equivalent connections and non-equivalent connections.

Cartesian set of employee table emp and department table dept (Cartesian set table = sum of columns, product of rows, some data in Cartesian table does not meet the requirements)

Select emp.ename,dept.dnamefrom emp,dept

Use equivalent / internal connections (only the = sign can be used) to display the employee's number, name, department name, and simplify using table aliases

Select emp.empno,emp.ename,dept.dname,dept.deptnofrom emp,deptwhere emp.deptno = dept.deptno

Use a non-equivalent connection (you cannot use the = sign, other symbols can, for example: > =

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report