Question: SQL: I have this, but there's an error. . 2. Create a table named employees. Requirements: Each employee has: id, name, salary, and start. Every
SQL:
I have this, but there's an error.
. 2. Create a table named employees. Requirements: Each employee has: id, name, salary, and start. Every employee must have an id (rows with empty id should not be allowed). The id follows the format ABC123 6 characters long). name should fit the employee's full name. Salaries in this company range from 25,000.00 to 199,999.99. Use a data type that allows arithmetic operations to be performed, such as add 1,000 to salary. start is the employee's start date. It must only allow values in this format: yyyy-mm-dd. . . . mysql> CREATE TABLE employees ( -> id CHAR(6) NOT NULL PRIMARY KEY, -> name VARCHAR(50), -> salary DECIMAL(8,2), -> start DATE, -> CHECK (salary > 25000 and salary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
