Seele

Seele

SQL Data Manipulation Language

Data Insertion, Deletion, Modification#

  1. Insertion
  2. Deletion
  3. Modification
  4. Query

Simple Query, Join Query#

  1. Simple Query

  2. Join Query

    mysql Union

    Tips:

    1. The "*" symbol can replace fields
    2. Where contains conditions after it
    3. Conditions can be connected using AND or OR
    4. LIMIT can be used to limit the length of the result set
    5. OFFSET can be used to specify the offset of the result set (where to start)
    6. COUNT(*) can retrieve the number of rows in the result set
  3. Nested Subquery

Sorting, Calculating, Grouping Query Results#

  1. Sorting

  2. Calculating

    FunctionDescriptionExample
    AVGCalculate the average valueAVG(column_name(s))
    COUNTCalculate the total number of query recordsCOUNT(column_name(s))
    MAXCalculate the maximum valueMAX(column_name(s))
    MINCalculate the minimum valueMIN(column_name(s))
    SUMCalculate the sumSUM(column_name(s))
    MODCalculate the remainderMOD(column_name(s),value)
    STDCalculate the standard deviationSTD(column_name(s))
    RANDCalculate random numberRAND()
    ROUNDCalculate roundingROUND(column_name(s),value)
    GREATESTCalculate the maximum valueGREATEST(column_name(s),column_name(s))
    LEASTCalculate the minimum valueLEAST(column_name(s),column_name(s))

    Tips:

    1. Difference between Max and Greatest functions
    2. Standard deviation is the square root of variance
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.