1. The following questions will be based on the Employee Table as below: EmpName (b) (c)...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. The following questions will be based on the Employee Table as below: EmpName (b) (c) Write SQL commands to: (a) Create table EMPLOYEE. (d) EmpNo 100 (e) Ali Hassan 101 Mohd Anwar Ali 102 Aminah Hassan 103 Rahayu Rahim 104 Jamaluddin Johari 105 Sarimah Ibrahim 106 Mohd Ali Hashim Date Birth 1/2/1971 1/2/1972 8/4/1973 9/6/1975 21/7/1977 11/2/1970 19/6/1970 Employee Table Salary DeptCode 1200 HRM 2500 HRM 2000 HRM 1000 ACC 3000 MKT 1800 ACC 3500 MKT Remove table EMPLOYEE from the database. (4) Insert TWO new records in EMPLOYEE table. List the employees sorted by department and in each department sort the list in descending order by salary. Create the view to see the detail of employee who works in HRM department. (4) (4) (4) (4) (Total : 20) 1. The following questions will be based on the Employee Table as below: EmpName (b) (c) Write SQL commands to: (a) Create table EMPLOYEE. (d) EmpNo 100 (e) Ali Hassan 101 Mohd Anwar Ali 102 Aminah Hassan 103 Rahayu Rahim 104 Jamaluddin Johari 105 Sarimah Ibrahim 106 Mohd Ali Hashim Date Birth 1/2/1971 1/2/1972 8/4/1973 9/6/1975 21/7/1977 11/2/1970 19/6/1970 Employee Table Salary DeptCode 1200 HRM 2500 HRM 2000 HRM 1000 ACC 3000 MKT 1800 ACC 3500 MKT Remove table EMPLOYEE from the database. (4) Insert TWO new records in EMPLOYEE table. List the employees sorted by department and in each department sort the list in descending order by salary. Create the view to see the detail of employee who works in HRM department. (4) (4) (4) (4) (Total : 20)
Expert Answer:
Answer rating: 100% (QA)
Based on the image youve shared you would like to know how to write SQL commands for certain tasks r... View the full answer
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The shift toward more strategic, higher-value IT offshoring is a significant next step in the evolution of the relationship between multinationals and their suppliers. In their quest for...
-
You have obtained the following share prices from Yahoo Finance. Company 1 is listed on the London Stock Exchange. You want to estimate the beta value for Company 1. You run a regression of the share...
-
The following information is taken from the accounting records of four different companies. Provide the missing amounts. Assume there are no indirect materials used in the company's finished product....
-
What selling strategy should a hotel implement when the booking pace is under the historical average?
-
As a result of highly profitable operations over a number of years. Eastern Manufacturing Corporation has accumulated a substantial investment portfolio. In auditing the financial statements for the...
-
Zelmer Company manufactures tablecloths. Sales have grown rapidly over the past 2 years. As a result, the president has installed a budgetary control system for 2012. The following data were used in...
-
Bartosiewicz Clinic uses client-visits as its measure of activity. During January, the clinic budgeted for 3,900 client-visits, but its actual level of activity was 3,880 client-visits. The clinic...
-
List the advantages and disadvantages of the three different types of business organizations.
-
Respond that the following statements are TRUE or FALSE: 1) A cellular phone manufacturer is more likely to use a process costing system, rather than job order costing. 2) Both job order costing and...
-
How does the use of smartphones and other devices make delivery of HRIS functionality more effective? More complicated?
-
Justify the need for an HRIS.
-
How does an N-tier simplify IT departments task of maintaining client software?
-
How does technology help deliver transactional, traditional, and transformational HR activities more efficiently and effectively?
-
How does network bandwidth impact a two-tier (client-server) architecture?
-
Suppose that a South African Broadcasting Corporation (SABC) official wants to conduct a survey in Limpopo to estimate, with 95% confidence, a support for the premier's strategies on economy within...
-
What is the back work ratio? What are typical back work ratio values for gas-turbine engines?
-
The beta of a stock is found by running a regression with the monthly return on a market index as the explanatory variable and the monthly return on the stock as the dependent variable. The beta of...
-
During the next two months an automobile manufacturer must meet (on time) the following demands for trucks and cars: month 1, 400 trucks and 800 cars; month 2, 300 trucks and 300 cars. During each...
-
In the Walton Bookstore example with a discrete demand distribution, explain why an order quantity other than one of the possible demands cannot maximize the expected profit.
-
An ABC News story reported the number of calories in hamburgers from six fast-food restaurants: McDonalds, Burger King, Wendys, Hardees, Sonic, and Dairy Queen. The results are a. Find the mean...
-
According to the National Vital Statistics Reports, the mean life expectancy for United States was 78.7 years and the median was 83.5. If a histogram were constructed for the lifespans of all people...
-
In the 2016 Olympic Games, Michael Phelps won five gold medals in swimming. Following are the events he won, along with his margin of victory, in seconds. a. What was the mean margin of victory? b....
Study smarter with the SolutionInn App