EMPLOYEES (EMP) Key Type OptionalityColumn Name pk*Employee_id oFirst_name *Last_name *Email oPhone_number *Hire_date Fk1*Job_id oSalary oCommission_pct.

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

ER Modeling Case Studies
SQL Review Sections 1 - SQL and other basic statements.
Data Warehousing - 2 ISYS 650. Data Warehouse Design - Star Schema - Dimension tables – contain descriptions about the subjects of the business such as.
10 Copyright © Oracle Corporation, All rights reserved. Including Constraints.
8 Copyright © Oracle Corporation, All rights reserved. Manipulating Data.
Managing Schema Objects
Database Design Sections 16 & 17 – Columns, Characters, Rows, Concatenations, DISTINCT, DESCRIBE, Logical Operators, Order of Operations, Sorting 9/26/2011.
Data Model Examples USER SPECIFICATIONS.
Database I. Practice SQL.
Seminar #1 – Refreshing databases concepts and SQL CM036: Advanced Databases1 Seminar 1: Revisiting Databases and SQL Purpose To refresh basic concepts.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Microsoft Access Introduction. What Is a Database Suppose you are a school administrator. You need to have information about –Students –Faculty –Staff.
Sections 3 – Joins & Hierarchical Queries
Database Programming Sections 6 –Subqueries, Single Row Subqueries, Multiple-column subqueries, Multiple-row Subqueries, Correlated Subqueries 11/2/10,
10 Copyright © 2009, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Lecture 2: Using DDL Statements to Create and Manage Tables & Indexes
Domain Modeling Part1: Entity Relationship Diagram Chapter 4 pp part 1 1.
Emall id name description owner address1 address2 city state zip country created updated storefront id name description owner address1 address2 city state.
SELECT e.NationalIDNumber, p.FirstName,p.LastName, City FROM HumanResources.Employee e INNER JOIN Person.Person p on p.BusinessEntityID = e.BusinessEntityID.
10 Copyright © Oracle Corporation, All rights reserved. Including Constraints.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
Introduction to SQL PART Ⅰ 第一讲 Writing Basic SQL SELECT Statements.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
Manipulating Large Data Sets. Lesson Agenda ◦ Manipulating data using subqueries ◦ Specifying explicit default values in the INSERT and UPDATE statements.
4 Copyright © 2007, Oracle. All rights reserved. Manipulating Large Data Sets.
10 Copyright © Oracle Corporation, All rights reserved. Including Constraints.
INCLUDING CONSTRAINTS lecture5. Outlines  What are Constraints ?  Constraint Guidelines  Defining Constraint  NOT NULL constraint  Unique constraint.
6 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
8 Copyright © 2007, Oracle. All rights reserved. Managing Schema Objects.
Database Design Sections 17 & 18 – Concatenations, DISTINCT, DESCRIBE, Logical Operators, Order of Operations, Sorting.
Database Programming Sections 4 – Joins. Marge Hohly2 Overview  Oracle Proprietary Joins (8i and prior): Cartesian Product Equijoin Non-equijoin Outer.
Oracle 11g DATABASE DEVELOPMENT LAB2. Chapter- 2  These commands, which could be issued from SQL*Plus or SQL Developer,  will make it possible to log.
Presented By: Drew Pfister Chetan Jadhav Sudeep Niraula.
INSERT Statement. 2 home back first prev next last What Will I Learn? Give examples of why it is important to be able to alter the data in a database.
Texas Bicycle Sports Presented by : Muhammad Rizvi Terry Lee Madhuri Yelamanchili.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Database Design Sections 13 & 16 - Introduction to HTML DB SQL editor, Introduction to SQL statements.
Copyright © 2004, Oracle. All rights reserved. Lecture 2: Using DDL Statements to Create and Manage Tables & Indexes ORACLE.
DML Part 1 Yogiek Indra Kurniawan. All Files Can Be Downloaded at : Menu : “Perkuliahan”
DDL and Views. Database Objects Logically represents subsets of data from one or more tables View Generates numeric valuesSequence Basic unit of storage;
Including Constraints. What Are Constraints? Constraints enforce rules at the table level. You can use constraints to do the following: – Enforce rules.
I Copyright © 2007, Oracle. All rights reserved. Introduction.
Join CSED421 Database Systems Lab. Joining Tables Use a join to query data from more than one table. SELECTtable1.column, table2.column FROMtable1, table2.
I Copyright © 2007, Oracle. All rights reserved. Introduction.
Database Programming Sections 6 –Subqueries, Single Row Subqueries, Multiple-row Subqueries, Correlated Subqueries.
Database Design Sections 17 & 18 – Columns, Characters, Rows, Concatenations, DISTINCT, DESCRIBE, Logical Operators, Order of Operations, Sorting.
4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Using Data Model Editor to Create Data Models Based on a SQL Query Data Set.
I Copyright © 2009, Oracle. All rights reserved. Introduction.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Introduction.
Introduction.
Entity Relationship Diagrams ERDs
TRAINING MODULE 1: FOUNDATION
Sections 1 - SQL and other basic statements
Sections 1 - SQL and other basic statements
Introduction.
Schema Template Employee Office EmployeeOffice EmployeeID OfficeID
TRAINING MODULE 1: FOUNDATION
First and last name D E P T O F L First and last name A B R Y M
Introduction.
Using CASE Value expression
ER Diagram Master How to use this template
Additional Practices Table Descriptions and Data.
B Table Descriptions and Data.
Assignment: SQL #2 Putting Information into a Database
Paper Title in One or Two Lines
Presentation transcript:

EMPLOYEES (EMP) Key Type OptionalityColumn Name pk*Employee_id oFirst_name *Last_name * oPhone_number *Hire_date Fk1*Job_id oSalary oCommission_pct Fk2oManager_id Fk3oDepartment_id DEPARTMENTS (DEPT) Key Type OptionalityColumn Name pk*Department_id *Department_name Fk1oManager_id Fk2oLocation_id COUNTRIES (COU) Key Type OptionalityColumn Name pk*Country_id oCountry_name fkoRegion_id LOCATIONS (LOC) Key Type OptionalityColumn Name pk*Location_id oStreet_address oPostal_code *City oState_province Fk1oCountry_id JOB_HISTORY (JHIST) Key Type OptionalityColumn Name pk*Employee_id *Start_date *End_date *Job_id FkoDepartment_id JOBS (JOB) Key Type OptionalityColumn Name pk*Job_id *Job_title oMin_salary oMax_salary JOB_GRADES (JGS) Key Type OptionalityColumn Name oGrade_level oLowest_sal oHighest_sal REGIONS (REG) Key Type OptionalityColumn Name pk*Region_id oRegion_name Human Resources COUNTR_REG_FK DEPT_LOC_FK DEPT_MGR_FK EMP_MANAGER_FK EMP_DEPT_FK EMP_JOB_FK JHIST_JOB_FK JHIST_EMP_FK JHIST_DEPT_FK LOC_C_ID_FK

D_CDS (CDS) Key Type OptionalityColumn Name pk*Cd_number *Title *Producer *Year D_JOB_ASSIGNMENTS (JAT) Key Type OptionalityColumn Name Pk,fk1*Partner_id Pk,fk2*Event_id *Job_date oStatus D_CLIENTS (CLT) Key Type OptionalityColumn Name pk*Client_number *First_name *Last_name *Phone o D_VENUES (VNE) Key Type OptionalityColumn Name Pk*Id *Loc_Type *Address *Rental_fee oComment D_THEMES (TME) Key Type OptionalityColumn Name PkCode Description D_PLAY_LIST_ITEMS (PLM) Key Type Optionality Column Name Pk,fk1*Event_id Pk,fk2*Song_id oComments D_EVENTS (EVE) Key Type OptionalityColumn Name pk*Id *Name *Event_date oDescription *Cost Fk1*Venue_id Fk2*Package_code Fk3*Theme_code Fk4*Client_number D_PARTNERS (ptr) Key Type OptionalityColumn Name pk*id *First_name *Last_name oExpertise oSpeciality oAuth_expense_amt oManager_id *Partner_type D_TRACK_LISTINGS (TLG) Key Type Optionality Column Name Pk,fk1*Song_id Pk,fk2*CD_number *Track D_TYPES (TPE) Key Type OptionalityColumn Name Pk*Code *Description D_PACKAGES (PKE) Key Type OptionalityColumn Name Pk*Code *Low_range *High_range D_SONGS (SNG) Key Type OptionalityColumn Name Pk*Id *Title oDuration oArtist fk*Type_code DJ’s on Demand d_eve_venue_id_fk d_eve_package_code_fk d_eve_theme_code_fk d_eve_client_number_fk d_jat_partner_id_fk d_jat_event_id_fk d_plm_event_id_fk d_plm_song_id_fk d_tlg_song_id_fk d_tlg_cd_number_fk d_sng_type_code_fk

F_CUSTOMERS (CSR) Key Type OptionalityColumn Name pk*Id *First_name *Last_name *Address *City *State *Zip *Phone_number F_FOOD_ITEMS (FIM) Key Type OptionalityColumn Name Pk*Food_item_number *Description *Price Fk1oRegular_code Fk2oPromo_code F_ORDERS (ODR) Key Type OptionalityColumn Name Pk*Order_number *Order_date oOrder_total Fk1*Cust_id Fk2*Staff_id F_PROMOTIONAL_MENUS (PMU) Key Type OptionalityColumn Name Pk*Code *Name *Start_date oEnd_date oGive_away F_SHIFTS (SFT) Key Type OptionalityColumn Name Pk*Code *Description F_ORDER_LINES (OLE) Key Type OptionalityColumn Name Pk,fk1*Order_number Pk,fk2*Food_Item_number *Qunatity F_STAFFS (STF) Key Type OptionalityColumn Name Pk*Id *First_name *Last_name *Birthdate *Salary oOvertime_rate oTraining *Staff_type Fk1oManager_id oManager_budget oManager_target F_REGULAR_MENUS (RMU) Key Type OptionalityColumn Name Pk*Code *Type *Hours_served F_SHIFT_ASSIGNMENTS (SAT) Key Type OptionalityColumn Name Pk,fk1*Code Pk,fk2*Id *Shift_assgn_date Global Fast Food f_odr_staff_id_fk f_sat_id_fk f_odr_cust_id_fk f_ole_order_number_fk f_ole_food_item_number_fk f_fim_promo_code_fk f_fim_regular_code_fk f_sat_code_fk f_stf_manager_id_fk