Basic SQL Commands
Basic SQL Commands
SAYAN CHOWDHURY
BASIC SQL COMMANDS (JOINS EXCLUDED) ~
SAYAN CHOWDHURY
9. SELECT TOP: T The SELECT TOP clause is used to specify the
number of records to return. The SELECT TOP clause is useful on large
tables with thousands of records. Returning a large number of records
can impact performance.
10. MIN & MAX: The MIN () function returns the smallest value of
the selected column. The MAX () function returns the largest value of
the selected column.
11. COUNT: The COUNT () function returns the number of rows that
matches a specified criterion.
12. AVG: The AVG () function returns the average value of a numeric
column.
13. SUM: The SUM () function returns the total sum of a numeric
column.
15. GROUP BY: The GROUP BY statement groups rows that have
the same values into summary rows, like "find the number of customers
in each country".
SAYAN CHOWDHURY
SAYAN
CHOWDHURY
FOR MORE
SAYAN CHOWDHURY