Step-by-Step learning of complex Oracle queries (key points)

Source: Internet
Author: User
Preface complex data statistics are often executed in practical applications and data from multiple tables needs to be displayed. Therefore, we must pay great attention to the complex select statement! 1-important functions of Data grouping: max, min, avg, sum, count (1

Preface complex data statistics are often executed in practical applications and data from multiple tables needs to be displayed. Therefore, we must pay great attention to the complex select statement! 1-important functions of Data grouping: max, min, avg, sum, count (1

Preface

Complex data statistics are often required in practical applications, and data in multiple tables must be displayed.

Example:

If there are no 40 departments, change to right join... ON, as shown in:

We can see from the above: 40 departments have appeared!

All databases outside of Oracle (SQLSERVER, MYSQL, DB2, and so on) use the preceding SQL: 1999 syntax operation, so it must be! (Of course, if you keep using the Oracle database, you won't :))

Emphasize that the performance of Multi-table queries is certainly not high, and the performance must be discovered only when the data volume is large.


This article is from the "beyondhedefang" blog. Please keep this source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.