INFO 1103 Homework Project 2

Size: px
Start display at page:

Download "INFO 1103 Homework Project 2"

Transcription

1 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 system used in Homework 1. Although your ERD solution for Homework 1 might be as good or better than the one in the diagram below, please use the provided one. insert some data into each table. write SQL queries against this data. Remember, this is to be individual work, unlike the labs. 1

2 Figure 1: Starting ERD 2 Details Details follow about table creation, data insertion and the required queries. 2.1 Table Creation Refer to Figure 1, which is a subset of the ERD from Project 1. (The names of attributes probably don t meet the guidelines from the textbook.) In the given design, Song Recording is an associative entity that replaces a many-to-many relationship between Album and Song. Its multivalued attribute time played gives the times (date and time of day) when the song was played by the station. Both original lyrics and modified lyrics are optional. There are two sets of lyrics because sometimes a recording artist will sing something slightly changed from the original lyrics. Don t forget to enforce that only certain rating score values are allowed. Since I have not provided metadata definitions for entities, relationships and attributes, you will have to rely on your own best guesses based on attribute 2

3 names as to the appropriate types. Use some form of whole numbers for unique identifiers. Ask me questions if you wish. Create a.sql script in the Oracle tool that contains the commands necessary to build the tables. Include all appropriate constraints for domain values, foreign keys and primary keys. Follow the steps for generating tables from ER models (in Chapter 4). 2.2 Data Creation Continue your.sql script to contain the necessary SQL INSERT commands to add several rows to each table. Some of the rows will be of your own choosing, but you need to make sure that the rows added also include the following: 1. at least 4 users. The first user has user id = 1 and has 2 past payments recorded. One of the other users has user id=2 and has 1 past payment recorded. 2. at least 6 songs. One song (with song id=1) has been recorded 3 times and one song (with song id = 2) has not been recorded at all. The rest have been recorded once each. We have original lyrics for one song that was then recorded with different lyrics. 3. at least 4 albums. None of them have the cover photo (since we don t want to get into BLOBs with images). 4. at least 8 comments from user id=1 and at least 2 comments from user id=2. At least 2 song recordings have been commented on. For one song recording, user id=1 commented, user id=2 did a comment in response, and then user id=1 commented in response to the response. At least one user has no comments. 5. Three users upvoted one comment and downvoted another comment. One of comments was upvoted by the comment s author, and (strangely) another comment was downvoted by its author. 6. at least 4 ratings. Two users are responsible for all the ratings. In at least one case, a user has rated a recording but not commented on it. In at least one case, a user has commented on a recording but not rated it. And in at least one case, a user has both commented on and rated a song recording. The song with song id=1 has had all its recordings rated by user id=1, who loved one of the recordings and hated the other two recordings. 7. Attempt to insert a rating whose score is outside of the allowed range. The attempt should fail. 8. Two recordings have been played 3 times each and another has been played 2 times. Use non-null dates when recording this information. 3

4 2.3 Queries Continue your.sql script with some SELECT and CREATE VIEW commands. Some of the queries can be answered from a single table, although many of them require joining tables. Don t take advantage of the fact that you know what is in each of your tables. The grader should be free to add additional rows into your tables, if he wishes. Give SQL statements for the following. The first 11 are worth 2 points each and the remaining 6 are worth 3 points each. 1. Determine the number of users. 2. For each song, give its title and id, as well as the album name and artist of each recording of it. Sort the result by song id. 3. For each song, give its title and id, as well as the album name and artist and average rating of each recording of it. 4. For each user, determine the total value of the past payments they have made. 5. For each different song title, give the number of distinct artists who have recorded it. If two different songs have the same title, their results should be combined. 6. For each album (by id and name), determine the total number of comments about recordings on it. 7. For song id 1 and user id=1, list the album names where they rated at a recording of the song, and show the rating they gave. 8. For each album (by id and name), give the number of recordings on it and the average rating for the recordings on it. Your result should be sorted by album and ranking. 9. Give the name and id of each user and also the number of comments made by the user. Make sure that users who have never made a comment are listed as having 0 comments. 10. List the songs, by title, where some recording has different (non-null) lyrics from the song s original lyrics. 11. For each recording (give album name and song title) that has been played at least 2 times, give the number of times it has been played and the date when it was most recently played. 12. Show the comments (id and words) and their authors names when the person who wrote the comment also voted on the comment. Show the direction of each such vote. 4

5 13. (a) Show the comments (ids and words) that are responses to original (non-response) comments. You probably will want to do a self join. (b) Repeat, except you want comments that are responses to responses to original comments. 14. Show the recordings (by album name and song title) that nobody has rated. The minus or except operator is likely to be helpful. 15. Create (and show) two views (a) One gives, for each user id, the highest rating the user has given. (b) One gives, for each rating given, the user id, song title and album name that goes with it. 16. Using the views from the previous question, provide a list, sorted by user name, showing each user s name and the recordings (by song title and album name) that have received that user s top rating (also show the rating received). Users who have submitted no ratings should not be listed. 17. For each user, show their most highly rated album (taking the average of the ratings they have given recordings on the album). In the event of ties, you may either list several albums or just choose one of them. Users who have never rated anything should not be shown. The queries are generally listed in order of my perception of their difficulty. My perception might not match your reality; if one query is stumping you, go on and try the next. However, your script should have the queries in the given order. Please use SQL comments (eg -- query 3) in the script to indicate which query you are giving. 3 Grading Submit your.sql script that creates the tables, populates them, and then answers the queries. It should be possible for whoever grades the assignment to run your script in Oracle SQL Developer and get results, without errors. Submit this on paper and in D2L. The table creations are worth 40%, the insert commands are worth 20%, and the queries (and view creation) are worth 40%. Also, submit (paper and D2L) the transcript of what happens if you play the script (i.e., the contents of the output window in Oracle SQL Developer). 5

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL Creating Views with SQL... 1 1. Query Construction in SQL View:... 2 2. Use the QBE:... 5 3. Practice (use the QBE):... 6

More information

Carnegie Mellon University Department of Computer Science /615 - Database Applications C. Faloutsos & A. Pavlo, Spring 2014.

Carnegie Mellon University Department of Computer Science /615 - Database Applications C. Faloutsos & A. Pavlo, Spring 2014. Carnegie Mellon University Department of Computer Science 15-415/615 - Database Applications C. Faloutsos & A. Pavlo, Spring 2014 Homework 1 IMPORTANT Plagiarism: Homework may be discussed with other students,

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

Database Design. A Bottom-Up Approach

Database Design. A Bottom-Up Approach Database Design A Bottom-Up Approach Reality Check Why do you need a database? What is the primary use of your database? Fast data entry Fast queries Summary data Who is responsible for the content? Who

More information

CS 200. Lecture 06. Database Introduction. Database Introduction. CS 200 Winter 2018

CS 200. Lecture 06. Database Introduction. Database Introduction. CS 200 Winter 2018 CS 200 Lecture 06 1 Miscellaneous Notes Abbreviations aka also known as DBMS DataBase Management System mutatis mutantis with the necessary changes having been made 2 Please read and highlight BEFORE lab

More information

Module 9: Managing Schema Objects

Module 9: Managing Schema Objects Module 9: Managing Schema Objects Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing data integrity using constraints Implementing

More information

CS 200. Lecture 05. Database Introduction. Database Introduction. CS 200 Spring Monday, June 3, 2013

CS 200. Lecture 05. Database Introduction. Database Introduction. CS 200 Spring Monday, June 3, 2013 CS 200 Lecture 05 1 Miscellaneous Notes Abbreviations aka also known as DBMS DataBase Management System mutatis mutantis with the necessary changes having been made Warning! FileMaker databases often become

More information

Database Systems. phpmyadmin Tutorial

Database Systems. phpmyadmin Tutorial phpmyadmin Tutorial Please begin by logging into your Student Webspace. You will access the Student Webspace by logging into the Campus Common site. Go to the bottom of the page and click on the Go button

More information

T-SQL Training: T-SQL for SQL Server for Developers

T-SQL Training: T-SQL for SQL Server for Developers Duration: 3 days T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL

More information

CS Reading Packet: "Database design, part 1"

CS Reading Packet: Database design, part 1 CS 325 - Reading Packet: "Database design, part 1" p. 1 CS 325 - Reading Packet: "Database design, part 1" Sources: * Kroenke, "Database Processing: Fundamentals, Design, and Implementation", 7th edition,

More information

CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points. Premise

CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points. Premise CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points Files to submit: 1. HW9b.py 2. any image files (.gif ) used in database This is an INDIVIDUAL assignment!

More information

Data about data is database Select correct option: True False Partially True None of the Above

Data about data is database Select correct option: True False Partially True None of the Above Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another

More information

CS 200. Lecture 09 FileMaker vs SQL & Reports. FileMaker vs SQL + Reports. CS 200 Spring 2018

CS 200. Lecture 09 FileMaker vs SQL & Reports. FileMaker vs SQL + Reports. CS 200 Spring 2018 CS 200 Lecture 09 FileMaker vs SQL & Reports 1 Miscellaneous Notes Abbreviations aka also known as DBMS DataBase Management System mutatis mutantis with the necessary changes having been made 2 Please

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

In This Lecture. Yet More SQL SELECT ORDER BY. SQL SELECT Overview. ORDER BY Example. ORDER BY Example. Yet more SQL

In This Lecture. Yet More SQL SELECT ORDER BY. SQL SELECT Overview. ORDER BY Example. ORDER BY Example. Yet more SQL In This Lecture Yet More SQL Database Systems Lecture 9 Natasha Alechina Yet more SQL ORDER BY Aggregate functions and HAVING etc. For more information Connoly and Begg Chapter 5 Ullman and Widom Chapter

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

CS Final Exam Review Suggestions

CS Final Exam Review Suggestions CS 325 - Final Exam Review Suggestions p. 1 last modified: 2017-12-06 CS 325 - Final Exam Review Suggestions Based on suggestions from Prof. Deb Pires from UCLA: Because of the research-supported learning

More information

Advanced SQL. Chapter 8 finally!

Advanced SQL. Chapter 8 finally! Advanced SQL Chapter 8 finally! Views (okay so this is Ch 7) We've been saving SQL queries by saving text files Isn't there a better way? Views! basically saved SELECT queries Syntax CREATE VIEW viewname

More information

MET CS 669 Database Design and Implementation for Business Term Project: Online DVD Rental Business

MET CS 669 Database Design and Implementation for Business Term Project: Online DVD Rental Business MET CS 669 Database Design and Implementation for Business Term Project: Online DVD Rental Business Objective Create an initial design for the database schema for an online DVD rental business that is

More information

PART 1 - E-R Modelling - THIS PART DOES NOT USE SQL*Plus or ORACLE AT ALL!

PART 1 - E-R Modelling - THIS PART DOES NOT USE SQL*Plus or ORACLE AT ALL! CIS 315 - Homework #4 p. 1 CIS 315 - Database Design & Implementation - Homework Assignment #4 [corrected #2-19 on 10-17-09] DUE: 2:00 pm, Tuesday, October 20th Purpose: more practice with database modeling,

More information

Chapter 5. Database Processing

Chapter 5. Database Processing Chapter 5 Database Processing No, Drew, You Don t Know Anything About Creating Queries." AllRoad Parts operational database used to determine which parts to consider for 3D printing. If Addison and Drew

More information

MASTER-DETAIL FORMS. In this Chapter, you will learn about: Master-Detail Forms Page 108

MASTER-DETAIL FORMS. In this Chapter, you will learn about: Master-Detail Forms Page 108 CHAPTER 4 MASTER-DETAIL FORMS CHAPTER OBJECTIVES In this Chapter, you will learn about: Master-Detail Forms Page 108 In the previous Chapters, you created and worked with forms that had only one base-table

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 3, 2014 How to submit CS 325 - Homework 4 Each time you wish to submit, within the directory 325hw4 on nrs-projects.humboldt.edu (and at the

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

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

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 3 Relational Model Hello everyone, we have been looking into

More information

Exercise Sheet 8: SQL 1 (until Thursday, ) (45 Points)

Exercise Sheet 8: SQL 1 (until Thursday, ) (45 Points) Relational Databases 1 Exercise Sheet 8: SQL 1 (until Thursday, 14.12.2017) (45 Points) Please note: you need 50% of all exercise points to receive the Studienleistung for this lecture. In order to pass

More information

BIS1523 Homework Assignments 2.1

BIS1523 Homework Assignments 2.1 Homework Assignments 2.1 Folder: hw01 Assignment #1, Bio Overview: Create a web page with some information (real or made up) about yourself. Your web page should include the following: A header, with your

More information

CS Homework 4 p. 1. CS Homework 4

CS Homework 4 p. 1. CS Homework 4 CS 328 - Homework 4 p. 1 Deadline Due by 11:59 pm on Sunday, February 19, 2017 Purpose CS 328 - Homework 4 To practice some more with PL/SQL stored subroutines and "strict"-style HTML5 (now also including

More information

This handbook contains directions on using tools and resources in WebAccess at CSM.

This handbook contains directions on using tools and resources in WebAccess at CSM. WebAccess Handbook This handbook contains directions on using tools and resources in WebAccess at CSM. Contents Logging in to WebAccess... 2 Setting up your Shell... 3 Docking Blocks or Menus... 3 Course

More information

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 5 Structured Query Language Hello and greetings. In the ongoing

More information

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1 ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1 Data Modeling and the Entity-Relationship (ER) Diagram Ray Lockwood Points: The Entity-Relationship (ER) Diagram is seen by various

More information

CS Homework 5 p. 1. CS Homework 5

CS Homework 5 p. 1. CS Homework 5 CS 325 - Homework 5 p. 1 Deadlines: CS 325 - Homework 5 Problem 1 -- answering reading questions on Moodle for Reading Packet 4 -- had to be completed by 4:45 pm on Thursday, September 24. The remaining

More information

Want the *GUIDED* tour?

Want the *GUIDED* tour? Want the *GUIDED* tour? 12 x12 layouts are great, and 8.5 x11 layouts are great too - BUT what if you want to great something that you can print (or have printed) right to standard photo paper? Shouldn

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 11: Connection to Databases Lecture Contents 2 What is a database? Relational databases Cases study: A Books Database Querying

More information

1.204 Computer Algorithms in Systems Engineering Spring 2010 Problem Set 2: Municipal Database Due: 12 noon, Wednesday, February 24, 2010

1.204 Computer Algorithms in Systems Engineering Spring 2010 Problem Set 2: Municipal Database Due: 12 noon, Wednesday, February 24, 2010 1.204 Computer Algorithms in Systems Engineering Spring 2010 Problem Set 2: Municipal Database Due: 12 noon, Wednesday, February 24, 2010 1. Problem statement You are given a realistic, though fictitious,

More information

CS352 - DATABASE SYSTEMS. To give you experience with developing a database to model a real domain

CS352 - DATABASE SYSTEMS. To give you experience with developing a database to model a real domain CS352 - DATABASE SYSTEMS Database Design Project - Various parts due as shown in the syllabus Purposes: To give you experience with developing a database to model a real domain Requirements At your option,

More information

WHAT IS A DATABASE? There are at least six commonly known database types: flat, hierarchical, network, relational, dimensional, and object.

WHAT IS A DATABASE? There are at least six commonly known database types: flat, hierarchical, network, relational, dimensional, and object. 1 WHAT IS A DATABASE? A database is any organized collection of data that fulfills some purpose. As weather researchers, you will often have to access and evaluate large amounts of weather data, and this

More information

HKALE 2012 ASL Computer Applications Paper 2 Disscussion forum system

HKALE 2012 ASL Computer Applications Paper 2 Disscussion forum system HKALE 2012 ASL Computer Applications Paper 2 Disscussion forum system Yan Chai Hospital Lim Por Yen Secondary School 7A(3) Chu Chun Kit CONTENT PAGE 1. Content Page P.1 2. Schedule P.2 3. Objective P.3-4

More information

[18 marks] Consider the following schema for tracking customers ratings of books for a bookstore website.

[18 marks] Consider the following schema for tracking customers ratings of books for a bookstore website. Question 1. [18 marks] Consider the following schema for tracking customers ratings of books for a bookstore website. Books(ISBN, title, author, year, length). ISBN is a string used internationally for

More information

CS 3030 Scripting Languages Syllabus

CS 3030 Scripting Languages Syllabus General Information CS 3030 Scripting Languages Semester: Fall 2017 Textbook: Location: Instructor Info: None. We will use freely available resources from the Internet. Online Ted Cowan tedcowan@weber.edu

More information

Writing Queries Using Microsoft SQL Server 2008 Transact- SQL

Writing Queries Using Microsoft SQL Server 2008 Transact- SQL Writing Queries Using Microsoft SQL Server 2008 Transact- SQL Course 2778-08; 3 Days, Instructor-led Course Description This 3-day instructor led course provides students with the technical skills required

More information

Querying Data with Transact SQL

Querying Data with Transact SQL Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including

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

CS Homework 3. Deadline: How to submit: Purpose: Additional notes: Problem 1. CS Homework 3 p :59 pm on Thursday, October 3, 2013

CS Homework 3. Deadline: How to submit: Purpose: Additional notes: Problem 1. CS Homework 3 p :59 pm on Thursday, October 3, 2013 CS 325 - Homework 3 p. 1 Deadline: 11:59 pm on Thursday, October 3, 2013 How to submit: CS 325 - Homework 3 When you are ready, within the directory 325hw3 on nrs-projects.humboldt.edu (and at the nrsprojects

More information

Lesson 13 Transcript: User-Defined Functions

Lesson 13 Transcript: User-Defined Functions Lesson 13 Transcript: User-Defined Functions Slide 1: Cover Welcome to Lesson 13 of DB2 ON CAMPUS LECTURE SERIES. Today, we are going to talk about User-defined Functions. My name is Raul Chong, and I'm

More information

CISC 7610 Lecture 4 Approaches to multimedia databases

CISC 7610 Lecture 4 Approaches to multimedia databases CISC 7610 Lecture 4 Approaches to multimedia databases Topics: Metadata Loose vs tight coupling of data and metadata Object (oriented) databases Graph databases Object-relational mapping Homework 1 Entity-relationship

More information

Effective Keyword Search in Relational Databases for Lyrics

Effective Keyword Search in Relational Databases for Lyrics Effective Keyword Search in Relational Databases for Lyrics Navin Kumar Trivedi Assist. Professor, Department of Computer Science & Information Technology Divya Singh B.Tech (CSe) Scholar Pooja Pandey

More information

The Relational Model. Week 2

The Relational Model. Week 2 The Relational Model Week 2 1 Relations A relation is a more concrete construction, of something we have seen before, the ER diagram. name S.S.N students street city A relation is (just!) a table! We will

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

G64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL)

G64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL) G64DBS Database Systems Lecture 7 SQL SELECT Tim Brailsford Different Sections of SQL (DDL) The Data Definition Language (DDL): CREATE TABLE - creates a new database table ALTER TABLE - alters (changes)

More information

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL. Overview

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL. Overview Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Overview The course has been extended by one day in response to delegate feedback. This extra day will allow for timely completion of all the

More information

CS157a Fall 2018 Sec3 Home Page/Syllabus

CS157a Fall 2018 Sec3 Home Page/Syllabus CS157a Fall 2018 Sec3 Home Page/Syllabus Introduction to Database Management Systems Instructor: Chris Pollett Office: MH 214 Phone Number: (408) 924 5145 Email: chris@pollett.org Office Hours: MW 4:30-5:45pm

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database. Expert Oracle University instructors will

More information

Transaction Isolation Level in ODI

Transaction Isolation Level in ODI In this post I will be explaining the behaviour in Oracle 11g and regarding the ODI versions, there is not much difference between ODI 11g and 12c. If you see the drop down in 11g (11.1.1.9) procedure,

More information

CS50 Quiz Review. November 13, 2017

CS50 Quiz Review. November 13, 2017 CS50 Quiz Review November 13, 2017 Info http://docs.cs50.net/2017/fall/quiz/about.html 48-hour window in which to take the quiz. You should require much less than that; expect an appropriately-scaled down

More information

CSCI 403: Databases 13 - Functional Dependencies and Normalization

CSCI 403: Databases 13 - Functional Dependencies and Normalization CSCI 403: Databases 13 - Functional Dependencies and Normalization Introduction The point of this lecture material is to discuss some objective measures of the goodness of a database schema. The method

More information

Homework 4: Query Processing, Query Optimization (due March 21 st, 2016, 4:00pm, in class hard-copy please)

Homework 4: Query Processing, Query Optimization (due March 21 st, 2016, 4:00pm, in class hard-copy please) Virginia Tech. Computer Science CS 4604 Introduction to DBMS Spring 2016, Prakash Homework 4: Query Processing, Query Optimization (due March 21 st, 2016, 4:00pm, in class hard-copy please) Reminders:

More information

CS Homework 10

CS Homework 10 CS 325 - Homework 10 p. 1 Deadline: CS 325 - Homework 10 Problem 1 -- answering reading questions on Canvas for DB Reading Packet 9 -- must be completed by 10:45 am on Tuesday, November 14. Problem 2 --

More information

CS Homework 5 p. 1. CS Homework 5

CS Homework 5 p. 1. CS Homework 5 CS 325 - Homework 5 p. 1 Deadline CS 325 - Homework 5 Problem 1 -- answering reading questions on Canvas for DB Reading Packet 5 -- must be completed by 10:45 am on Tuesday, September 26. The remaining

More information

Spring CS Homework 2 p. 1. CS Homework 2. To practice with PL/SQL stored procedures and functions, and possibly exception handling.

Spring CS Homework 2 p. 1. CS Homework 2. To practice with PL/SQL stored procedures and functions, and possibly exception handling. Spring 2018 - CS 328 - Homework 2 p. 1 Deadline Due by 11:59 pm on Sunday, February 4, 2018. Purpose CS 328 - Homework 2 To practice with PL/SQL stored procedures and functions, and possibly exception

More information

Transactions Lab I. Tom Kelliher, CS 317

Transactions Lab I. Tom Kelliher, CS 317 Transactions Lab I Tom Kelliher, CS 317 The purpose of this lab is for you to gain some understanding of how transactions work, see for yourselves how the various SQL isolation levels correspond to the

More information

INFSCI 2710 Database Management Solution to Final Exam

INFSCI 2710 Database Management Solution to Final Exam Dr. Stefan Brass May 8, 2000 School of Information Sciences University of Pittsburgh INFSCI 2710 Database Management Solution to Final Exam Statistics The average points reached (out of 42) were 32 (77%),

More information

CHAPTER 2: DATA MODELS

CHAPTER 2: DATA MODELS CHAPTER 2: DATA MODELS 1. A data model is usually graphical. PTS: 1 DIF: Difficulty: Easy REF: p.36 2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the

More information

Higher National Unit specification: general information. Relational Database Management Systems

Higher National Unit specification: general information. Relational Database Management Systems Higher National Unit specification: general information Unit code: H16W 35 Superclass: CB Publication date: March 2012 Source: Scottish Qualifications Authority Version: 01 Unit purpose This Unit is designed

More information

Database Management

Database Management Database Management - 2013 Model Answers 1. a. A cyclic relationship type (also called recursive) is a relationship type between two occurrences of the same entity type. With each entity type in a cyclic

More information

COURSE OUTLINE. IST 253 Database Concept 3 Course Number Course Title Credits

COURSE OUTLINE. IST 253 Database Concept 3 Course Number Course Title Credits COURSE OUTLINE IST 253 Database Concept 3 Course Number Course Title Credits 2 2 N/A N/A 15 Class or Laboratory Clinical or Studio Practicum, Course Length Lecture Work Hours Hours Co-op, Internship (15

More information

Math 2280: Introduction to Differential Equations- Syllabus

Math 2280: Introduction to Differential Equations- Syllabus Math 2280: Introduction to Differential Equations- Syllabus University of Utah Spring 2013 1 Basic Information Instructor - Patrick Dylan Zwick Email - zwick@math.utah.edu Phone - 801-651-8768 Office Hour

More information

CSC 4710 / CSC 6710 Database Systems. Rao Casturi

CSC 4710 / CSC 6710 Database Systems. Rao Casturi CSC 4710 / CSC 6710 Database Systems Rao Casturi Introduction About me Education B.E (Electronics & Communications) M.S (Computer Science) Working towards Ph.D. Professional work experience 25+ Years in

More information

Anchor Modeling A Technique for Information under Evolution

Anchor Modeling A Technique for Information under Evolution Anchor Modeling A Technique for Information under Evolution Lars Rönnbäck @Ordina 6/12, 2011 Anchor Modeling... Pitches has a solid theoretical foundation. is based on well known principles. shortens implementation

More information

Entity Attribute STUDENT TABLE tuples single domain

Entity Attribute STUDENT TABLE tuples single domain Objectives Computer Science 202 Database Systems: Relational Database Model To learn the basic relational database components and concepts. To become familiar with the relational table's components and

More information

Importing source database objects from a database

Importing source database objects from a database Importing source database objects from a database We are now at the point where we can finally import our source database objects, source database objects. We ll walk through the process of importing from

More information

TDA357/DIT620 Databases lab assignment

TDA357/DIT620 Databases lab assignment TDA357/DIT620 Databases lab assignment Last updated: February 27, 2017 Contents 1 Introduction 2 1.1 Purpose......................................... 2 1.2 Structure........................................

More information

RELATIONAL ALGEBRA II. CS121: Relational Databases Fall 2017 Lecture 3

RELATIONAL ALGEBRA II. CS121: Relational Databases Fall 2017 Lecture 3 RELATIONAL ALGEBRA II CS121: Relational Databases Fall 2017 Lecture 3 Last Lecture 2 Query languages provide support for retrieving information from a database Introduced the relational algebra A procedural

More information

CS Homework 7 p. 1. CS Homework 7. Problem 1 - START THIS A.S.A.P. (in case there are PROBLEMS...)

CS Homework 7 p. 1. CS Homework 7. Problem 1 - START THIS A.S.A.P. (in case there are PROBLEMS...) CS 328 - Homework 7 p. 1 Deadline Due by 11:59 pm on Sunday, March 27, 2016 How to submit CS 328 - Homework 7 Submit your files for this homework using ~st10/328submit on nrs-projects, with a hw number

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

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

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 #16: JOIN, SELECT, UPDATE DELETE Database Design and Web Implementation Database

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

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 5: Relational Algebra Ian Stark School of Informatics The University of Edinburgh Tuesday 31 January 2017 Semester 2 Week 3 https://blog.inf.ed.ac.uk/da17 Tutorial

More information

CSC 380/530 Advanced Database Take-Home Midterm Exam (document version 1.0) SQL and PL/SQL

CSC 380/530 Advanced Database Take-Home Midterm Exam (document version 1.0) SQL and PL/SQL CSC 380/530 Advanced Database Take-Home Midterm Exam (document version 1.0) SQL and PL/SQL The take-home midterm exam is due by 11:59:59 PM on Thursday, November 5, 2015 and must be submitted electronically.

More information

ITEC 101 LAB 9 USING A DATABASE: Tables and Queries

ITEC 101 LAB 9 USING A DATABASE: Tables and Queries ITEC 101 LAB 9 USING A DATABASE: Tables and Queries In the last lab, we saw how a spreadsheet can be useful for organized storage of information. Some kinds of information, however, have more structure

More information

CS 161 Computer Security

CS 161 Computer Security Nick Weaver Fall 2018 CS 161 Computer Security Homework 3 Due: Friday, 19 October 2018, at 11:59pm Instructions. This homework is due Friday, 19 October 2018, at 11:59pm. No late homeworks will be accepted

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

Adding content to your Blackboard 9.1 class

Adding content to your Blackboard 9.1 class Adding content to your Blackboard 9.1 class There are quite a few options listed when you click the Build Content button in your class, but you ll probably only use a couple of them most of the time. Note

More information

MSQuery-DM ad hoc reporting from SQL Server 9/25/2013

MSQuery-DM ad hoc reporting from SQL Server 9/25/2013 The ad hoc report feature in the Digital Measures web application has limited options for selecting the rows and columns to be reported. An alternative is to use MSQuery, or some other desktop tool such

More information

CS352 - DATABASE SYSTEMS

CS352 - DATABASE SYSTEMS CS352 - DATABASE SYSTEMS Database Design Project - Various parts due as shown in the syllabus Purposes: To give you experience with developing a database to model a real domain At your option, this project

More information

modern database systems lecture 5 : top-k retrieval

modern database systems lecture 5 : top-k retrieval modern database systems lecture 5 : top-k retrieval Aristides Gionis Michael Mathioudakis spring 2016 announcements problem session on Monday, March 7, 2-4pm, at T2 solutions of the problems in homework

More information

Copyright 2017 by Kevin de Wit

Copyright 2017 by Kevin de Wit Copyright 2017 by Kevin de Wit All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic

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

Learning Alliance Corporation, Inc. For more info: go to

Learning Alliance Corporation, Inc. For more info: go to Writing Queries Using Microsoft SQL Server Transact-SQL Length: 3 Day(s) Language(s): English Audience(s): IT Professionals Level: 200 Technology: Microsoft SQL Server Type: Course Delivery Method: Instructor-led

More information

CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points

CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points Files to submit: 1. HW4.py This is an INDIVIDUAL assignment! Collaboration at a

More information

CSE 341, Autumn 2005, Assignment 3 ML - MiniML Interpreter

CSE 341, Autumn 2005, Assignment 3 ML - MiniML Interpreter Due: Thurs October 27, 10:00pm CSE 341, Autumn 2005, Assignment 3 ML - MiniML Interpreter Note: This is a much longer assignment than anything we ve seen up until now. You are given two weeks to complete

More information

3. Getting data out: database queries. Querying

3. Getting data out: database queries. Querying 3. Getting data out: database queries Querying... 1 Queries and use cases... 2 The GCUTours database tables... 3 Project operations... 6 Select operations... 8 Date formats in queries... 11 Aggregates...

More information

Schema And Draw The Dependency Diagram

Schema And Draw The Dependency Diagram Given That Information Write The Relational Schema And Draw The Dependency Diagram below, write the relational schema, draw its dependency diagram, and identify all You can assume that any given product

More information

Tutorial 8: Practice Exam Questions

Tutorial 8: Practice Exam Questions Tutorial 8: Practice Exam Questions Informatics 1 Data & Analysis Notes on Solutions Week 10, Semester 2, 2017/18 Read this first: it is not the same as the other tutorials Folloing the strike by university

More information

DATABASE MANAGEMENT SYSTEM

DATABASE MANAGEMENT SYSTEM DATABASE MANAGEMENT SYSTEM For COMPUTER SCIENCE DATABASE MANAGEMENT. SYSTEM SYLLABUS ER model. Relational model: relational algebra, tuple calculus, SQL. Integrity constraints, normal forms. File organization,

More information

CIS Homework 3

CIS Homework 3 CIS 318 - Homework 3 p. 1 Deadline: Due by 11:59 pm on Wednesday, February 15 How to submit: CIS 318 - Homework 3 Submit your files for this homework using ~st10/318submit on nrs-projects, with a homework

More information

MovieRec - CS 410 Project Report

MovieRec - CS 410 Project Report MovieRec - CS 410 Project Report Team : Pattanee Chutipongpattanakul - chutipo2 Swapnil Shah - sshah219 Abstract MovieRec is a unique movie search engine that allows users to search for any type of the

More information

CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 13

CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 13 CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 13 DUE: Run the following queries in Oracle Application Express. Paste a copy of each query Into this word document below the questions or notepad.txt

More information