logo

Crowdly

Browser

Add to Chrome

Questions Bank (1608079 total)

Thabo asks his wife, Sophy, to keep a sealed package in their home while he is away on a business trip. Sophy is aware that the package contains illegal drugs but agrees to store it in a locked cupboard. She does not intend to use or sell the drugs and considers herself merely to be assisting her husband. Police later searched the house, discovered the drugs, and charged Sophy with unlawful possession under the Drugs and Drug Trafficking Act 140 of 1992. Is Sophy guilty of anything?
0%
100%
0%
0%
View this question
Mr Khumalo is a municipal official responsible for issuing trading licences. Ms Naidoo applies for a licence and fully complies with all legal requirements, making her entitled to its approval. Mr Khumalo informs her that, unless she pays him R20 000, he will deliberately delay processing her application for several months, which would cause her significant financial loss. Fearing the negative consequences of such a delay, Ms Naidoo pays the amount. Could Mr Khumalo’s actions be construed as unlawful and if so, for what?
0%
0%
100%
0%
View this question
X is driving a huge truck down the road when he sees his enemy, Y, walking next to the road. When X sees Y, X deliberately swerves towards Y in an attempt to run Y over. Luckily for Y, he jumps out of harm’s way just in time and the truck misses him.
0%
100%
0%
0%
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

Скільки курсів і з якою загальною кількістю місць пропонується кожного типу, якщо враховувати лише курси, що починаються пізніше 2024-09-02?

До результату мають потрапити тільки ті типи, де сумарно більше 50 місць.

Результат: type, courses_count, total_capacity

Першими виводяться типи з більшою кількістю курсів; за однакової кількості — з більшою сумарною кількістю місць.

View this question

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

idteam_idtechnologystart_datebudgetstatusend_datebonus
2011Java2024-01-1580000активнийNULLNULL
2021Python2024-02-1050000завершенийNULLNULL
2032Java2024-03-0140000активнийNULLNULL
2042JavaScript2024-03-2030000призупиненийNULLNULL
2053Python2024-02-0570000активний2024-12-205000
2063JavaScript2024-04-1045000завершений2024-09-30NULL
2074Python2024-05-0160000призупиненийNULLNULL
2084Go2024-06-1555000активнийNULLNULL
2091JavaScript2024-06-2025000активний2024-11-15NULL

Який найменший і найбільший бюджет мають незавершені проєкти кожної команди, для яких ще не визначено дату завершення?

Виведіть лише ті команди, у яких найменший бюджет таких проєктів становить щонайменше 40000.

Результат: team_id, min_budget, max_budget

Вище мають бути команди з більшим найбільшим бюджетом.

View this question
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