Company Specific Questions
Company Specific Questions
1. Create a table named `employees` with columns: `id` (int), `name` (varchar),
`salary` (decimal), and `joining_date` (date).
2. Alter the `employees` table to add a new column `email` of type varchar(100).
6. Modify the `salary` column in the `employees` table to change its type to float.
11. Insert a new record into the `employees` table with values (1, 'John Doe', 45000,
'2022-01-10').
18. Update the `project_name` of project with id 101 to 'AI Automation System'.
19. Insert a new employee and assign them to a department using the foreign key
`dept_id`.
20. Delete all records from the `employees` table without deleting the table itself.