Gr11 12 – SQL database

It is easy to think that a database has some sort of logic, intelligence and self-awareness. It is does not. A database is like a suitcase of clothes. Some items “go with” other items but the clothes themselves do not understand their relationship with one...

Gr12 – SQL. Random numbers

Random numbers with predictable starting and ending values eg 1 – 10, 1 – 100, 1 -1000In SQL we use the RND( ) function. Inside the round brackets goes the seed value (an integer value) Generating a random number requires a few steps. A) Generating a...

Gr 12 – SQL Adv

In grade 12 you need to be familiar with composite SQL statements (embedded / nested SQL statements). This means that two statements are joined together – the result set on one query is passed to the other. Therefore there are two SELECT / FROM statements joined...

Gr 12 – SQL practical

Here is a SQL exercise based on the 2022 SQL exam set by Dr C Kader and moderated by Mr T de Jager and Mr R Viljoen of the IEB Pretoria 480 cluster. In some cases you may find comments which can be annoying if you print the documents shown below. These can be turning...