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

Size: px
Start display at page:

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

Transcription

1 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 sides Notes may be handwritten or printed/typed The A4 sheet may be a photocopy Total Marks: 30 If your examination paper is missing any pages, or if any pages are illegible, raise your hand and ask for another examination paper. In addition to the examination paper, you should have received a sheet of scribble paper. You may ask for more scribble paper. All answers are to be written on the examination paper. Write your student number on every page of your examination paper. Write your name on this cover sheet in UPPERCASE. At the end of the examination, hand in your A4 sheet of notes and your scribble paper as well as your examination paper. Your A4 sheet of notes and your scribble paper will be destroyed. Only the examination paper will be marked. If you are ill during the examination, or otherwise suffer adverse circumstances during the examination, advise an invigilator immediately. FAMILY NAME: GIVEN NAME: Page 1 of 10 RELATIONAL DATABASES (COMP2400)

2 GENERAL INSTRUCTIONS Write all your answers on the examination paper. Write your Student Number neatly, especially on the pages which contain a Part header (eg Page 3). Do not write in the boxes in the Part headers. All answers should be written legibly, preferably in blue or black ink or in very dark pencil (eg 2B). Do not write in red ink. Answer all questions in the context of the material covered in this course, including the assignments for this course. More marks will be awarded for answers that are simple, short and concrete than will be awarded for answers that are of a sketchy or rambling nature. Generally, you will receive more marks for answers that show an understanding of the material than for answers which are simply transcriptions from lecture outlines or solution notes. You may ask for clarification of anything written on this paper, especially if you suspect that there is a typographical error. However, you should not ask for help with answering any of the questions. There are no optional questions on this examination paper. Page 2 of 10 RELATIONAL DATABASES (COMP2400)

3 Part 1 (10 marks) 1 TRUE/FALSE Nominate whether each of the following statements is true or false by circling either True or False after each statement on this paper. You will receive You will lose 1 mark for each correct nomination; zero marks for each absent nomination. 1/2 mark for each incorrect or unclear nomination. (1) All databases are relational. (2) {h, o, b, b, i, t} is a set. (3) {x, y} is a proper subset of {x, y}. (4) A database is a collection of related data. (5) On an ER Diagram, foreign keys are written in italics. Page 3 of 10 RELATIONAL DATABASES (COMP2400)

4 (6) Foreign keys can never be null. (7) SELECT CourseCode, Year, COUNT(*) AS Enroled FROM Enrolment WHERE Year = 2005 GROUP BY CourseCode; will list the number of students enrolled in each course in each year. (8) SELECT StudentId FROM Enrolment WHERE Mark = MAX(Mark); will tell us which student has the highest mark. (9) When we copy a table using create table... as, the new table has the same constraints as the original table. (10) alter table allows us to add columns to a table. Page 4 of 10 RELATIONAL DATABASES (COMP2400)

5 Part 2 (10 marks) 2 ER DIAGRAMS You will receive up to 5 marks for your answer to the following. Using the COMP2400 Entity-Relationship modelling conventions, draw a Level Zero ER Diagram (ie do not show any attributes on your diagram) which matches the following schema. Relational Schema Album Artist Gig Musician (Album_Id, Title, Label, Year, Artist_Id) (Artist_Id, Name) (Album_Id, Musician_Id) (Musician_Id, Family_Name, Given_Name, Birth_Date, Birth_Country, Death_Date, Death_Country) Page 5 of 10 RELATIONAL DATABASES (COMP2400)

6 You will receive up to 5 marks for your answer to the following. Using the COMP2400 Entity-Relationship modelling conventions, draw an ER Diagram to model the information in the following scenario. ER Scenario Lord Peter Wimsey has decided to create another front for his sleuthing activities. The organisation's official business is the warehousing of whimsical gadgets of all kinds, and its name is Wimsey's Widget Warehouse (WWW). WWW sells widgets to customers. Each type of widget in the warehouse is uniquely identified by a number, and has a name, a category, a colour, and a price. WWW uniquely identifies each of its customers using an identifier created by WWW and stores the following information about each customer: name, address, phone number, address. Page 6 of 10 RELATIONAL DATABASES (COMP2400)

7 Part 3 (10 marks) 3 SQL Write SQL queries to answer each of the questions on the following pages. Write one select statement for each query. Do not write any create or alter statements. The relational schemas for the tables against which the queries will be run: Actor ActsIn Customer Director Movie (ActorId, [pk] ActorName, BirthPlace, Nationality, YearBorn, YearDied, Sex) (MovieId [fk1], ActorId [fk2], [pk] StarsIn) (CustomerId, [pk] CustomerName, CustomerAddress, CustomerPhoneAH, CustomerPhoneBH) (DirectorId, [pk] DirectorName, YearBorn, YearDied) (MovieId, [pk] MovieTitle, MovieYear, Genre, CriticRating, Classification, Nominations, Awards, Length, InColor, DirectorId [fk1], StudioName [fk2], CertNoProducer [fk3]) MovieExec (CertNo, [pk] Name, Address, NetWorth) Studio Video (StudioName, [pk] Address, CertNoHead [fk]) (VideoId, [pk] StockDate, SupplierName, SoldTo [fk1], MovieId [fk2]) Simplified syntax for the SQL select command: select [distinct] <select_list> from <table_list> [where <boolean_condition>] [group by <column_list> [having <boolean_condition>]] [order by <column_list>] / Page 7 of 10 RELATIONAL DATABASES (COMP2400)

8 You will receive up to 5 marks for your answer to the following. (1) How many actors were born before 1984? Page 8 of 10 RELATIONAL DATABASES (COMP2400)

9 You will receive up to 5 marks for your answer to the following. (2) Which actors starred in the movie Gone With the Wind? Page 9 of 10 RELATIONAL DATABASES (COMP2400)

10 EXTRA PAPER FOR ANSWERS Clearly indicate which question(s) you are answering, from which Part(s). Page 10 of 10 RELATIONAL DATABASES (COMP2400)

Information Systems for Engineers. Exercise 10. ETH Zurich, Fall Semester Hand-out Due

Information Systems for Engineers. Exercise 10. ETH Zurich, Fall Semester Hand-out Due Information Systems for Engineers Exercise 10 ETH Zurich, Fall Semester 2017 Hand-out 08.12.2017 Due 15.12.2017 1. (Exercise 8.1.1 in [1]) Movies(title, year, length, genre, studioname, producercertnumber)

More information

Programming and Database Fundamentals for Data Scientists

Programming and Database Fundamentals for Data Scientists Programming and Database Fundamentals for Data Scientists Database Fundamentals Varun Chandola School of Engineering and Applied Sciences State University of New York at Buffalo Buffalo, NY, USA chandola@buffalo.edu

More information

Relational Algebra. Spring 2012 Instructor: Hassan Khosravi

Relational Algebra. Spring 2012 Instructor: Hassan Khosravi Relational Algebra Spring 2012 Instructor: Hassan Khosravi Querying relational databases Lecture given by Dr. Widom on querying Relational Models 2.2 2.1 An Overview of Data Models 2.1.1 What is a Data

More information

COMP102: Introduction to Databases, 5 & 6

COMP102: Introduction to Databases, 5 & 6 COMP102: Introduction to Databases, 5 & 6 Dr Muhammad Sulaiman Khan Department of Computer Science University of Liverpool U.K. 8/11 February, 2011 Introduction: SQL, part 2 Specific topics for today:

More information

Data Definition Language (DDL), Views and Indexes Instructor: Shel Finkelstein

Data Definition Language (DDL), Views and Indexes Instructor: Shel Finkelstein Data Definition Language (DDL), Views and Indexes Instructor: Shel Finkelstein Reference: A First Course in Database Systems, 3 rd edition, Chapter 2.3 and 8.1-8.4 Important Notices Reminder: Midterm is

More information

Comp2310 & Comp6310 Systems, Networks and Concurrency

Comp2310 & Comp6310 Systems, Networks and Concurrency The Australian National University Mid Semester Examination August 2017 Comp2310 & Comp6310 Systems, Networks and Concurrency Study period: 15 minutes Time allowed: 1.5 hours (after study period) Total

More information

Database Modifications and Transactions

Database Modifications and Transactions Database Modifications and Transactions FCDB 6.5 6.6 Dr. Chris Mayfield Department of Computer Science James Madison University Jan 31, 2018 pgadmin from home (the easy way) 1. Connect to JMU s network

More information

AC61/AT61 DATABASE MANAGEMENT SYSTEMS DEC 2013

AC61/AT61 DATABASE MANAGEMENT SYSTEMS DEC 2013 Q.2 a. Define the following terms giving examples for each of them: Entity, attribute, role and relationship between the entities b. Describe any four main functions of a database administrator. c. What

More information

SQL queries II. Set operations and joins

SQL queries II. Set operations and joins SQL queries II Set operations and joins 1. Restrictions on aggregation functions 2. Nulls in aggregates 3. Duplicate elimination in aggregates REFRESHER 1. Restriction on SELECT with aggregation If any

More information

EECS-3421a: Test #2 Queries

EECS-3421a: Test #2 Queries 2016 November 9 EECS-3421a: Test #2 w/ answers 1 of 16 EECS-3421a: Test #2 Queries Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#:

More information

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002 Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on the work

More information

Relational Model, Key Constraints

Relational Model, Key Constraints Relational Model, Key Constraints PDBM 6.1 Dr. Chris Mayfield Department of Computer Science James Madison University Jan 23, 2019 What is a data model? Notation for describing data or information Structure

More information

ISYS1055/1057 Database Concepts Week 9: Tute/Lab SQL Programming

ISYS1055/1057 Database Concepts Week 9: Tute/Lab SQL Programming Go to Database à Add Database and assign a suitable name (say New Movies) to the new database you are about to create. School of Science/ Computer Science and Information Technology ISYS1055/1057 Database

More information

COMP302. Database Systems

COMP302. Database Systems EXAMINATIONS 2006 MID-YEAR COMP 302 Database Systems Time allowed: Instructions: 3 Hours Answer all questions. Make sure that your answers are clear and to the point. Calculators and printed foreign language

More information

Information Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language

Information Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language Information Systems Engineering SQL Structured Query Language DDL Data Definition (sub)language 1 SQL Standard Language for the Definition, Querying and Manipulation of Relational Databases on DBMSs Its

More information

Information Systems Engineering. SQL Structured Query Language DML Data Manipulation (sub)language

Information Systems Engineering. SQL Structured Query Language DML Data Manipulation (sub)language Information Systems Engineering SQL Structured Query Language DML Data Manipulation (sub)language 1 DML SQL subset for data manipulation (DML) includes four main operations SELECT - used for querying a

More information

Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa

Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa ICS 321 Spring 2011 Constraints, Triggers, Views & Indexes Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 04/04/2011 Lipyeow Lim -- University of Hawaii

More information

Database Systems, CSCI Exam #2 Thursday November 4, 2010 at 2 pm

Database Systems, CSCI Exam #2 Thursday November 4, 2010 at 2 pm Database Systems, CSCI 4380-01 Exam #2 Thursday November 4, 2010 at 2 pm 1a (12) 1b (12) 1c (12) 1d (12) 2 (14) 3 (16) 4 (14) 5 (8) TOTAL Note. The exam is open book and open notes. Use your own book and

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

CSE-3421 Test #1 Design

CSE-3421 Test #1 Design 2 April 2009 CSE-3421 Test #1 (corrected) w/ answers p. 1 of 10 CSE-3421 Test #1 Design Family Name: Given Name: Student#: CS Account: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: winter 2009

More information

Midterm 1 157A Fall /22

Midterm 1 157A Fall /22 Midterm 1 157A Fall 2012 10/22 Class-id Name Part III Describe your contribution in the team project before mid night today. Part I Questions and Answers (10 pts EACH) 1. (DB3) Please write SQL for (a)

More information

Database Systems CSE 303. Lecture 02

Database Systems CSE 303. Lecture 02 Database Systems CSE 303 Lecture 02 2016 Structure Query Language (SQL) 1 Today s Outline (mainly from chapter 2) SQL introduction & Brief History Relational Model Data in SQL Basic Schema definition Keys

More information

Database Systems CSE 303. Lecture 02

Database Systems CSE 303. Lecture 02 Database Systems CSE 303 Lecture 02 2016 Structure Query Language (SQL) Today s Outline (mainly from chapter 2) SQL introduction & Brief History Relational Model Data in SQL Basic Schema definition Keys

More information

Summer Examinations 2015

Summer Examinations 2015 Summer Examinations 2015 CSY203815N Module Title Level Time Allowed Database Application Five Two hours Instructions to students: Enter your student number not your name on all answer books. Answer all

More information

Task: Design an ER diagram for that problem. Specify key attributes of each entity type.

Task: Design an ER diagram for that problem. Specify key attributes of each entity type. Q1. Consider the following set of requirements for a university database that is used to keep track of students transcripts. (10 marks) 1. The university keeps track of each student s name, student number,

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

EXAMINATIONS 2013 MID-YEAR SWEN 432 ADVANCED DATABASE DESIGN AND IMPLEMENTATION

EXAMINATIONS 2013 MID-YEAR SWEN 432 ADVANCED DATABASE DESIGN AND IMPLEMENTATION EXAMINATIONS 2013 MID-YEAR ADVANCED DATABASE DESIGN AND IMPLEMENTATION Time Allowed: 3 Hours (180 minutes) Instructions: Attempt all questions. There are 180 possible marks on the exam. Make sure your

More information

CS 4320/5320 Homework 2

CS 4320/5320 Homework 2 CS 4320/5320 Homework 2 Fall 2017 Due on Friday, 20th of October 2017 at 11:59 pm This assignment is out of 75 points and accounts for 10% of your overall grade. All answers for this homework should be

More information

Set Operations, Union

Set Operations, Union Set Operations, Union The common set operations, union, intersection, and difference, are available in SQL. The relation operands must be compatible in the sense that they have the same attributes (same

More information

Introduction to ERwin

Introduction to ERwin Introduction to ERwin Database Design & Modelling Hans-Petter Halvorsen, M.Sc. Software The following Editions can be downloaded for Free on Internet: CA ERwin Data Modeler Community Edition SQL Server

More information

Project 1. Yuji Shimojo CMIS 320. Instructor: Denton Guy-Williams

Project 1. Yuji Shimojo CMIS 320. Instructor: Denton Guy-Williams Project 1 Yuji Shimojo CMIS 320 Instructor: Denton Guy-Williams June 14, 2015 Step 1) Determine and list your entities. Then create relationship sentence pairs between those entities that are related.

More information

THE AUSTRALIAN NATIONAL UNIVERSITY Mid Semester Examination September COMP1730 / COMP6730 Programming for Scientists

THE AUSTRALIAN NATIONAL UNIVERSITY Mid Semester Examination September COMP1730 / COMP6730 Programming for Scientists THE AUSTRALIAN NATIONAL UNIVERSITY Mid Semester Examination September 2016 COMP1730 / COMP6730 Programming for Scientists Study Period: 15 minutes Time Allowed: 2 hours Permitted Materials: One A4 page

More information

Relational Databases. Charles Severance

Relational Databases. Charles Severance Relational Databases Charles Severance Unless otherwise noted, the content of this course material is licensed under a Creative Commons Attribution 3.0 License. http://creativecommons.org/licenses/by/3.0/.

More information

L12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018

L12: ER modeling 5. CS3200 Database design (sp18 s2)   2/22/2018 L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,

More information

Chapter 11 Database Concepts

Chapter 11 Database Concepts Chapter 11 Database Concepts INTRODUCTION Database is collection of interrelated data and database system is basically a computer based record keeping system. It contains the information about one particular

More information

Chapter 4. The Relational Model

Chapter 4. The Relational Model Chapter 4 The Relational Model Chapter 4 - Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations and relations in the relational model.

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus Fifth Semester B.E. IA Test-I, 2014 USN 1 P E I S PESIT Bangalore South Campus (Hosur Road, 1KM before Electronic City, Bangalore-560 100) Department of Information Science & Engineering Section: 5 ISE

More information

Database Design. Overview

Database Design. Overview Database Design Overview What is database? Why do we bother? Relational database Entity-Relationship Modeling Mapping class diagrams to tables 2 What Is Database? A tool that stores data, and lets you

More information

1. Given the name of a movie studio, find the net worth of its president.

1. Given the name of a movie studio, find the net worth of its president. 1. Given the name of a movie studio, find the net worth of its president. CREATE FUNCTION GetNetWorth( studio VARCHAR(30) ) RETURNS DECIMAL(9,3) DECLARE worth DECIMAL(9,3); SELECT networth INTO worth FROM

More information

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus CSCI-UA:0060-02 Database Design & Web Implementation Professor Evan Sandhaus sandhaus@cs.nyu.edu evan@nytimes.com Lecture #10: Open Office Base, Life on the Console, MySQL Database Design and Web Implementation

More information

Introduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 2: Relations and SQL. September 5, Lecturer: Rasmus Pagh

Introduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 2: Relations and SQL. September 5, Lecturer: Rasmus Pagh Introduction to Databases, Fall 2005 IT University of Copenhagen Lecture 2: Relations and SQL September 5, 2005 Lecturer: Rasmus Pagh Today s lecture What, exactly, is the relational data model? What are

More information

Comp2310 & Comp6310 Systems, Networks and Concurrency

Comp2310 & Comp6310 Systems, Networks and Concurrency The Australian National University Mid Semester Examination August 2018 Comp2310 & Comp6310 Systems, Networks and Concurrency Study period: 15 minutes Time allowed: 1.5 hours (after study period) Total

More information

2018/9 Guidelines for Electronic Exam Paper Submission

2018/9 Guidelines for Electronic Exam Paper Submission 2018/9 Guidelines for Electronic Exam Paper Submission August 2018 Before submitting exams Please check that exams are as accurate as possible before submission. A checklist of common errors can be found

More information

ISYS1055/1057 Database Concepts Week 7: Tute/Lab SQL Programming

ISYS1055/1057 Database Concepts Week 7: Tute/Lab SQL Programming School of Science/ Computer Science and Information Technology ISYS1055/1057 Database Concepts Week 7: Tute/Lab SQL Programming Semester 2 2018 1 Objective The objectives of this tute/lab session are:

More information

INFO 1103 Homework Project 2

INFO 1103 Homework Project 2 INFO 1103 Homework Project 2 February 15, 2019 Due March 13, 2019, at the end of the lecture period. 1 Introduction In this project, you will design and create the appropriate tables for a version of the

More information

2. (10 points) SQL. Some Quidditch League! [Exercise] Consider the Movie database with the schema in Figure 2 on page 15 for the questions below.

2. (10 points) SQL. Some Quidditch League! [Exercise] Consider the Movie database with the schema in Figure 2 on page 15 for the questions below. 2016 November 9 EECS-3421a: Test #2 w/ answers 4 of 16 2. (10 points) SQL. Some Quidditch League! [Exercise] Consider the Movie database with the schema in Figure 2 on page 15 for the questions below.

More information

THE COPPERBELT UNIVERSITY

THE COPPERBELT UNIVERSITY THE COPPERBELT UNIVERSITY SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY IT/IS DEPARTMENT MAY, 2018 SESSIONAL EXAMINATIONS CS235 DATABASE TECHNOLOGY TIME ALLOWED: THREE HOURS INSTRUCTIONS : Maximum

More information

CSE-3421: Exercises. Winter 2011 CSE-3421 Exercises p. 1 of 18

CSE-3421: Exercises. Winter 2011 CSE-3421 Exercises p. 1 of 18 Winter 2011 CSE-3421 Exercises p. 1 of 18 CSE-3421: Exercises 1. Independence Answer #1.2 (page 23) from the textbook: What is logical data independence and why is it important? A short paragraph is sufficient.

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

The University Of New South Wales. Final Exam November 2006 COMP9311. Database Systems

The University Of New South Wales. Final Exam November 2006 COMP9311. Database Systems Name: Student#: Signature: The University Of New South Wales Final Exam November 2006 COMP9311 Database Systems (1) Time allowed: 3 hours (2) Total number of marks: 110 (3) Total number of questions: 8

More information

Administration and Examination Guidelines for Holding ISEB BSD Written Examinations

Administration and Examination Guidelines for Holding ISEB BSD Written Examinations 1. New BSD Modules Administration and Examination Guidelines for Holding ISEB BSD Written Examinations Examination Guidelines Providers who are eligible to hold an examination for the first time must submit

More information

Review the syntax of. Create a new Schema CREATE TABLE INSERT SELECT UPDATE DELETE

Review the syntax of. Create a new Schema CREATE TABLE INSERT SELECT UPDATE DELETE CSI 2132 Lab2 Basic SQL Programming 1 Outline Review the syntax of Create a new Schema CREATE TABLE INSERT SELECT UPDATE DELETE Exercise: Create a new schema to work on it and set it as default Creating

More information

CONSTRAINTS AND UPDATES CHAPTER 3 (6/E) CHAPTER 5 (5/E)

CONSTRAINTS AND UPDATES CHAPTER 3 (6/E) CHAPTER 5 (5/E) 1 CONSTRAINTS AND UPDATES CHAPTER 3 (6/E) CHAPTER 5 (5/E) 3 LECTURE OUTLINE Constraints in Relational Databases Update Operations 4 SATISFYING INTEGRITY CONSTRAINTS Constraints are restrictions on the

More information

Faculty of Environment & Technology

Faculty of Environment & Technology Faculty of Environment & Technology Academic Year: 2012/13 Module Leader: Module Code: Title of Module: Prakash Chatterjee UFCE8K-15-M Data Management Examination Date: TBA Examination Start time: TBA

More information

Computer Science Applications to Cultural Heritage. Relational Databases

Computer Science Applications to Cultural Heritage. Relational Databases Computer Science Applications to Cultural Heritage Relational Databases Filippo Bergamasco (filippo.bergamasco@unive.it) http://www.dais.unive.it/~bergamasco DAIS, Ca Foscari University of Venice Academic

More information

Oracle Academy Amazing Books Part 1: Building Tables and Adding Constraints

Oracle Academy Amazing Books Part 1: Building Tables and Adding Constraints Oracle Academy Amazing Books In this section, you use the Object Browser in Oracle Application Express to: Build the base tables for the project Add foreign key constraints Be sure to have a copy of the

More information

Assignment 2. Database Implementation and Queries

Assignment 2. Database Implementation and Queries 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

More information

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 121: MIDTERM 2 Group March 12, 2014 Important notes about this examination 1. You have 40 minutes to complete this exam. 2. No electronic aides (e.g., phones or

More information

IMPLEMENTING STATISTICAL DOMAIN DATABASES IN POLAND. OPPORTUNITIES AND THREATS. Central Statistical Office in Poland

IMPLEMENTING STATISTICAL DOMAIN DATABASES IN POLAND. OPPORTUNITIES AND THREATS. Central Statistical Office in Poland IMPLEMENTING STATISTICAL DOMAIN DATABASES IN POLAND. OPPORTUNITIES AND THREATS. Central Statistical Office in Poland Agenda 2 Background Current state The goal of the SDD Architecture Technologies Data

More information

CSE 135. Applications View of a Relational Database Management System (RDBMS) SQL. Persistent data structure. High-level API for access &modification

CSE 135. Applications View of a Relational Database Management System (RDBMS) SQL. Persistent data structure. High-level API for access &modification CSE 135 SQL Applications View of a Relational Database Management System (RDBMS) Persistent data structure Large volume of data Independent from processes using the data High-level API for access &modification

More information

Name: Database Systems ( 資料庫系統 ) Midterm exam, November 15, 2006

Name: Database Systems ( 資料庫系統 ) Midterm exam, November 15, 2006 1 of 8 pages Database Systems ( 資料庫系統 ) Midterm exam, November 15, 2006 Time: 10:00 ~ 12:20 Name: Student ID: I herewith state that I understand and will adhere to the following academic integrity: I will

More information

A <column constraint> is a constraint that applies to a single column.

A <column constraint> is a constraint that applies to a single column. Lab 7 Aim: Creating Simple tables in SQL Basic Syntax for create table command is given below: CREATE TABLE ( [DEFAULT ] [], {

More information

Information Systems Engineering. Other Database Concepts

Information Systems Engineering. Other Database Concepts Information Systems Engineering Other Database Concepts 1 Views In a database it is possible to create virtual tables called views Views are not stored in the database They are defined and computed from

More information

EE221 Databases Practicals Manual

EE221 Databases Practicals Manual EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School

More information

Niklas Fors The Relational Data Model 1 / 17

Niklas Fors The Relational Data Model 1 / 17 The Relational Data Model From Entity Sets to Relations From Relationships to Relations Combining Relations Weak Entity Sets Relationships With Attributes Subclasses Niklas Fors (niklas.fors@cs.lth.se)

More information

SQLite, Firefox, and our small IMDB movie database. CS3200 Database design (sp18 s2) Version 1/17/2018

SQLite, Firefox, and our small IMDB movie database. CS3200 Database design (sp18 s2) Version 1/17/2018 SQLite, Firefox, and our small IMDB movie database CS3200 Database design (sp18 s2) Version 1/17/2018 1 Overview This document covers 2 issues: How to install SQLite manager in Firefox browser: - SQLite

More information

COMP 102: Test August, 2017

COMP 102: Test August, 2017 Family Name:.......................... Other Names:.......................... Student ID:............................ Signature.............................. COMP 102: Test 1 14 August, 2017 Instructions

More information

UNIVERSITY OF TORONTO SCARBOROUGH WINTER 2016 EXAMINATIONS. CSC B20H3 Duration 3 hours. No Aids Allowed

UNIVERSITY OF TORONTO SCARBOROUGH WINTER 2016 EXAMINATIONS. CSC B20H3 Duration 3 hours. No Aids Allowed Student Number: Last Name: First Name: UNIVERSITY OF TORONTO SCARBOROUGH WINTER 2016 EXAMINATIONS CSC B20H3 Duration 3 hours No Aids Allowed Do not turn this page until you have received the signal to

More information

High-Level Database Models. Spring 2011 Instructor: Hassan Khosravi

High-Level Database Models. Spring 2011 Instructor: Hassan Khosravi High-Level Database Models Spring 2011 Instructor: Hassan Khosravi Database Modeling and implemnation process Ideas High-Level Design Relational Database Schema Relational DBMS 4.2 The Entity/Relationship

More information

CSE 154 LECTURE 14: MULTI-TABLE SQL QUERIES (JOINS )

CSE 154 LECTURE 14: MULTI-TABLE SQL QUERIES (JOINS ) CSE 154 LECTURE 14: MULTI-TABLE SQL QUERIES (JOINS ) Exceptions for errors $db = new PDO("mysql:dbname=imdb_small", "jessica", "guinness"); $db->setattribute(pdo::attr_errmode, PDO::ERRMODE_EXCEPTION);

More information

1 (10) 2 (8) 3 (12) 4 (14) 5 (6) Total (50)

1 (10) 2 (8) 3 (12) 4 (14) 5 (6) Total (50) Student number: Signature: UNIVERSITY OF VICTORIA Faculty of Engineering Department of Computer Science CSC 370 (Database Systems) Instructor: Daniel M. German Midterm Oct 21, 2004 Duration: 60 minutes

More information

15CSL58: DATABASE MANAGEMENT LABORATORY

15CSL58: DATABASE MANAGEMENT LABORATORY 15CSL58: DATABASE MANAGEMENT LABORATORY Subject Code: 15CSL58 I.A. Marks: 20 Hours/Week: L(1)+P(2) Exam Hours: 03 Total Hours: 40 Exam Marks: 80 Course objectives: This course will enable students to Foundation

More information

MET CS 669 Database Design and Implementation for Business Final Project Page 1 of 19 TERM PROJECT _ FINAL. Online DVD Rental Business

MET CS 669 Database Design and Implementation for Business Final Project Page 1 of 19 TERM PROJECT _ FINAL. Online DVD Rental Business MET CS 669 Database Design and Implementation for Business Final Project Page 1 of 19 TERM PROJECT _ FINAL Online DVD Rental Business FARIBORZ NOROUZI SPRING 1 _ 2017 MET CS 669 Database Design and Implementation

More information

The Relational Model Constraints and SQL DDL

The Relational Model Constraints and SQL DDL The Relational Model Constraints and SQL DDL Week 2-3 Weeks 2-3 MIE253-Consens 1 Schedule Week Date Lecture Topic 1 Jan 9 Introduction to Data Management 2 Jan 16 The Relational Model 3 Jan. 23 Constraints

More information

Database Management Systems,

Database Management Systems, Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization

More information

Data Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau

Data Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau Data Management Lecture Outline 2 Part 2 Instructor: Trevor Nadeau Data Entities, Attributes, and Items Entity: Things we store information about. (i.e. persons, places, objects, events, etc.) Have relationships

More information

Project Risk Management Single Subject Certificate Level 2. Guide for candidates

Project Risk Management Single Subject Certificate Level 2. Guide for candidates Project Risk Management Single Subject Certificate Level 2 Guide for candidates Introduction. 3 Applying for an exam. 4 Completing your application form.. 4 Taking the exam 5 Exam rules 5 Exam materials...

More information

Two hours. Please note that an OMR Sheet is attached for use with Section A: full instructions for their use are given in Section A

Two hours. Please note that an OMR Sheet is attached for use with Section A: full instructions for their use are given in Section A COMP23111 Two hours Please note that an OMR Sheet is attached for use with Section A: full instructions for their use are given in Section A QUESTION PAPER MUST NOT BE REMOVED FROM THE EXAM ROOM UNIVERSITY

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

Convert E/R to Relation

Convert E/R to Relation Convert E/R to Relation 1 Exercise # 1 Construct an E/R diagram for a hospital with a set of patients and a set of physicians. Associate with each patient a log of the various tests conducted, along with

More information

Corporate Identity Guide

Corporate Identity Guide Corporate Identity Guide Prepared by Primary logo elements The primary logo is designed to be bright, colourful, clean and contemporary. It is horizontal or landscape in format. It consists of four interlocking

More information

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh Introduction to Database Design, fall 2011 IT University of Copenhagen Normalization Rasmus Pagh Based on KBL sections 6.1-6.8 (except p. 203 207m), 6.9 (until Multivalued dependencies ), 6.11, and 6.12.

More information

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline B.C.A 2017-18 DATA BASE MANAGEMENT SYSTEM Course Outline MODULE SPECIFICATION SHEET This course introduces the fundamental concepts necessary for designing, using and implementing database systems and

More information

COMP102: Introduction to Databases, 20

COMP102: Introduction to Databases, 20 COMP102: Introduction to Databases, 20 Dr Muhammad Sulaiman Khan Department of Computer Science University of Liverpool U.K. 29 March, 2011 SQL, part 7 Specific topics for today: More about constraints

More information

CSE-3421M Test #2. Queries

CSE-3421M Test #2. Queries 14 March 2013 CSE-3421M Test #2 w/ answers p. 1 of 16 CSE-3421M Test #2 Queries Family Name: Given Name: Student#: CS&E Account: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2013 Answer

More information

Data Modelling and Databases. Exercise Session 7: Integrity Constraints

Data Modelling and Databases. Exercise Session 7: Integrity Constraints Data Modelling and Databases Exercise Session 7: Integrity Constraints 1 Database Design Textual Description Complete Design ER Diagram Relational Schema Conceptual Modeling Logical Modeling Physical Modeling

More information

Exam. Question: Total Points: Score:

Exam. Question: Total Points: Score: FS 2016 Data Modelling and Databases Date: August 17, 2016 ETH Zurich Systems Group Prof. Gustavo Alonso Exam Name: Question: 1 2 3 4 5 6 7 8 9 10 11 Total Points: 11 11 10 12 9 10 11 10 15 10 8 117 Score:

More information

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016

THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016 THE UNIVERSITY OF BRITISH COLUMBIA CPSC 304: MIDTERM EXAMINATION SET A OCTOBER 2016 General Instructions 1. This is a closed book, closed notes exam. There are total 12 pages. Answer all questions in the

More information

Version: 1. Designing Microsoft SQL Server 2005 Databases

Version: 1. Designing Microsoft SQL Server 2005 Databases 2782 - Version: 1 Designing Microsoft SQL Server 2005 Databases Designing Microsoft SQL Server 2005 Databases 2782 - Version: 1 2 days Course Description: This two-day instructor-led course provides students

More information

CS2 Databases TEST 1 25 August 2003 Student Number: MARK: /35

CS2 Databases TEST 1 25 August 2003 Student Number: MARK: /35 CS2 Databases TEST 1 25 August 2003 Student Number: MARK: /35 Instructions Read the questions carefully Answers are to be written on this sheet ONLY Ink is to be used, No Pencil Marks are shown in [ ].

More information

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE Exams, Awards & Graduations NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE EXAM COVER SHEET EXAMINATION DETAILS Course Code/s: ISYS1055/1057 Course Name/s: Database Concepts Date of Exam: Sample

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

The Relational Model of Data (ii)

The Relational Model of Data (ii) ICS 321 Fall 2013 The Relational Model of Data (ii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 1 Defining Relational Schema in SQL Two aspects: Data

More information

Joins, NULL, and Aggregation

Joins, NULL, and Aggregation Joins, NULL, and Aggregation FCDB 6.3 6.4 Dr. Chris Mayfield Department of Computer Science James Madison University Jan 29, 2018 Announcements 1. Your proposal is due Friday in class Each group brings

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

Introduction to Data Management. Lecture #4 (E-R Relational Translation)

Introduction to Data Management. Lecture #4 (E-R Relational Translation) Introduction to Data Management Lecture #4 (E-R Relational Translation) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v Today

More information

SQL Simple Queries. Chapter 3.1 V3.01. Napier University

SQL Simple Queries. Chapter 3.1 V3.01. Napier University SQL Simple Queries Chapter 3.1 V3.01 Copyright @ Napier University Introduction SQL is the Structured Query Language It is used to interact with the DBMS (database management system) SQL can Create Schemas

More information

Homework 2: E/R Models and More SQL (due February 17 th, 2016, 4:00pm, in class hard-copy please)

Homework 2: E/R Models and More SQL (due February 17 th, 2016, 4:00pm, in class hard-copy please) Virginia Tech. Computer Science CS 4604 Introduction to DBMS Spring 2016, Prakash Homework 2: E/R Models and More SQL (due February 17 th, 2016, 4:00pm, in class hard-copy please) Reminders: a. Out of

More information

School of Computer Science and Software Engineering. 2nd SEMESTER EXAMINATIONS 2007 CITS3240 DATABASES

School of Computer Science and Software Engineering. 2nd SEMESTER EXAMINATIONS 2007 CITS3240 DATABASES School of Computer Science and Software Engineering 2nd SEMESTER EXAMINATIONS 2007 SURNAME: GIVEN NAMES: STUDENT NO: SIGNATURE: This paper contains: 9 pages (including the title page) Time allowed: 2 hours

More information

COMP3311 Database Systems

COMP3311 Database Systems The University Of New South Wales Final Exam June 2004 COMP3311 Database Systems Time allowed: 3 hours Total number of questions: 7 Total number of marks: 150 Textbooks, study notes, calculators, mobile

More information