Assignment 2. Database Implementation and Queries

Size: px
Start display at page:

Download "Assignment 2. Database Implementation and Queries"

Transcription

1 Faculty of Science ITECH006/5006 Database Management Systems Assignment 2 Database Implementation and Queries Due Date: Friday Week (See Course Description for further date and time). Objectives: To analyse and comprehend a provided ER diagram and Database Schema To implement a database based on the provided ER diagram and Database Schema To write required SQL statements to query the database Project Specification The management team of BigM now require a partial implementation of the design made in Assignment. In order to keep consistency between the assignments, database specification containing the ER diagram and the schema is provided in this document. You should create your database according to this documentation. Please make sure that your implementation is consistent with this design. This means that your table names (upper case), field names (mixed case, no spaces) and data types have to be according to the specifications provided in this document. The implementation phase includes writing SQL statements to create a database and its tables, populating the tables with data, writing a number of queries to create reports that can be used by the management team. Your database should contain sufficient data in each table (at least, 5 to 0 records in each table; some may require less or more) to demonstrate that your queries work. Specific Design Requirement There are a number of supertypes and subtypes (entities) in the ERD (see below). For example, for the supertype EMPLOYEE there are two subtypes FULLTIME and CASUAL. Also for the supertype PRODUCT there are two subtypes CD and OTHERPRODUCT. While an employee can work only fulltime or casual, a product can only be CD or other product. Thus, the relationship from a supertype to one of its subtype is one to one and there is an optional participation sign on the subtype side. Also, when an employee works as fulltime, he/she cannot work as casual, and vice versa. Similarly, when a product is a CD, it cannot be in an other product, and vice versa. Therefore, a special design requirement has to be observed as follows: An employee working fulltime in EMPLOYEE table can only be entered into FULLTIME table (i.e., trying to insert it into CASUAL table will show an error), An employee working casual in EMPLOYEE table can only be entered into CASUAL table (i.e., trying to insert it into FULLTIME table will show an error), A product designated as CD in PRODUCT table can only be entered into CD table (i.e., trying to insert it into OTHERPRODUCT will show an error), and A product designated as other product in PRODUCT table can only be entered into OTHERPRODUCT table (i.e., trying to insert into CD table will show an error). Page

2 Faculty of Science ITECH006/5006 Database Management Systems Implementation of the Database To implement the database system, you are required to a) provide SQL commands to create the database, its tables, the relationships of the tables b) Create a text file called YourStudentId-Create.sql (format xxxxxxx-create.sql) for example Create.sql that will provide SQL commands to: i. create a database called BigM[YourStudentID] (eg BigM300) ii. create all of the required tables for the database including their primary keys, foreign keys and the relationships of tables. c) Create a text file called YourStudentId-Insert.sql (format xxxxxxx-insert.sql) for example Insert.sql that will provide SQL commands to: i. insert sufficient data into each table you have created to test the queries (at least 5 to 0 records in each table; some table may require less or more). ii. You are required to include your full name as one of the employee and/or customer; but you can provide fake details for your address and contact. d) Create a text file called YourStudentId-Queries.sql (format xxxxxxx-queries.sql - for example Queries.sql) that contains all of the queries to display the following reports:. List of names and complete address of all employees sorted by their salary. Also indicate if the employee works fulltime or casual. 2. The date on which the most recent customer order has been made. The customer name and date of order will suffice. 3. List of all the store names and their addresses, sorted in dictionary order of the store name. 4. A list of all customers that have not placed an order yet. Displaying customer number and name will be sufficient. 5. A list containing the name of employees, which work as accountant. 6. A list containing the total quantity on hand for each product (product no and description) regardless of stores. 7. A list showing each product sold (picked) on or before May 20, 205. Show product number, name and quantity sold, sorted by product number and then quantity sold. 8. A list of CDs (show CD title, release date and price) whose price is less than or equal to the average CD price. 9. Increase each fulltime employee s salary by 7.5% and show the updated salary of all fulltime employees (name and salary). 0. Show all the artist names and CDs in which they appear, sorted by artist first name and then by last name and finally by CD title. Page 2

3 ITECH5006 Students Only. Make a list of all action movie CDs and their price in ascending order of price. Show the CD title and price. 2. A list of supervisors (employee id, name) and all of their subordinates (employee id, name). 3. Show the pay information (employee name, hours paid, amount paid) of all casual employees in the most recent pay date. Note: There are some general requirements when defining your select queries: You are required to adhere to the following output formatting conventions: Any query requiring names of people should be printed as GivenName FamilyName (e.g. John Smith) in a column labelled NAME Any query requiring addresses should be printed as Street, Suburb State Postcode (e.g. 23 Anzac Pde, Maroubra NSW 2038) in a column labelled ADDRESS All monetary values should be printed with a dollar symbol ($), two digits after the decimal point, and with space for 7 digits before the decimal point You must use consistent and legible formatting in laying out your SQL queries. Include (brief) comments for any query or procedure that uses an "unusual" approach. What to submit An electronic copy of your assignment should be submitted through Moodle and should include a copy of your report, completed according to the Federation University Australia Guide for the Presentation of Academic Work (available and the three files described in Implementation of the Database above. Your document should include: A copy of the SITE Assignment Coversheet that includes a copy of the plagiarism statement. A copy of the SQL statements required to: o create the database and tables; o insert sufficient sample data into each table to demonstrate that your queries work. o a report of the results from running the SQL queries by using Copy/paste of their output. A bibliography containing a list of all resources used to complete the assignment. If no resources, apart from the course materials, have been used please indicate this. Assessment Criteria Adhere to the specific design requirement given on Page (check the supplementary document for an example). How clear and well organised your presentation is. On the front page of your report you should include a list of acknowledgements of all people who have assisted you with this assignment including fellow students, along with a statement of completion. Page 3

4 Adherence to our standards. How clear and well organised your presentation is. You should write all the queries in consistent style and use indent format. Data correctness and quality. Please use appropriate data for your examples (e.g. do not use inappropriate person names) Joining of data from multiple tables should be completed using a WHERE statement only. JOINs are not to be used within any of the SQL statements. Use of any JOINs will result in 0 (zero) marks being allocated for each SQL statement that utilizes them. Please refer to the provided marking guide (below) to see the distribution of marks. Take it as a guide, but NOT as an exact distribution of marks. Assignment Resources: The Standard ER Diagram Relational Database Schema A supplementary document (from online) to help you how to implement the specific design requirement involving supertype and subtype entities in the ERD. Hint: you need to decide the order that tables need to be created; and the order of tables in which data need to be inserted into. Page 4

5 Page 5 STORE Str_Name Str_Phone Str_Fax Str_ StoreManagerID SupStore_Num Address_ID STOREDEPARTMENT StrDept_ID StrDept_Phone StrDept_ DeptSupervisorID Dept_ID EMPLOYEE Emp_ID Emp_FName Emp_LName Emp_Phone Emp_DoB Emp_StartDate Emp_TaxFNum StrDept_ID SupvisorID Address_ID_Postal Address_ID_Resident JobTime_ID DEPARTMENT Dept_ID Dept_Name JOBTYPE JobType_ID JobType_Name PAYSLIP Pay_ID Pay_date Pay_num_of_hours Pay_amount_gross Emp_ID ARTIST Artist_ID Artist_FName Artist_Lname Artist_DoB Artist_Website CDARTIST Artist_ID CDArtist_NumTracks CD CD_Title CD_Length CD_NumOfTracks CD_ReleaseDate CD_Price CD_ReorderLevel CD_CategoryID CDType_ID OTHERPRODUCT OthProd_Desc OthProd_Size OthProd_Price OthProd_brand OtherType_ID CATEGORY Category_ID Category_Desc INVENTORY ProductNum Inv_QntyOnHand Inv_QtyOrdered CUSTOMER Cust_Number Cust_Fname Cust_LName Cust_Phone Address_ID CUSTOMERORDER CustOrd_ID CustOrd_Date Cust_Number ORDERLINE CustOrd_ID OrdLn_DateArrived OrdLn_DatePicked OrdLn_Qnty has supervises supervises places managed by supervised by employs has starred by has has contains generates receives maintains is for generates receives is works is a is a PRODUCT ProdType_ID CASUAL FULLTIME Emp_ID Emp_salary_hourly JobType_ID CasualJob_ID Emp_ID Emp_salary_yearly JobType_ID FullTimeJob_ID ADDRESS Address_ID Address_St Address_City Address_State Address_Postcode Add_TypeID ADDRESSTYPE AddType_ID Add_Type has has relates JOBTIME JobTime_ID JobTime_Desc works PRODUCTTYPE ProdType_ID ProdType_Desc has JOBFULLTIME FullTimeJob_ID JOBCASUALTIME CasualJob_ID is is CDTYPE CDType_ID OTHERTYPE OtherType_ID is works is is

6 Notes for the ERD: Primary keys are underlined and foreign keys are made italic (also coloured for easy identification). Supertype and subtype relationships are: EMPLOYEE to FULLTIME and CASUAL and PRODUCT to CD and OTHERPRODUCT. 2. Relational Database Schema Relation Attributes Data type Comment ADDRESSTYPE AddType_ID Primary Key, Expected examples R for residential, P for postal and B for both res. & pos. Add_Type VARCHAR(5) Cust_Number Primary Key, Auto Increase Cust_FName VARCHAR(30) CUSTOMER Cust_LName VARCHAR(30) Cust_Phone CHAR(0) Includes area code Address_ID ADDRESS (Address_ID) Address_ID Primary Key, Auto Increase Address_St VARCHAR(50) e.g., 52 Temple St ADDRESS Address_City VARCHAR(30) e.g., Ballarat Address_State VARCHAR (3) Examples VIC, NSW Address_Postcode CHAR(4) Examples 3350, 200 Add_TypeID ADRESSTYPE(AddType_ID) JOBTYPE JobType_ID Primary Key, Auto Increase JobType_Name VARCHAR(30) e.g., Accountant Page 6

7 Artist_ID Primary Key, Auto Increase ARTIST Artist_FName Artist_LName VARCHAR(30) VARCHAR(30) Artist_DoB DATE Format: YYYY-MM-DD Artist_Website VARCHAR(00) CATEGORY Category_ID VARCHAR(5) Primary Key, example, M for music, AM for action movies Category_Desc VARCHAR(40) e.g., Music, Adult movies DEPARTMENT Dept_ID Primary Key, Auto Increase Dept_Name VARCHAR(40) e.g., Sales, Training, Payroll Primary Key, Auto Increase Str_Name VARCHAR(50) e.g., BigM Ballarat Str_Phone CHAR(0) Includes area code Str_Fax CHAR(0) Includes area code STORE Str_ StoreManagerID VARCHAR(40) EMPLOYEE(Emp_ID) SupStore_Num STORE() Address_ID ADDRESS (Address_ID) StrDept_ID Primary Key, Auto Increase STOREDEPARTMENT StrDept_Phone CHAR(0) Includes area code StrDept_ VARCHAR(40) DeptSupervisorID EMPLOYEE(Emp_ID) Page 7

8 Dept_ID STORE() DEPARTMENT (Dept_ID) JOBTIME PRODUCTTYPE JobTime_ID Primary Key, expected F for fulltime and C for casual JobTime_Desc VARCHAR(0) e.g., fulltime, casual ProdType_ID Primary Key, expected C for CD and O for Other product ProdType_Desc VARCHAR(30) e.g., CD and Other product Emp_ID Primary Key, Auto Increase Emp_FName Emp_LName VARCHAR(30) VARCHAR(30) Emp_Phone CHAR(0) Includes area code Emp_DoB DATE Format: YYYY-MM-DD Emp_StartDate DATE Format: YYYY-MM-DD Emp_TaxFNum CHAR(2) e.g., EMPLOYEE StrDept_ID STOREDEPARTMENT (StrDept_ID) SupvisorID EMPLOYEE(Emp_ID) Address_ID_Postal ADDRESS (Address_ID) Address_ID_Resident ADDRESS (Address_ID) JobTime_ID JOBTIME (JobTime_ID) JOBFULLTIME FullTimeJob_ID Primary Key Page 8

9 JOBCASUALTIME CasualJob_ID Primary Key Emp_ID reference EMPLOYEE(Emp_ID) Emp_salary_yearly DOUBLE(0,2) e.g., 0, FULLTIME JobType_ID JOBTYPE (JobType_ID) FullTimeJob_ID NOT NULL, DEFAULT F, JOBFULLTIME (FullTimeJob_ID) Emp_ID reference EMPLOYEE(Emp_ID) Emp_salary_hourly DOUBLE(0,2) e.g., CASUAL JobType_ID JOBTYPE (JobType_ID) CasualJob_ID NOT NULL, DEFAULT C, JOBCASUALTIME (CasualJob_ID) Pay_ID Primary Key, Auto Increase Pay_date DATE Format: YYYY-MM-DD Pay_num_of_hours DOUBLE(4,2) e.g., PAYSLIP Pay_amount_gross DOUBLE(6,2) e.g., Emp_ID EMPLOYEE(Emp_ID) STORE() CDTYPE CDType_ID Primary Key OTHERTYPE OtherType_ID Primary Key Page 9

10 Primary Key, Auto Increase PRODUCT ProdType_ID PRODUCTTYPE (ProdType_ID) reference CD () CDARTIST Artist_ID Primary Key, Foreign key reference ARTIST (Artist_ID) CDArtist_NumTracks reference PRODUCT () CD_Title VARCHAR(50) CD_Length TIME Format: 'HH:MM:SS' CD_NumOfTracks CD CD_ReleaseDate DATE Format: YYYY-MM-DD CD_Price DOUBLE(4,2) e.g., CD_ReorderLevel VARCHAR(0) CD_CategoryID VARCHAR(5) CATEGORY (Category_ID) CDType_ID NOT NULL, DEFAULT C, CDTYPE (CDType_ID) reference PRODUCT () OTHERPRODUCT OthProd_Desc VARCHAR(50) e.g., Pant for man, skirt for girl OthProd_Size VARCHAR(0) e.g., Large, Medium, etc. OthProd_Price DOUBLE(4,2) e.g., 0.50 Page 0

11 OthProd_brand VARCHAR(20) e.g., Masters, Century OtherType_ID NOT NULL, DEFAULT O, OTHERTYPE (OtherType_ID) ProductNum reference PRODUCT () INVENTORY reference STORE () Inv_QntyOnHand Inv_QtyOrdered CustOrd_ID Primary Key, Auto Increase CustOrd_Date DATE Format: YYYY-MM-DD CUSTOMERORDER Cust_Number CUSTOMER (Cust_Number) STORE () CustOrd_ID reference CUSTOMERORDER (CustOrd_ID) ORDERLINE reference PRODUCT () OrdLn_DateArrived DATE Format: YYYY-MM-DD OrdLn_DatePicked DATE Format: YYYY-MM-DD OrdLn_Qnty End of specification. Page

12 Assignment 2 Marking Overview Documentation /5 Create statements /5 insert statements /5 Queries /45 ITECH5006 Queries /5 Total: ITECH006 /80 ITECH5006 /95 Page 2

13 ITECH5006 Assignment 2 Marking Guide Student name: Student ID: Marker: ITEM Max Mar k Documentation /5 document well laid out and easy to read contains a coversheet or front page contains a table of contents and is set out according to the university guidelines contains all of the required components of the assignment bibliography included in APA format Create statement /5 Create table, Create (all/most/some/no) of the relevant new tables 4 relationship, Database correctly named and created (Includes own name and number) 3 correct Includes all of the PKs and FKs and relationships in the database 2 supertypesubtype No evidence that tables have been created using the GUI Maintains the specific design requirement for supertype and subtype 3 design They work properly 2 Insert statement /5 Insert, correct Successfully inserts data into (all/most/some/no) of the tables Includes own details as one of the customers 2 2 supertypesubtype NO evidence exporting from GUI INSERT file includes primary keys 2 design Maintains the specific design requirement for supertype and subtype 2 They work properly Sufficient data SQL Queries Q Q2 Q3 Q4 Q5 Contains (sufficient/some/no) data to test (all/some/no) of the queries (thoroughly/ only with limited entries/no entries) 5 /45 - appropriate statement formatted as per instructions (e.g., name and 5 address) - correct joins and where clause - appropriate ORDER BY - appropriate statement formatted as per instructions (e.g., name) - correct joins - appropriate statement formatted as per instructions (e.g., address) - correct joins and ORDER BY - appropriate statement formatted as per instructions (e.g., name) - correct subquery - appropriate statement - correct joins and union Q6 - correct statement according to the description (AS [Total: ]) Page 3

14 - correct joins and where clause - Includes required GROUP BY Q7 - correct statement according to the description 5 - Correct use of joins and ORDER BY - Includes required GROUP BY Q8 - appropriate statement 4 - correct use of sub-query Q9 - correct statement formatted as per instructions (e.g., name, $ salary) 5 - correct joins & where clause Q0 - correct statement according to the description 4 - correct joins and ORDER BY ITECH5006 ONLY 5 Q - correct statement formatted as per instructions (e.g., $ price) 4 - correct joins and ORDER BY Q2 - correct statement formatted as per instructions (e.g., name) - correct joins 5 Q3 General Comment: - correct statement and formatting (e.g., $ payment) - correct joins - Includes required sub-query Total ITECH 5006 /95 Total ITECH006 /80 Weight /20% 6 Page 4

Week 11, Friday, 5pm Submit the individual work file, named 'a2-<surname_id>.zip', by Week 11, Friday, 5pm via Moodle.

Week 11, Friday, 5pm Submit the individual work file, named 'a2-<surname_id>.zip', by Week 11, Friday, 5pm via Moodle. Assignment 2 School of Engineering and Information Technology ITECH1006/5006: Database Management Systems Aims To analyse and comprehend a given ER diagram and Database schema To implement a database based

More information

Unit Assessment Guide

Unit Assessment Guide Unit Assessment Guide Unit Details Unit code Unit name Unit purpose/application ICTWEB425 Apply structured query language to extract and manipulate data This unit describes the skills and knowledge required

More information

Relational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011

Relational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011 Relational Model IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview What is the relational model? What are the most important practical elements of the relational model? 2 Introduction

More information

MTAT Introduction to Databases

MTAT Introduction to Databases MTAT.03.105 Introduction to Databases Lecture #4 Entity-Relationship Modelling Ljubov Jaanuska (ljubov.jaanuska@ut.ee) Lecture 3. Summary So far we have been dealing with a relational database (PCA.db)

More information

My Tennis making membership easy. My Tennis. Club Administration User Manual Version 3.0. Making membership easy

My Tennis making membership easy. My Tennis. Club Administration User Manual Version 3.0. Making membership easy My Tennis Club Administration User Manual Version 3.0 Making membership easy i Preface This document describes Information Processing Corporation (IPC) and Sports Marketing Australia (SMA) software and

More information

CS44800 Practice Project SQL Spring 2019

CS44800 Practice Project SQL Spring 2019 CS44800 Practice Project SQL Spring 2019 Due: No Grade Total Points: 30 points Learning Objectives 1. Be familiar with the basic SQL syntax for DML. 2. Use a declarative programming model (SQL) to retrieve

More information

Babu Madhav Institute of Information Technology 2015

Babu Madhav Institute of Information Technology 2015 Paper No.:060010102 Subject: Database Management Systems (Practical) Program: 5 Years Integrated M.Sc.(IT) Semester: 01 Practical No: 1 Enrolment No: Practical Problem Create following tables: CLIENT_MASTER

More information

COSC Assignment 2

COSC Assignment 2 COSC 344 Overview In this assignment, you will turn your miniworld into a set of Oracle tables, normalize your design, and populate your database. Due date for assignment 2 Friday, 25 August 2017 at 4

More information

Advance Database Management System

Advance Database Management System Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database

More information

Exam code: Exam name: Database Fundamentals. Version 16.0

Exam code: Exam name: Database Fundamentals. Version 16.0 98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following

More information

Name: Answers Q

Name: Answers Q p.1 of 10 INFS 4240/6240 (Section A) Database Management System Fall 2018 Test 3 December 4, 2018 2:00 3:15 pm Q.1-1 10 10 Q.1-2 8 8 Q.2 12 12 Name: Answers Q.3-1 6 6 Q.3-2 32 32 Q.3-3 32 32 Total 100

More information

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations Show Only certain columns and rows from the join of Table A with Table B The implementation of table operations

More information

More on MS Access queries

More on MS Access queries More on MS Access queries BSAD 141 Dave Novak Topics Covered MS Access query capabilities Aggregate queries Different joins Review: AND and OR Parameter query Exact match criteria versus range Formatting

More information

ADVANCED SQL QUERIES

ADVANCED SQL QUERIES PROJECT 2 LARGE COMPANY DATABASE ISE 382 TEAM 04: ERIC LOEB, NATHAN CURTIS, DAVID TANAKA ADVANCED SQL QUERIES 60 points PROJECT OBJECTIVES Use JOINs, subqueries, and SQL functions to answer complex questions

More information

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model Scroll down and click "Respond" to post your reply to the Discussion topics. Please review the Discussion Board Participation grading rubric on your course Syllabus. The Discussion Board Participation

More information

CS Homework 4 p. 1. CS Homework 4

CS Homework 4 p. 1. CS Homework 4 CS 325 - Homework 4 p. 1 Deadline: 11:59 pm on Friday, October 7, 2016 How to submit: CS 325 - Homework 4 Each time you wish to submit, within the directory 325hw4 on nrs-projects.humboldt.edu (and at

More information

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester 1. List four significant differences between a file-processing system and a DBMS. 2. Explain the difference between physical and logical data independence. 3. What are five main functions of a database

More information

2. E/R Design Considerations

2. E/R Design Considerations 2. E/R Design Considerations 32 What you will learn in this section Relationships cont d: multiplicity, multi-way Design considerations Conversion to SQL 33 Multiplicity of E/R Relationships Multiplicity

More information

School of Business. BUACC5937: Information Systems Design and Development for Accountants. Mudusu Calling Cards System (MCCS)

School of Business. BUACC5937: Information Systems Design and Development for Accountants. Mudusu Calling Cards System (MCCS) School of Business BUACC5937: Information Systems Design and Development for Accountants Mudusu Calling Cards System (MCCS) Invoice Learning About Relational Database By using Microsoft Access 2010 Acknowledgements:

More information

MySQL. A practical introduction to database design

MySQL. A practical introduction to database design MySQL A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Database Classes 24/09/18

More information

Item: 1 (Ref:Cert-1Z )

Item: 1 (Ref:Cert-1Z ) Page 1 of 13 Item: 1 (Ref:Cert-1Z0-071.10.2.1) Evaluate this CREATE TABLE statement: CREATE TABLE customer ( customer_id NUMBER, company_id VARCHAR2(30), contact_name VARCHAR2(30), contact_title VARCHAR2(20),

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

Handout 9 CS-605 Spring 18 Page 1 of 8. Handout 9. SQL Select -- Multi Table Queries. Joins and Nested Subqueries.

Handout 9 CS-605 Spring 18 Page 1 of 8. Handout 9. SQL Select -- Multi Table Queries. Joins and Nested Subqueries. Handout 9 CS-605 Spring 18 Page 1 of 8 Handout 9 SQL Select -- Multi Table Queries. Joins and Nested Subqueries. Joins In Oracle https://docs.oracle.com/cd/b19306_01/server.102/b14200/queries006.htm Many

More information

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Representation in Relational Model.

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Representation in Relational Model. Database Design Database Design I: The Entity-Relationship Model Chapter 5 Goal: specification of database schema Methodology: Use E-R R model to get a high-level graphical view of essential components

More information

Information Technology Audit & Cyber Security

Information Technology Audit & Cyber Security Information Technology Audit & Cyber Security Structured Data Requirements Systems & Infrastructure Lifecycle Management with E-R LEARNING OBJECTIVES Explain the role of conceptual data modeling in the

More information

5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST CC2 Database Management Systems

5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST CC2 Database Management Systems 5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST 060010110 CC2 Database Management Systems Practical No: 1 Duration for completion PEO(s) to be PO(s) to be CO(s) to be Date Group Analyze : Athe scenario

More information

BTEC Nationals IT - Unit2 FAQs

BTEC Nationals IT - Unit2 FAQs BTEC Nationals IT - Unit2 FAQs Q1 Q2 I need more clarity on what is required in the design task Is it expected that the race officials are entering times as raw times and then the table is set up so it

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 8 Data Modeling Advanced Concepts Objectives In this chapter, students will learn: About the extended entity

More information

DATABASE DEVELOPMENT (H4)

DATABASE DEVELOPMENT (H4) IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions

More information

The Relational Data Model and Relational Database Constraints

The Relational Data Model and Relational Database Constraints CHAPTER 5 The Relational Data Model and Relational Database Constraints Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-2 Chapter Outline Relational Model Concepts Relational Model Constraints

More information

Course Title: Introduction to Database Management System Course Code: CSIT116 Course Level: UG Course Credits:04 L T P/ S SW/F W

Course Title: Introduction to Database Management System Course Code: CSIT116 Course Level: UG Course Credits:04 L T P/ S SW/F W Course Title: Introduction to Database Management System Course Code: CSIT116 Course Level: UG Course Credits:04 Course Objectives: The objectives of this course is to: To expose the students to the fundamentals

More information

CS 405G: Introduction to Database Systems

CS 405G: Introduction to Database Systems CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of

More information

CPT140 Database Concepts Study Period 2, 2012 Assignment 2

CPT140 Database Concepts Study Period 2, 2012 Assignment 2 CPT140 Database Concepts Study Period 2, 2012 Assignment 2 Due: 11:59pm, Sunday 5th August 2012. Worth: 100 marks in total, which is worth 20% of the overall assessment for the course. Submission: Submission

More information

Reference: W3School -

Reference: W3School - Language SQL SQL Adv Reference: W3School - http://www.w3schools.com/sql/default.asp http://www.tomjewett.com/dbdesign/dbdesign.php?page=recursive.php Recursive Associations/Relationship A recursive association

More information

Database Management Systems

Database Management Systems Sample Questions 1 Write SQL query to create a table for describing a book. The table should have Book Title, Author, Publisher, Year published, and ISBN fields. Your table should have a primary key. For

More information

SQL Data Manipulation Language. Lecture 5. Introduction to SQL language. Last updated: December 10, 2014

SQL Data Manipulation Language. Lecture 5. Introduction to SQL language. Last updated: December 10, 2014 Lecture 5 Last updated: December 10, 2014 Throrought this lecture we will use the following database diagram Inserting rows I The INSERT INTO statement enables inserting new rows into a table. The basic

More information

A. It executes successfully and displays rows in the descending order of PROMO_CATEGORY.

A. It executes successfully and displays rows in the descending order of PROMO_CATEGORY. Volume: 75 Questions Question No: 1 Evaluate the following SQL statement: Which statement is true regarding the outcome of the above query? A. It executes successfully and displays rows in the descending

More information

Unit 1 - Chapter 4,5

Unit 1 - Chapter 4,5 Unit 1 - Chapter 4,5 CREATE DATABASE DatabaseName; SHOW DATABASES; USE DatabaseName; DROP DATABASE DatabaseName; CREATE TABLE table_name( column1 datatype, column2 datatype, column3 datatype,... columnn

More information

Database Foundations. 4-1 Oracle SQL Developer Data Modeler. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 4-1 Oracle SQL Developer Data Modeler. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 4-1 Road Map You are here Oracle SQL Developer Data Modeler Converting a Logical Model to a Relational Model 3 Objectives This lesson covers the following objectives: Use to create:

More information

ACS-3902 Fall Ron McFadyen 3D21 Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition)

ACS-3902 Fall Ron McFadyen 3D21 Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition) ACS-3902 Fall 2016 Ron McFadyen 3D21 ron.mcfadyen@acs.uwinnipeg.ca Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition) 1 The Relational Data Model and Relational Database Constraints

More information

Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy.

Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy. Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy. Contents Executive Summary... 3 IT Curriculum Overview... 3 Aims... 3 Oracle Academy Introduction to Computer Science...

More information

Topic 5: Mapping of EER Diagrams to Relations

Topic 5: Mapping of EER Diagrams to Relations Topic 5: Mapping of EER Diagrams to Relations Olaf Hartig olaf.hartig@liu.se Recall: DB Design Process 2 Running Example 3 Algorithm for Mapping from the ER Model to the Relational Model Step 1: Map Regular

More information

Database Design - Section 11. Instructor Guide

Database Design - Section 11. Instructor Guide Instructor Guide Table of Contents...1 Lesson 1 - What About Me?...1 What Will I Learn?...2 Why Learn It?...3...4 Try It / Solve It...5 Lesson 2 - Drawing Conventions for Readability...6 What Will I Learn?...7

More information

THE AUSTRALIAN NATIONAL UNIVERSITY. Mid-Semester Examination August 2006 RELATIONAL DATABASES (COMP2400)

THE AUSTRALIAN NATIONAL UNIVERSITY. Mid-Semester Examination August 2006 RELATIONAL DATABASES (COMP2400) THE AUSTRALIAN NATIONAL UNIVERSITY Mid-Semester Examination August 2006 RELATIONAL DATABASES (COMP2400) Reading Time: 10 minutes Writing Time: 1 hour Permitted Materials: One A4 sheet with notes on both

More information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

More information

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used.

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used. Name: Student Number: Instructions: Do all 9 questions. There is a total of 87 marks. The appendix contains information about the Classic Models database. Place your answers on the examination paper and

More information

SIT772 Database and Information Retrieval WEEK 6. RELATIONAL ALGEBRAS. The foundation of good database design

SIT772 Database and Information Retrieval WEEK 6. RELATIONAL ALGEBRAS. The foundation of good database design SIT772 Database and Information Retrieval WEEK 6. RELATIONAL ALGEBRAS The foundation of good database design Outline 1. Relational Algebra 2. Join 3. Updating/ Copy Table or Parts of Rows 4. Views (Virtual

More information

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Database Processing. Fundamentals, Design, and Implementation. Global Edition

Database Processing. Fundamentals, Design, and Implementation. Global Edition Database Processing Fundamentals, Design, and Implementation 14th Edition Global Edition Database Processing: Fundamentals, Design, and Implementation, Global Edition Table of Contents Cover Title Page

More information

SAMPLE FINAL EXAM SPRING/2H SESSION 2017

SAMPLE FINAL EXAM SPRING/2H SESSION 2017 SAMPLE FINAL EXAM SPRING/2H SESSION 2017 School of Computing, Engineering and Mathematics Complete your details in this section when instructed by the Exam Supervisor at the start of the exam. You should

More information

IBM DB2 UDB V7.1 Family Fundamentals.

IBM DB2 UDB V7.1 Family Fundamentals. IBM 000-512 DB2 UDB V7.1 Family Fundamentals http://killexams.com/exam-detail/000-512 Answer: E QUESTION: 98 Given the following: A table containing a list of all seats on an airplane. A seat consists

More information

ER modeling. Lecture 4

ER modeling. Lecture 4 ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/

More information

MARIA AMPARO FUENTES-OREA (F ) HSQ-DATABASES & SQL MANSHA NAWAZ. SERVER DATABASE EXAMPLE Generic Sales Order Processing System

MARIA AMPARO FUENTES-OREA (F ) HSQ-DATABASES & SQL MANSHA NAWAZ. SERVER DATABASE EXAMPLE Generic Sales Order Processing System MARIA AMPARO FUENTES-OREA (F-6102492) HSQ-DATABASES & SQL MANSHA NAWAZ SERVER DATABASE EXAMPLE Generic Sales Order Processing System Table of Contents 1. Case Study...3 1.1. Case study Scenario...3 1.2.

More information

CS 327E Lecture 2. Shirley Cohen. January 27, 2016

CS 327E Lecture 2. Shirley Cohen. January 27, 2016 CS 327E Lecture 2 Shirley Cohen January 27, 2016 Agenda Announcements Homework for today Reading Quiz Concept Questions Homework for next time Announcements Lecture slides and notes will be posted on the

More information

Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015)

Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015) Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015) Theory Theory Periods 4 periods/ week Tutorial - 1 period / 15 days Theory Paper Marks

More information

Chapter 5. The Relational Data Model and Relational Database Constraints. Slide 5-١. Copyright 2007 Ramez Elmasri and Shamkant B.

Chapter 5. The Relational Data Model and Relational Database Constraints. Slide 5-١. Copyright 2007 Ramez Elmasri and Shamkant B. Slide 5-١ Chapter 5 The Relational Data Model and Relational Database Constraints Chapter Outline Relational Model Concepts Relational Model Constraints and Relational Database Schemas Update Operations

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 5-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 5-1 Slide 5-1 Chapter 5 The Relational Data Model and Relational Database Constraints Chapter Outline Relational Model Concepts Relational Model Constraints and Relational Database Schemas Update Operations

More information

Lecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2

Lecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2 IS220 : Database Fundamentals College of Computer and Information Sciences - Information Systems Dept. Lecture7: SQL Overview, Oracle Data Type, DDL and Constraints Part #2 Ref. Chapter6 Prepared by L.

More information

normalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model

normalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model Database Design Section1 - Introduction 1-1 Introduction to the Oracle Academy o Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. o Explain how your

More information

DATABASE DEVELOPMENT (H4)

DATABASE DEVELOPMENT (H4) IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) December 2017 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions in Part

More information

Chapter 3: Introduction to SQL. Chapter 3: Introduction to SQL

Chapter 3: Introduction to SQL. Chapter 3: Introduction to SQL Chapter 3: Introduction to SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 3: Introduction to SQL Overview of The SQL Query Language Data Definition Basic Query

More information

Database Design & Programming with SQL: Part 1 Learning Objectives

Database Design & Programming with SQL: Part 1 Learning Objectives Database Design & Programming with SQL: Part 1 Learning Objectives This is the first portion of the Database Design and Programming with SQL course. In this portion, students learn to analyze complex business

More information

School of Computing and Information Technology. Examination Paper Autumn 2016

School of Computing and Information Technology. Examination Paper Autumn 2016 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn 2016

More information

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we

More information

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints Chapter 5: The Relational Data Model and Relational Database Constraints: Outline Ramez Elmasri, Shamkant B. Navathe(2017) Fundamentals of Database Systems (7th Edition),pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7.

More information

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:

More information

CHAPTER4 CONSTRAINTS

CHAPTER4 CONSTRAINTS CHAPTER4 CONSTRAINTS LEARNING OBJECTIVES After completing this chapter, you should be able to do the following: Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN KEY,

More information

GIFT Department of Computing Science. CS-217: Database Systems. Lab-4 Manual. Reporting Aggregated Data using Group Functions

GIFT Department of Computing Science. CS-217: Database Systems. Lab-4 Manual. Reporting Aggregated Data using Group Functions GIFT Department of Computing Science CS-217: Database Systems Lab-4 Manual Reporting Aggregated Data using Group Functions V3.0 4/28/2016 Introduction to Lab-4 This lab further addresses functions. It

More information

Bachelor in Information Technology (BIT) O Term-End Examination

Bachelor in Information Technology (BIT) O Term-End Examination No. of Printed Pages : 6 I CSI-14 I Bachelor in Information Technology (BIT) O Term-End Examination cn Cn1 June, 2010 CD cp CSI-14 : DATA ANALYSIS AND DATABASE DESIGN Time : 3 hours Maximum Marks : 75

More information

Top 6 SQL Query Interview Questions and Answers

Top 6 SQL Query Interview Questions and Answers Just my little additions, remarks and corrections to Top 6 SQL Query Interview Questions and Answers as published on http://javarevisited.blogspot.co.nz/2017/02/top-6-sqlquery-interview-questions-and-answers.html

More information

Let s briefly review important EER inheritance concepts

Let s briefly review important EER inheritance concepts Let s briefly review important EER inheritance concepts 1 is-a relationship Copyright (c) 2011 Pearson Education 2 Basic Constraints Partial / Disjoint: Single line / d in circle Each entity can be an

More information

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018 School of Computing and Information Technology Session: Autumn 2018 University of Wollongong Lecturers: Janusz R. Getta Tianbing Xia CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

More information

Introduction to Databases

Introduction to Databases Introduction to Databases Data Retrival SELECT * FROM Students S WHERE S.age < 18 Data Retrival SELECT S.name, S.login FROM Students S WHERE S.age < 18 Entity sets to tables Entity sets to tables CREATE

More information

Database Management Systems,

Database Management Systems, Database Management Systems SQL Query Language (1) 1 Topics Introduction SQL History Domain Definition Elementary Domains User-defined Domains Creating Tables Constraint Definition INSERT Query SELECT

More information

Guides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage

Guides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage Guides for Installing MS SQL Server and Creating Your First Database Installing process Please see more guidelines on installing procedure on the class webpage 1. Make sure that you install a server with

More information

Semantic Modeling. A query language for the 21 st century. Clifford Heath

Semantic Modeling. A query language for the 21 st century. Clifford Heath Semantic Modeling A query language for the 21 st century Clifford Heath Semantics The shared meanings of a community Expressed in facts Here, a model is: Standard for comparison Simplified representation

More information

The Relational Model

The Relational Model The Relational Model What is the Relational Model Relations Domain Constraints SQL Integrity Constraints Translating an ER diagram to the Relational Model and SQL Views A relational database consists

More information

A good example of entities and relationships can be seen below.

A good example of entities and relationships can be seen below. Unit 2: Unit 2: Conceptual Design: Data Modeling and the Entity Relationship Model - Discussion 1 Scroll down and click "Respond" to post your reply to the Discussion questions. Please review the Discussion

More information

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design

More information

Pirate Sports Database Tables/Fields

Pirate Sports Database Tables/Fields Gwen Goodman MIS-4113-601 Part 1: SQL You must use Microsoft SQLServer to create the following queries and then copy/past both the code and the data results. Be sure to show both the code and the data.

More information

Keys are fields in a table which participate in below activities in RDBMS systems:

Keys are fields in a table which participate in below activities in RDBMS systems: Keys are fields in a table which participate in below activities in RDBMS systems: 1. To create relationships between two tables. 2. To maintain uniqueness in a table. 3. To keep consistent and valid data

More information

SQL - Subqueries and. Schema. Chapter 3.4 V4.0. Napier University

SQL - Subqueries and. Schema. Chapter 3.4 V4.0. Napier University SQL - Subqueries and Chapter 3.4 V4.0 Copyright @ Napier University Schema Subqueries Subquery one SELECT statement inside another Used in the WHERE clause Subqueries can return many rows. Subqueries can

More information

SIT772 Database and Information Retrieval

SIT772 Database and Information Retrieval SIT772 Database and Information Retrieval Assessment Task 1 This assessment task enables students to demonstrate their proficiency against the first three Unit Learning Outcomes (ULOs) of this unit. ULO1:

More information

Spring 2017 CMSC 140 Programming Project 7: Payroll

Spring 2017 CMSC 140 Programming Project 7: Payroll Spring 2017 CMSC 140 Programming Project 7: Payroll Concepts tested by the program: 1. Working with arrays 2. Using file operations 3. Using a selection sort to sort parallel arrays 4. Using a binary search

More information

School of Computing, Engineering and Information Sciences University of Northumbria. Set Operations

School of Computing, Engineering and Information Sciences University of Northumbria. Set Operations Set Operations Aim: To understand how to do the equivalent of the UNION, DIFFERENCE and INTERSECT set operations in SQL. Outline of Session: Do some example SQL queries to learn to differentiate between

More information

Lecture 04: SQL. Wednesday, October 4, 2006

Lecture 04: SQL. Wednesday, October 4, 2006 Lecture 04: SQL Wednesday, October 4, 2006 1 Outline The Project Nulls (6.1.6) Outer joins (6.3.8) Database Modifications (6.5) 2 The Project Application: Boutique online music and book store Project:

More information

Entity Relationship Modelling

Entity Relationship Modelling Entity Relationship Modelling P.J. M c.brien Imperial College London P.J. M c.brien (Imperial College London) Entity Relationship Modelling 1 / 49 Introduction Designing a Relational Database Schema How

More information

CS2 Current Technologies Lecture 5: Data Modelling and Design

CS2 Current Technologies Lecture 5: Data Modelling and Design T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 5: Data odelling and Design Chris Walton (cdw@dcs.ed.ac.uk) 25 February 2002 Conceptual odelling 1 Designg effective database

More information

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design

More information

Excel Tips for Compensation Practitioners Weeks Text Formulae

Excel Tips for Compensation Practitioners Weeks Text Formulae Excel Tips for Compensation Practitioners Weeks 70-73 Text Formulae Week 70 Using Left, Mid and Right Formulae When analysing compensation data, you generally extract data from the payroll, the HR system,

More information

FIT1004 Database Topic 2: Database Design Life Cycle

FIT1004 Database Topic 2: Database Design Life Cycle FIT1004 Database Topic 2: Database Design Life Cycle Learning Objectives: Describe the 3 level ANSI SPARC Database Architecture and the advantages which its inherent data abstraction provide to the database

More information

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2 Department of Computer Science University of Cyprus EPL342 Databases Lab 2 ER Modeling (Entities) in DDS Lite & Conceptual Modeling in SQL Server 2008 Panayiotis Andreou http://www.cs.ucy.ac.cy/courses/epl342

More information

Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Sciences and Technologies

Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Sciences and Technologies Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Sciences and Technologies 4002-360.01 ~ Introduction to Database & Data Modeling ~ Spring

More information

Database Design. Goal: specification of database schema Methodology:

Database Design. Goal: specification of database schema Methodology: Database Design Goal: specification of database schema Methodology: Use E-R model to get a high-level graphical view of essential components of the model and how they are related Convert E-R diagram to

More information

Using the Set Operators. Copyright 2006, Oracle. All rights reserved.

Using the Set Operators. Copyright 2006, Oracle. All rights reserved. Using the Set Operators Objectives After completing this lesson, you should be able to do the following: Describe set operators Use a set operator to combine multiple queries into a single query Control

More information

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210 SQL: Concepts Todd Bacastow IST 210: Organization of Data 2/17/2004 1 Design questions How many entities are there? What are the major entities? What are the attributes of each entity? Is there a unique

More information

Conceptual Design. The Entity-Relationship (ER) Model

Conceptual Design. The Entity-Relationship (ER) Model Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship

More information

Content-Based Assessments

Content-Based Assessments Content-Based Assessments GO! Fix It Project 2H Social Sciences For Project 2H, you will need the following file: a02h_social_sciences Lastname_Firstname_2H_Social_Sciences 2a ccess In this project, you

More information

More about Databases. Topics. More Taxonomy. And more Taxonomy. Computer Literacy 1 Lecture 18 30/10/2008

More about Databases. Topics. More Taxonomy. And more Taxonomy. Computer Literacy 1 Lecture 18 30/10/2008 Topics More about Databases Computer Literacy Lecture 8 30/0/008 Terminology What s a database for again? Relational Database Model Samples Database Integrity Data mining More Taxonomy According to more

More information