Ch-6 Mysql Functions
Ch-6 Mysql Functions
FUNCTIONS
Output: 'ABC'
2. CONCAT()
SELECT LOWER('MySQL');
Output: 'mysql'
4. SUBSTR()
SELECT UPPER('mysql');
Output: 'MYSQL'
6. LTRIM()
SELECT LENGTH('MySQL');
Output: 5
11. LEFT()
SELECT DAYNAME('2024-09-22');
Output: 'Sunday'
8. DAYOFMONTH()
**Syntax:**
Explanation:
- The `GROUP BY` clause groups the rows by `Salesperson`.
- The `HAVING` clause filters out groups where the total sales are less than or equal to $10,000, showing only those
with higher sales.