A3.3 Database programming - IB Diploma Class 12 Computer Science Notes, Diagrams and Solved Questions

Writing SQL that really runs: creating tables, querying with WHERE, patterns, aggregates, GROUP BY, HAVING and joins, changing data safely, views, and transactions with the ACID properties.

In this chapter

  • DDL and DML, and CREATE TABLE with data types and constraints
  • SELECT with WHERE, AND/OR/NOT, ORDER BY and DISTINCT, with a live query builder
  • Pattern and range tests: LIKE, BETWEEN and IN
  • COUNT, SUM, AVG, MIN, MAX with GROUP BY and HAVING
  • INNER JOIN across two and three tables
  • INSERT, UPDATE, DELETE and views
  • Transactions, ACID and running SQL from a Python program
  • Iteration 3: longer queries from a specification, safe changes and views for security, concurrency and lost updates