SQLQUESTIONS Telegram 1460
👀 Задачка по нашей базе данных, которая находится в шапке канала. Код генерации базы данных и INSERT данных по ссылке ТУТ.

ВОПРОС:
Какой запрос вернёт клиентов, которые не сделали ни одного заказа?

1. SELECT * FROM order_table WHERE customer_id IS NULL;

2. SELECT * FROM customer EXCEPT SELECT * FROM order_table;

3. SELECT * FROM customer c LEFT JOIN order_table o ON c.customer_id = o.customer_id WHERE o.order_id IS NULL;

4. SELECT * FROM customer WHERE order_id IS NULL;


Правильный ответ 👇

SELECT * FROM customer c LEFT JOIN order_table o ON c.customer_id = o.customer_id WHERE o.order_id IS NULL;

Если вам понравился вопрос - зашарьте его друзьям 👉 SQLQuestions
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥14



tgoop.com/sqlquestions/1460
Create:
Last Update:

👀 Задачка по нашей базе данных, которая находится в шапке канала. Код генерации базы данных и INSERT данных по ссылке ТУТ.

ВОПРОС:
Какой запрос вернёт клиентов, которые не сделали ни одного заказа?

1. SELECT * FROM order_table WHERE customer_id IS NULL;

2. SELECT * FROM customer EXCEPT SELECT * FROM order_table;

3. SELECT * FROM customer c LEFT JOIN order_table o ON c.customer_id = o.customer_id WHERE o.order_id IS NULL;

4. SELECT * FROM customer WHERE order_id IS NULL;


Правильный ответ 👇

SELECT * FROM customer c LEFT JOIN order_table o ON c.customer_id = o.customer_id WHERE o.order_id IS NULL;

Если вам понравился вопрос - зашарьте его друзьям 👉 SQLQuestions

BY SQL задачи


Share with your friend now:
tgoop.com/sqlquestions/1460

View MORE
Open in Telegram


Telegram News

Date: |

ZDNET RECOMMENDS More>> Add up to 50 administrators On Tuesday, some local media outlets included Sing Tao Daily cited sources as saying the Hong Kong government was considering restricting access to Telegram. Privacy Commissioner for Personal Data Ada Chung told to the Legislative Council on Monday that government officials, police and lawmakers remain the targets of “doxxing” despite a privacy law amendment last year that criminalised the malicious disclosure of personal information. The court said the defendant had also incited people to commit public nuisance, with messages calling on them to take part in rallies and demonstrations including at Hong Kong International Airport, to block roads and to paralyse the public transportation system. Various forms of protest promoted on the messaging platform included general strikes, lunchtime protests and silent sit-ins.
from us


Telegram SQL задачи
FROM American