SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE IF NOT EXISTS office ( officer_id INT , office_name VARCHAR(255), boss_id INT ); -- Вставка данных в таблицу toy INSERT INTO office (officer_id, office_name, boss_id) VALUES (1000, 'SMITH', 1400), (1100, 'ALLEN', NULL), (1200, 'WARD', 1398), (1250, 'JONES', 1380), (1259, 'MARTIN', 1250), (1307, 'BLAKE', NULL), (1380, 'CLARK', 1307), (1398, 'SCOTT', 1100), (1400, 'KING', NULL); SELECT office.officer_id, office.office_name, office.boss_id FROM office WHERE boss_id IS NULL

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear