How to Define Translation to Custom Module And Add a new language in Odoo 18Celine George
The-Beginnings-of-Indian-Civilisation.pdf/6th class new ncert social/by k san...Sandeep Swamy
Ad
SQL_Presentation.ppt basic version 12.32
1. Introduction to SQL
• Structured Query Language Basics
• Presented by: [Your Name]
• Date: [Presentation Date]
2. What is SQL?
• - SQL stands for Structured Query Language
• - Used to communicate with databases
• - Standard for relational databases
• - Examples: MySQL, PostgreSQL, SQL Server,
Oracle, SQLite
3. Why Use SQL?
• - Store and retrieve data efficiently
• - Handle large data volumes
• - Ensure data integrity
• - Essential for developers, analysts, DBAs
4. SQL Syntax Overview
• - SQL is not case-sensitive
• - Statements end with semicolon (;)
• Example:
• SELECT * FROM customers;
6. SELECT Statement
• - Retrieves data from tables
• Example:
• SELECT name, email FROM users;
7. WHERE Clause
• - Filters records based on condition
• Example:
• SELECT * FROM employees WHERE salary >
50000;
8. INSERT, UPDATE, DELETE
• - INSERT: Add new data
• INSERT INTO users (name, email) VALUES
('Alice', '[email protected]');
• - UPDATE: Modify data
• UPDATE users SET email = '[email protected]'
WHERE name = 'Alice';
• - DELETE: Remove data
• DELETE FROM users WHERE name = 'Alice';
9. SQL Joins
• - Combines rows from tables
• Types: INNER, LEFT, RIGHT, FULL
• Example:
• SELECT orders.id, customers.name
• FROM orders
• INNER JOIN customers ON orders.customer_id
= customers.id;
11. GROUP BY and HAVING
• - GROUP BY groups similar rows
• - HAVING filters groups
• Example:
• SELECT department, COUNT(*)
• FROM employees
• GROUP BY department
• HAVING COUNT(*) > 5;
12. ORDER BY Clause
• - Sorts result set
• - ASC (ascending), DESC (descending)
• Example:
• SELECT name, salary FROM employees ORDER
BY salary DESC;
13. Creating and Modifying Tables
• - CREATE TABLE:
• CREATE TABLE users (
• id INT PRIMARY KEY,
• name VARCHAR(100),
• email VARCHAR(100)
• );
• - ALTER TABLE to modify
• - DROP TABLE to delete