Содержание
- 2. Learning Objective: Create, evaluate and improve search queries that use multiple criteria and relational operators to
- 3. Success criteria know what is Queries know the purpose of the Queries can create Queries using
- 4. MySQL – RDBMS SQL stands for the Structured Query Language. It defines how to insert, retrieve,
- 5. Создание базы данных CREATE DATABASE my_first_db; DROP DATABASE: Удалить базу данных DROP TABLE: Удалить таблицу EXPLAIN:
- 6. ALTER TABLE: Изменить таблицу Удаляем столбец ALTER TABLE users DROP email; Изменение столбца ALTER TABLE users
- 7. Select SELECT is used to retrieve rows selected from one or more tables. The SELECT statement
- 8. SELECT, WHERE We need to use another statement, the WHERE clause, allowing us to give the
- 9. Operators in The WHERE Clause So you can see we used AND statement, we also can
- 10. Example Say the police knew that a crime had been committed by a heavily scarred woman
- 11. Example However, the police want to quickly sort through and see who is the most heavily
- 12. Select with Comparison Operators For numbers (INT, DECIMAL, FLOAT)
- 13. For strings, you could also use '=', ' ', '>', ' =', '
- 14. String Pattern Matching - LIKE and NOT LIKE we can perform pattern matching using operator LIKE
- 15. Arithmetic Operators - +, -, *, /, DIV, % Logical Operators - AND, OR, NOT, XOR
- 16. Further Reading….. IN, NOT IN BETWEEN, NOT BETWEEN IS NULL, IS NOT NULL ORDER BY Clause
- 17. create table Employee(empno int(5) primary key, ename varchar(30), job varchar(25), hiredate date, sal double(10,2), commission double(6,2),
- 19. Скачать презентацию