tutor.org.in

Free preview · Reading · 1 h 30 min

Database queries with SQL

Informatics Practices — CBSE Class 12 · 1. Database queries with SQL

In this lesson

  • SQL functions
  • GROUP BY, HAVING and ORDER BY
  • Joins

Explanation

  • SQL functions: math, text, date, aggregate
  • GROUP BY, HAVING and ORDER BY
  • Joins

Worked example

SELECT city, COUNT(*) FROM customers GROUP BY city HAVING COUNT(*) > 5;

Practice

Write ten SQL queries for the sales database on your worksheet.

Continue in the learning spaceEnrol to open every lesson, track your progress, hand in work for faculty review and ask your tutor.Enrol — ₹3,499 for 12 months