Ansi SQL Using Mysql
Ansi SQL Using Mysql
6. SQL Operators
- Arithmetic Operators: +, -, *, /, %
- Comparison Operators: =, !=, <>, >, <, >=, <=
- Logical Operators: AND, OR, NOT
- Bitwise Operators: &, |, ^, ~, <<, >>
7. SQL Functions
- Aggregate Functions: COUNT(), SUM(), AVG(), MIN(), MAX()
- String Functions: CONCAT(), LENGTH(), UPPER(), LOWER(), SUBSTRING()
- Date Functions: NOW(), CURDATE(), DATE_FORMAT()
- Numeric Functions: ROUND(), CEIL(), FLOOR(), ABS()
- Conversion Functions: CAST(), CONVERT()
8. Clauses in SQL
- WHERE: Filters records based on conditions.
- GROUP BY: Groups records with identical values.
- HAVING: Filters groups based on conditions.
- ORDER BY: Sorts the result set in ascending or descending order.
- LIMIT: Restricts the number of records returned.
10. Sub-Queries
- A query nested inside another query.
- Used with SELECT, INSERT, UPDATE, DELETE.
- Can return single or multiple values.