- β Create tables and define the structure of a database.
- βοΈ Insert records into a table.
- π Modify data in a table through updates.
- π» Practice basic SQL operations that are fundamental to database management.
- π» A computer with internet access.
- βοΈ A code editor (e.g., Visual Studio Code).
- π₯οΈ MySQL Workbench or another SQL database environment.
π Write all your SQL queries in the answers.sql file.
βοΈ Answer each question concisely and ensure your queries are clear and correct.
π£οΈ Structure your responses clearly, and use comments if necessary to explain your approach.
Write an SQL statement to create a table named student with the following columns:
- id (an integer and the primary key)
- fullName (a text field with a maximum of 100 characters)
- age (an integer)
Write an SQL statement to insert at least 3 records into the student table.
Write an SQL statement to update the age of the student with ID 2 to 20 in the student table.
Good luck π