logo

Crowdly

Browser

Add to Chrome

Questions Bank (1607834 total)

X works as a security guard at an expensive jewellery store called “Millionaire’s Playground”. X decides to steal a diamond ring to sell privately. X takes the diamond ring from the display cabinet, deliberately drops it to the floor and hides it underneath a carpet in the store. X intends to retrieve the ring and to put it in his pocket before he goes home for the day. Before X can retrieve the ring and take it home, it is discovered by a cleaner underneath the carpet and returned to the display cabinet where it gets locked up safely.
100%
0%
0%
0%
View this question
Thomas is employed as a driver by a known gang leader, Mr Mokoena. Mr Mokoena gives Thomas a firearm and instructs him to carry it at all times for protection and to use it if necessary when accompanying him. Thomas knows that the firearm is unlicensed and belongs to Mr Mokoena. On several occasions, Thomas carries the firearm in his jacket and, during an altercation, fires it to intimidate others. Thomas is later arrested and charged with the unlawful possession of a firearm in terms of the Firearms Control Act 60 of 2000. Which of the following best reflects the correct legal position in South African law?
0%
100%
0%
0%
View this question

Обмеження, яке гарантує унікальність значень стовпця, але (на відміну від первинного ключа) допускає NULL, задається ключовим словом Відповідь Питання 4.

View this question

Для отримання найменшого значення стовпця в групі використовується агрегатна функція Відповідь Питання 4.

View this question

Команда DML, яка використовується для зміни значень у вже існуючих рядках таблиці, має назву Відповідь Питання 4.

View this question

Таблиця payments (id, контракт, дата оплати, сума оплати)

idcontract_idpay_dateamount
11012024-02-1030000
21012024-03-1010000
31012024-04-1020000
41022024-03-2030000
51032024-03-018000
61032024-04-018000
71042024-05-156000
81052024-03-0115000
91052024-04-0110000
101052024-05-0120000
111062024-06-0136000
121072024-04-1212000
131072024-05-1224000
141082024-07-0110000
151092024-07-154000

Скільки платежів і на яку загальну суму надійшло за кожним контрактом починаючи з 2024-04-01?

Цікавлять лише контракти, за якими за цей період сплачено щонайменше 20000.

Результат: contract_id, payments_count, total_paid

Спершу мають іти контракти з більшою кількістю платежів, а за однакової кількості — з більшою сумою.

View this question

Агрегатна функція, яка обчислює середнє арифметичне значень стовпця, називається Відповідь Питання 4.

View this question

Таблиця courses (id, викладач, тип курсу, дата початку, кількість місць, статус, дата іспиту (NULL — не призначено), години консультацій (NULL — не передбачено))

idteacher_idtypestart_datecapacitystatusexam_dateconsult_hours
3011обов'язковий2024-09-0260відкритийNULLNULL
3021вибірковий2024-09-0925закритийNULLNULL
3032обов'язковий2024-09-0240відкритий2024-12-2010
3042факультатив2024-09-1620скасований2024-12-18NULL
3053вибірковий2024-09-0930відкритийNULLNULL
3063факультатив2024-10-0115закритий2024-12-23NULL
3074обов'язковий2024-09-1650скасованийNULLNULL
3084вибірковий2024-09-2335відкритий2024-12-196
3091факультатив2024-10-0720відкритийNULLNULL

Скільки курсів із призначеною датою іспиту веде кожен викладач і скільки годин консультацій за ними передбачено загалом?

Скасовані курси не враховуються.

Результат: teacher_id, courses_count, total_consult_hours

View this question

Для явного винесення невизначених значень на початок списку сортування ORDER BY використовується директива NULLS Відповідь Питання 3.

View this question

У реляційній теорії математичним аналогом рядка таблиці є Відповідь Питання 3, а аналогом стовпця — атрибут.

View this question