Create a simple HR database based on below model. You should have 8 tables in total...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a simple HR database based on below model. You should have 8 tables in total in your Database. The table columns are given on the left side and their respective data type is given on the right. regions REGION_ID REGION NAME departments DEPARTMENT ID NUMBER DEPARTMENT NAME VARCHAR2(30) MANAGER ID LOCATION ID job_history NUMBER VARCHAR2(25) EMPLOYEE ID START_DATE END DATE JOB ID DEPARTMENT ID NUMBER NUMBER NUMBER DATE DATE VARCHAR2(10) NUMBER 81 countries COUNTRY_ID CHAR(2) COUNTRY NAME VARCHAR2(40) REGION_ID NUMBER employees EMPLOYEE ID FIRST NAME LAST NAME EMAIL PHONE NUMBER HIRE DATE JOB ID SALARY COMMISSION PCT NUMBER MANAGER ID NUMBER VARCHAR2(20) VARCHAR2(25) VARCHAR2(25) VARCHAR2(20) DATE VARCHAR2(10) NUMBER NUMBER DEPARTMENT_ID NUMBER 81 locations LOCATION ID NUMBER STREET ADDRESS VARCHAR2(25) POSTAL CODE VARCHAR2(12) VARCHAR2(30) VARCHAR2(12) CHAR(2) CITY STATE PROVINCE COUNTRY_ID jobs JOB ID VARCHAR2(10) JOB_TITLE VARCHAR2(35) MIN SALARY NUMBER MAX SALARY NUMBER job_grades GRADE LEVEL VARCHAR2(2) LOWEST SAL HUMBER HIGHEST SAL HUMBER Question 2 (5 mark) Create a simple Movie database based on below model. You should have 9 tables in total in your Database. The table columns are given on the left side and their respective data type is given on the right. actor act_id act_fname act_Iname act_gender director dir_id dir_fname dir Iname movie_direction dir_id mov_id integer char (20) char (20) char (1) integer char (20) char (20) integer integer movie cast act_id mov_id role movie mov id mov_title mov year integer char (50) integer integer char (50) date mov_rel_country| char (5) mov_time mov_lang mov_dt_rel reviewer integer integer char (30) rev_id rev_name integer char (30) 18 18 genres gen_id gen_title movie_genres mov_id gen_id rating mov_id rev_id rev_stars integer char (20) integer integer integer integer integer num_o_ratings integer Create a simple HR database based on below model. You should have 8 tables in total in your Database. The table columns are given on the left side and their respective data type is given on the right. regions REGION_ID REGION NAME departments DEPARTMENT ID NUMBER DEPARTMENT NAME VARCHAR2(30) MANAGER ID LOCATION ID job_history NUMBER VARCHAR2(25) EMPLOYEE ID START_DATE END DATE JOB ID DEPARTMENT ID NUMBER NUMBER NUMBER DATE DATE VARCHAR2(10) NUMBER 81 countries COUNTRY_ID CHAR(2) COUNTRY NAME VARCHAR2(40) REGION_ID NUMBER employees EMPLOYEE ID FIRST NAME LAST NAME EMAIL PHONE NUMBER HIRE DATE JOB ID SALARY COMMISSION PCT NUMBER MANAGER ID NUMBER VARCHAR2(20) VARCHAR2(25) VARCHAR2(25) VARCHAR2(20) DATE VARCHAR2(10) NUMBER NUMBER DEPARTMENT_ID NUMBER 81 locations LOCATION ID NUMBER STREET ADDRESS VARCHAR2(25) POSTAL CODE VARCHAR2(12) VARCHAR2(30) VARCHAR2(12) CHAR(2) CITY STATE PROVINCE COUNTRY_ID jobs JOB ID VARCHAR2(10) JOB_TITLE VARCHAR2(35) MIN SALARY NUMBER MAX SALARY NUMBER job_grades GRADE LEVEL VARCHAR2(2) LOWEST SAL HUMBER HIGHEST SAL HUMBER Question 2 (5 mark) Create a simple Movie database based on below model. You should have 9 tables in total in your Database. The table columns are given on the left side and their respective data type is given on the right. actor act_id act_fname act_Iname act_gender director dir_id dir_fname dir Iname movie_direction dir_id mov_id integer char (20) char (20) char (1) integer char (20) char (20) integer integer movie cast act_id mov_id role movie mov id mov_title mov year integer char (50) integer integer char (50) date mov_rel_country| char (5) mov_time mov_lang mov_dt_rel reviewer integer integer char (30) rev_id rev_name integer char (30) 18 18 genres gen_id gen_title movie_genres mov_id gen_id rating mov_id rev_id rev_stars integer char (20) integer integer integer integer integer num_o_ratings integer
Expert Answer:
Answer rating: 100% (QA)
1 Based on the provided model we can create a simple HR database with 8 tables using SQL Below is the SQL script for creating these tables CREATE TABLE regions regionid NUMBER PRIMARY KEY regionname V... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these databases questions
-
Five years after you graduate from MSU, you receive a promotion that increases your salary to $120,000 per year. You have decided to buy a house, so you go to a bank that gives you the following...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
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...
-
Let f: RR be a differentiable function such that its derivative f' is continuous and f(n) = 6. If F: [0, 1 by F(x) = f(t)dt, , and if ] R is defined (f'(x)+F(x)) cosx dx = 2 0 then the value of f(0)...
-
Consider the two-player game described in Figure. a. Draw the complete game tree, using the following conventions: Write each state as (SA, SB) where SA and 5B denote the token locations. Put each...
-
Smart-phones are advanced mobile phones with Internet, photo, and music and video capability (The Pew Research Center, Internet & American Life Project, 2011). The following survey results show...
-
Recall the facts in Leonard v. Pepsico Had this been a contract, would it have been subject to the Statute of Frauds?
-
Fabulous Motor Company makes electric cars and has two products, the Simplegreen and the Fabulousgreen. To produce the Simplegreen, Fabulous Motor employed assets of $ 24,500,000 at the beginning of...
-
(a) (b) In a liberalised economy, market forces of demand and supply dictate the interest rates and exchange rates in the market. With reference to the above statement, analyse two justifications why...
-
There is a database that contains a website's traffic data over a period of 30 days. The first table contains users' information including the user type (user, crawler, admin). The second table...
-
If fixed costs are $250,000, the unit selling price is $125, and the unit variable costs are $73, what is the break-even sales (units)? a. 3,425 units b. 2,000 units c. 2,381 units d. 4,808 units
-
Examine some adverse repercussions likely to arise from perceptual errors or misperceptions.
-
Suppose your firm receives a $4.1 million order on the last day of the year. You fill the order with $2.9 million worth of inventory. The customer picks up the entire order the same day and pays $1.5...
-
What significance do you attach to the brand image of a product in the context of perceptual interpretation?
-
Define the following terms: (a) convergent validity; (b) central tendency; (c) construct validity; (d) feedback interview; and (e) adverse impact.
-
Find online the annual 10-K report for Costco Wholesale Corporation (COST) for fiscal year 2015 (filed in October 2015). Answer the following questions from their income statement: a. What were...
-
The Nurse Practitioner prescribes the client Prednisone 30mg every day for 14 days, and schedules a follow up visit with the client in 2 weeks. 3) What teaching should the nurse provide the client...
-
Drainee purchases direct materials each month. Its payment history shows that 65% is paid in the month of purchase with the remaining balance paid the month after purchase. Prepare a cash payment...
-
Neil is a decision maker for Pepes Atlantic Sausage Company. Because there are several suppliers of ingredients and their prices fluctuate, he has come up with several different formulations for the...
-
Your systems analysis team is close to completing a system for Meecham Feeds. Roger is quite confident that the programs that he has written for Meechams inventory system will perform as necessary,...
-
Go to the Palm gear Web site at www.palmgear.com. Explore the Web site and write up a dozen brief user stories for improving the Web site.
-
When you voice the vowel sound in "hat," you narrow the opening where your throat opens into the cavity of your mouth so that your vocal tract appears as two connected tubes. The first is in your...
-
The first and second formants when you make an "ee" vowel sound are approximately \(270 \mathrm{~Hz}\) and \(2300 \mathrm{~Hz}\). The speed of \(\mathbb{N} T\) sound in your vocal tract is...
-
Figure P16.40 shows the circular wave fronts emitted by two sources. Make a table with rows labeled P, Q, and R and columns labeled \(r_{1}, r_{2}, \Delta r\), and \(\mathrm{C} / \mathrm{D}\). Fill...
Study smarter with the SolutionInn App