Get the App
SLTechnology News&Howtos  ›  Database  › 

Single table query

Shulou Source: shulou.com Published: 2022-06-01 03:17:11 11月15日 Update

Complete grammar

Simple query

Filter conditions before grouping in where

Group by grouping

What is grouping: categorized according to the same parts of all records, certain fields with low discrimination

Why grouping: when we want to count on a group basis, we have to group.

The purpose of grouping is to make statistics on a group basis, and then to consider that a single record is meaningless.

Aggregate function

Usage

Having is further screened for the results of the aggregation after the aggregation.

Order by sorting

Conditions under which limit restricts display

Regular expression

Tags: Grouping unit condition statistics query same function field meaning time is in regular purpose result expression grammar part differentiation enter one classify Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Redmi NVidia Docker