In: Computer Science
Once you have accomplished that action, paste the script into your assignment submission document for this part of your assignment.
Dear Student,
You will need to create the necessary and instructed databbase and tables as per the given question. You can copy paste the commands of the queries that are attached in the code snippet below. Do note that I have used the following terms:
constructco_employee - table that holds the employee data
attributes of the table: e_no = employee number (primary key), fname = first name, lname = last name, j_code = job code, hire_date = date of hire.
constructco_assignment - table that holds the data of the assigned projects to employees
attributes of the table: emp_no = employee number (foreign key), proj_no = project number, job = assigned job.
SELECT LNAME, FNAME, HIRE_DATE FROM constructco_employee;
SELECT LNAME, FNAME, HIRE_DATE
FROM constructco_employee
WHERE HIRE_DATE > 2000-01-01;
SELECT LNAME, PROJ_NO, JOB
FROM constructco_employee, constructco_assignment
WHERE constructco_employee.E_NO = constructco_assignment.EMP_NO;
Note: make necessary changes in the names of the table and attributes. Table names and attributes are CASE SENSITIVE!