Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Database Management - Lecture 3 - SQL Aggregate Functions, Join

Database Management - Lecture 3 - SQL Aggregate Functions, max(). min(), avg(), count(), sum(), Join, Left join, LEFT (OUTER) JOIN, RIGHT (OUTER) JOIN, FULL (OUTER) JOIN

  • Login to see the comments

Database Management - Lecture 3 - SQL Aggregate Functions, Join

  1. 1. WEB DEVELOPMENT
  2. 2. PHP PRESENTATORS MD. AL-MAMUN SARKAR
  3. 3. SQL
  4. 4. Aggregate Functions
  5. 5. MIN() and MAX() SELECT MIN(column_name) FROM table_name WHERE condition; SELECT MAX(column_name) FROM table_name WHERE condition;
  6. 6. COUNT(), AVG() and SUM() SELECT COUNT(column_name) FROM table_name WHERE condition; SELECT AVG(column_name) FROM table_name WHERE condition; SELECT SUM(column_name) FROM table_name WHERE condition;
  7. 7. Group By SELECT column_name(s) FROM table_name WHERE condition GROUP BY column_name(s); SELECT COUNT(CustomerID), Country FROM Customers GROUP BY Country;
  8. 8. Union SELECT column_name(s) FROM table1 UNION ALL SELECT column_name(s) FROM table2;
  9. 9. Join (INNER) JOIN LEFT (OUTER) JOIN 1 2 RIGHT (OUTER) JOIN3 FULL (OUTER) JOIN4
  10. 10. Join
  11. 11. LIMIT SELECT * FROM students LIMIT 0, 2
  12. 12. QUESTION ?
  13. 13. THANK YOU

×