Содержание
- 2. Content: SQL DML SQL DQL Functions Filtering Data Conditional Expressions & Operators
- 3. SQL DML The SQL commands that deals with the manipulation of data present in the database
- 4. INSERT STATEMENT The INSERT statement of SQL is used to insert a new row in a
- 5. INSERT multiple rows To insert multiple rows in a table using Single SQL Statement: INSERT INTO
- 6. Using SELECT in INSERT INTO Statement We can use the SELECT statement with INSERT INTO statement
- 7. UPDATE Statement The UPDATE statement in SQL is used to update the data of an existing
- 8. UPDATE JOIN Sometimes, you need to update data in a table based on values in another
- 9. DELETE Statement The DELETE Statement in SQL is used to delete existing records from a table.
- 10. DELETE JOIN PostgreSQL doesn’t support the DELETE JOIN statement. However, it does support the USING clause
- 11. SQL DQL: SELECT statement SELECT is the most used statement in SQL. The SELECT Statement in
- 12. Column and Table Aliases Alias allows you to assign a column(s) or table(s) in the select
- 13. PostgreSQL ORDER BY When you query data from a table, the SELECT statement returns rows in
- 14. PostgreSQL ORDER BY clause and NULL In the database world, NULL is a marker that indicates
- 15. PostgreSQL SELECT DISTINCT The DISTINCT clause is used in the SELECT statement to remove duplicate rows
- 16. PostgreSQL WHERE The SELECT statement returns all rows from one or more columns in a table.
- 17. Operators in WHERE clause
- 18. PostgreSQL IN You use IN operator in the WHERE clause to check if a value matches
- 19. PostgreSQL BETWEEN You use the BETWEEN operator to match a value against a range of values.
- 20. PostgreSQL LIKE and NOT LIKE The PostgreSQL (NOT) LIKE operator is used to match text values
- 21. PostgreSQL IS NULL In the database world, NULL means missing information or not applicable. NULL is
- 22. PostgreSQL LIMIT PostgreSQL LIMIT is an optional clause of the SELECT statement that constrains the number
- 23. PostgreSQL FETCH To constrain the number of rows returned by a query, you often use the
- 24. PostgreSQL SERIAL and SEQUENCE In PostgreSQL, a sequence is a special kind of database object that
- 25. PostgreSQL SERIAL and SEQUENCE By definition, a sequence is an ordered list of integers. The orders
- 26. PostgreSQL SERIAL and SEQUENCE Behind the scenes, the following statement: is equivalent to the following statements:
- 27. PostgreSQL Built-in Functions: CONCAT To concatenate two or more strings into one, you use the string
- 28. PostgreSQL Built-in Functions: CONCAT The CONCAT function accepts a list of arguments. The argument needs to
- 29. PostgreSQL LENGTH Function The length function accepts a string as a parameter. A string can be
- 30. PostgreSQL CAST operator There are many cases that you want to convert a value of one
- 31. PostgreSQL CAST operator Besides the type CAST syntax, you can use the following syntax to convert
- 32. PostgreSQL CASE The PostgreSQL CASE expression is the same as IF/ELSE statement in other programming languages.
- 33. PostgreSQL CASE The following illustrates the general form of the CASE statement: Simple PostgreSQL CASE expression:
- 34. PostgreSQL DATE Functions Get the current date: To output a date value in a specific format,
- 35. PostgreSQL DATE Functions To get the interval between two dates, you use the minus (-) operator.
- 36. PostgreSQL DATE Functions To calculate age at the current date in years, months, and days, you
- 38. Скачать презентацию