Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tutorial 7 Employee Job Job code Job name 500 Manager 501 Programmer 502 Data Scientist Anne EMP_NUM EMP_LNAME EMP_FNAME EMP_INITIAL EMP_HREDATE JOB_CODE 01 News John

image text in transcribed
Tutorial 7 Employee Job Job code Job name 500 Manager 501 Programmer 502 Data Scientist Anne EMP_NUM EMP_LNAME EMP_FNAME EMP_INITIAL EMP_HREDATE JOB_CODE 01 News John G 08-Nov-00 502 102 Senior David H 12-Jul-89 501 103 Arbough June E 01-Dec-96 500 104 Romoras K 15-Nov-87 501 105 Johnson Alice K 01-Feb-93 502 106 Smithfield William 22-Jun-04 500 107 Alonzo Maria D 10-Oct-93 500 108 Washington Ralph 22-Aug-91 501 109 Smith Larry w 18-Jul-97 501 Write SQL code to (1) Create the above table (ii) Enter the data into the table. ( for the data refer the above table). (iii) Change the job code to 501 for the person whose employee number is 107. (iv) Using a single command sequence write the SQL code to change the project number to 25 for all employees whose job code is 502 or higher (v) Delete the row for the person named William Smithfield, who was hired on June 22, 2004 and whose job code classification is 500 (vi) Display all employee names and their hired date ordered by employee's first name. (vii) Display all employee names, job code and their hired date group by employee's job code. Page 1 / 1 +

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago