Add One Student
easyQuestion 74Add a new student with a single INSERT that names its columns. Leave id out so SQLite assigns 31, and supply first_name 'Nora', last_name 'Hassan', email 'nora.hassan@student.example', major_department_id 2 (Mathematics), enrollment_year 2026, gpa NULL, city 'Ottawa', birth_date '2007-01-15', status 'active' and scholarship_amount NULL. Afterwards students has 31 rows and none of the original 30 has changed.
Expected result
students after your statements: 31 rows +----+------------+-----------+--------------------------------+---------------------+-----------------+------+-------------+------------+-----------+--------------------+ | id | first_name | last_name | email | major_department_id | enrollment_year | gpa | city | birth_date | status | scholarship_amount | +----+------------+-----------+--------------------------------+---------------------+-----------------+------+-------------+------------+-----------+--------------------+ | 1 | Ava | Patel | ava.patel@student.example | 1 | 2023 | 3.8 | Toronto | 2005-03-14 | active | 2500 | | 2 | Liam | Nguyen | liam.nguyen@student.example | 1 | 2022 | 3.45 | Mississauga | 2004-11-02 | active | NULL | | 3 | Sophia | Rossi | sophia.rossi@student.example | 2 | 2023 | 3.92 | Ottawa | 2005-07-21 | active | 5000 | | 4 | Noah | Kim | noah.kim@student.example | NULL | 2024 | 2.95 | Toronto | 2006-01-09 | active | NULL | | 5 | Isabella | Okoro | isabella.okoro@student.example | 4 | 2021 | 3.1 | Hamilton | 2003-05-30 | graduated | 0 | +----+------------+-----------+--------------------------------+---------------------+-----------------+------+-------------+------------+-----------+--------------------+ (showing 5 of 31 rows)
Hints3 available
Sign in to use hintsTopics
INSERT, UPDATE & DELETE
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sel, ins, desc)
Results
Run your SQL to see every statement's output here, then how it compares with the expected answer.
Not sure what is in a table? SHOW TABLES lists them and DESCRIBE students shows the columns, or open the database browser under the question.