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:SQL: I have this, but there's an error. . 2. Create a

table named employees. Requirements: Each employee has: id, name, salary, and start.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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!