2 Pages

Asst1

Course: CS 354, Fall 2009
School: Sveriges...
Rating:
 
 
 
 
 

Word Count: 770

Document Preview

354 CMPT - Database Systems I Assignment 1 Due date: June 3, 2008 12 marks, 6% of grade J.P. Delgrande May 20, 2008 Important Note: Students must work individually on this, and other CMPT 354, assignments. You may not discuss the specific questions in this assignment, nor their solutions with any other student. You may not provide or use any solution, in whole or in part, to or by another student. You are...

Register Now

Unformatted Document Excerpt

Coursehero >> Other International >> Sveriges lantbruksuniversitet >> CS 354

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
354 CMPT - Database Systems I Assignment 1 Due date: June 3, 2008 12 marks, 6% of grade J.P. Delgrande May 20, 2008 Important Note: Students must work individually on this, and other CMPT 354, assignments. You may not discuss the specific questions in this assignment, nor their solutions with any other student. You may not provide or use any solution, in whole or in part, to or by another student. You are encouraged to discuss the general concepts involved in the questions in the context of completely different problems. If you are in doubt as to what constitutes acceptable discussion, please ask! 1. (4 marks) Consider the following relational database schema for a company. There are 5 schemas: employee, department, dept location, project and works on; these schemas store the following information, and contain the following attributes: Employees have a social insurance number, name and address, along with salary, supervisor, and department. employee(sin, emp name, emp address, salary, supervisor sin, dept#) Departments have a number, name, location, and manager: department(d num, d name, d location, manager sin) Projects have a name, number, location, and department that they're associated with: project(proj name, proj number, proj location, d number) Employees work on projects for a given number of hours per week: works on(emp sin, project number, hours) Note that some of the attributes have the same domain, but different names. sin, supervisor sin, emp sin all refer to Social Insurance Numbers. dept# and d num refer to department numbers. Specify the following queries using relational algebra. (a) Find the names of employees in department 5 who work more than 10 hours/week on Project X. (b) Find the names of employees who are directly supervised by "Yi Jin". 1 (c) (d) (e) (f) Find the names of employees who earn more than their supervisor. Find the names of employees who work on every project. Find the names of employees who do not work on any project. Find the names and addresses of employees who work on at least one project located in Vancouver but whose department is not Vancouver. (g) Find the number of projects that "Beth Sproule" is working on. 2. (4 marks) You run a small theatre that puts on a series of plays over the year. The theatre has a single auditorium. You are interested in constructing relational a database to manage ticket sales and seating for customers. The following data is to be stored. A play will have a title, director, and perhaps other information. Associated with a play will be a set of performances, where each performance has associated with it a date and time. There is a set of orders of tickets for performances. The customer name, number of tickets (seats), ticket type and cost will need to be stored. Thus a customer will place an order for a certain number of tickets for a particular performance. Associated with each order entry will be a set of seat numbers reserved for that order. A ticket type will indicate a class of tickets and the cost of a seat. Examples might include front (or middle or back) orchestra, front balcony, etc. (a) Construct an E-R diagram for the booking information, stating any assumptions you have made regarding the real world being modeled by your design. Other attributes can be introduced where you think necessary (for example to provide a primary key), but give (brief) reasons for any added information. (b) Give the relational schemas corresponding to your ER diagram. 3. (4 marks) The editor of the Journal of Database Systems Research wants you to develop a database for handling manuscripts submitted to the journal. The journal publishes research papers in database systems. Authors submit papers to the journal. Submitted paper...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UMass (Amherst) - LING - 620
Seth Cable Spring 2009Formal Semantics Ling 620 De Re vs. De Dicto, Part 1: The Classic QR Approach, and its Problems 11. (1)The Basic Facts The Classic Observation Sentences like the following can be understood in (at least) two very different
UMass (Amherst) - LING - 620
Seth Cable Spring 2009Formal Semantics Ling620 A Question on the Conversational BackgroundThis assignment is completely open-ended. There are absolutely no predetermined right or wrong answers. The task put before you is simply to reflect on an i
Colorado - CVEN - 6833
Katrina Grantz CVEN 6833 Hydroclimatology 19 March 2004The North American Monsoon: A Review of the LiteratureThe North American Monsoon (also known as the Southwest, Arizona, or Mexican Monsoon) is the large-scale atmospheric circulation system th
Colorado - CVEN - 5333
Physical Hydrology CVEN 5333 Home work - I Due September, 11th, 20031.a. Obtain the daily streamflow data for Boulder Creek, Near Orodell, CO, from the world wide web [USGS site http:/water.usgs.gov/. Follow the link to surface water]. USGS site nu
Allan Hancock College - COMP - 3062
1ONTOS DB 3.1An objectoriented DBMS that is integrated in an extended C+ programming environment. Refer to the handout of Introduction to ONTOS DB 3.1. Refer to chapter 24: Ontos: An Integrated Object System.What is ONTOS DB (pp.217) A mul
Colorado - ATOC - 4720
ATOC 4720: Introduction to Atmospheric Physics and Dynamics Spring 2007 Course Goals In this class we will quantitatively explore physical processes occurring in the atmosphere, with an emphasis on those processes that give rise to atmospheric circul
Colorado - ATOC - 5060
Project 2Presentations: 7 minutes (5 minutes + 2 for questions) Notice 7 minutes times 9 people is about 75 minutes of class time Powerpoint should be about 3 slides:1. Intro, description, hypothesis, 2. One (many two) key results/figures, 3. Su
Colorado - ATOC - 3600
The climate state and structure of the atmosphereKey points for today Way to define, and quantify, state of the climate system Define variations in climate Variations from place to place Variations from time to timeA look at the atmospheric c
Colorado - ATOC - 3600
ATOC 3600 Final exam study guide The exam will be mostly descriptive answers that require reasoning and understanding the physical processes rather than memorization. In addition to reading the textbook, you should revise lecture notes, problem sets,
Colorado - ATOC - 1060
Name: Student ID:ATOC 1060: Our changing environmentHomework assignment 4 Ocean temperature and hurricanes Due: 5 pm, Friday 6 March 2009 You may work on this assignment in groups, but what you hand in should be you own work. You can hand in this
UMass (Amherst) - MIE - 340
UMass (Amherst) - MIE - 340
Idaho State - B - 442
Pollination by Animals: The Plant PerspectivePlant-Animal Interactions Lecture 10 30 March 2009Flowering Plant Fertilization Angiosperms most diverse and ecologically successful group of plants - Why? Non-seed plants (ferns, mosses, horsetails)
BYU - DEG - 128
0 -> -o1 -> /raid/htdocs/deg/demos/live_demo/demo/default_data/defaultontsrc/obituaries.osml2 -> -p3 -> /raid/htdocs/deg/demos/live_demo/user_data/deg128_187_170_126/obit11/4 -> -n5 -> 10006 -> -r7 -> /raid/htdocs/deg/demos/live_demo/ontology/
UMass (Amherst) - ECE - 665
DivideandConquer72942479 7227 77 22 9449 99 44DivideandConquer1OutlineandReadingDivideandconquerparadigm(5.2) RecurrenceEquations(5.2.1) Mergesort(4.1.1) Genericmergingandsetoperations(4.2.1) Quicksort(4.3) Analysisofquicksort(4.3.1) Inplaceq
Idaho State - MATH - 465
MATH 465-01: HOMEWORK PROBLEMS ON FEBRUARY 24, 2009 Exercises 4.2 on Page 92 1. Solve the diusion problem ut = kuxx in 0 < x < l, with the mixed boundary conditions u(0, t) = ux (l, t) = 0. [ Hints: Consider the cases < 0, = 0, and > 0. The soluti
Allan Hancock College - COMP - 3110
COMP3110 and COMP6311 State Modeling Workshop ExerciseMarch 20091 BackgroundIn the last workshop we used Data Flow Diagrams to learn about and describe how data entities involved in Air Traffic Control are created and processed during a flight. T
Colorado - CSCI - 6268
Foundations of Network and Computer SecurityJohn BlackLecture #19 Nov 2nd 2004CSCI 6268/TLEN 5831, Fall 2004Announcements Quiz #3 This Thursday Covers material from midterm through today Project #3 on the Web Challenge Problem #3 on the We
Colorado - CSCI - 6268
Foundations of Network and Computer SecurityJohn BlackLecture #20 Nov 4th 2004CSCI 6268/TLEN 5831, Fall 2004Announcements Quiz #3 Today Need to know what big-endian is Remind me to mention it if I forget! Brian's detective work Mazdak wil
Colorado - CSCI - 6268
Foundations of Network and Computer SecurityJohn BlackLecture #17 Oct 26th 2004CSCI 6268/TLEN 5831, Fall 2004Announcements Project #1 Due Today Please hand in to me Project #2 rsautl has no base64 option; use openssl base64 [-d] Midterm
Colorado - CSCI - 6268
Foundations of Network and Computer SecurityJohn BlackLecture #4 Sep 2nd 2004CSCI 6268/TLEN 5831, Fall 2004Announcements Please sign up for class mailing list Quiz #1 will be on Thursday, Sep 9th About 30 mins At end of class Office hours d
UMass (Amherst) - ECE - 122
ECE 122 Engineering Problem Solving with JavaLecture 6Problem Definition and ImplementationECE122 L6: Problem Definition and ImplementationFebruary 14, 2008Outline Problem: Create, read in and print out four sets of student grades Setting up
UMass (Amherst) - ECE - 669
Lecture1: Introduction1Administrative infoWelcome to ECE669! Welcome off-campus students! Csaba Andras Moritz, Associate Professor @ ECE/UMASS Questions/discussions/email questions are welcome! My Focus: Design of Parallel Computer SystemsChips
UMass (Amherst) - ECE - 669
L51Commercial Application Support21Commercial Application Support-Not in textbook! Commercial enterprise oriented applications are commonly run on SMP type of machines to achieve high throughputs High-end is considered to be more massive
RIT - SMAM - 314
SMAM 314 Computer Assignment 6 Due 5/15/07 I For the data of problem 6.11 p.391 (SeeTable 6.19) Using Minitab A. Make a scatterplotB. Fit the regression line.Regression Analysis: y versus x The regression equation is y = - 1822 + 435 x Predictor C
RIT - SMAM - 351
SMAM 351Homework 8 Solution1. A. Using the lack of memory property of the exponential distribution P[X < 0.7) = 0 .5e.5x dx = e.5x B. The number of customers that arrive each minute is a Poisson distribution with mean 5. The number that arrive in
RIT - SMAM - 314
p 1 of 9Information about SMAM 314-Dr. Gruber's Section Instructor: Dr. M. Gruber office 08-3250 Phone 475-2541 email mjgsma@rit.edu Web page http:/www.rit.edu/~mjgsma/smam314winter00/hw.html (The web page may also be found by going to my home page
RIT - SURGERY - 0308
Total Hip ReplacementBy Krystal Stephenshttp:/www.rit .edu/~kjs0308/Surgery2_072/Total%20hip%20replacement/Total_hip_replacement.htmWhat is Total Hip Replacement? A total hip replacement is a surgical procedure where the diseased cartilage and b
UMass (Amherst) - CHEM - 121
Chemistry 121H Fall, 2005 Name Cumulative Final Exam 170 points total Please sign the following statement: I swear that I did not cheat on this exam.ID#Electronegativities: F = 4.0; O = 3.5; N = 3.0; Cl = 3.0; Br = 2.8; C = 2.5; S = 2.5; I = 2.5;
UMass (Amherst) - CHEM - 241
RIT - JRW - 9428
James Wegner Frey Digital Asset Management 24 February 2007 Final Exam 1. Must separate format from content The main reasons for separating format from content are to keep your files organized. It is important to keep youre your content saved only on
BYU - LECT - 621
CS 521Nonparametric Methods - Metrics1Distance?What's more different? A big difference in just one feature? Smaller differences in two features? Lots of small differences? Lots of ways to measure "distance" than just Euclidean distance.CS
BYU - LECT - 621
CS 521Introduction to Neural Networks1Neural NetworksWhat? Combinations of simple processing units with inputs, output(s), and a function relating the two.Why? 1. Massive parallelism (connectionist computing) 2. Can model biological systems
UMass (Amherst) - CS - 601
CMPSCI 601:Turing MachinesLecture 4: nite set of states; : " ! 1 1 0 11&3 4! 20 1#5 5 765)('%# & $: nite set of symbols; 5 5 675 5 5 765 5 5 675 5 5 675 5 5 675 5 5 675 5 5 675 5 5
UMass (Amherst) - CS - 601
CMPSCI 601:Recall From Last TimeLecture 7Th 6.2: The busy beaver function, larger than any total, recursive function.Thm. 6.4: (Unsolvability of Halting Problem) Let,Then,HALT is r.e. but not recursive.Listing of all r.e. sets:Cor. 6.
UMass (Amherst) - CMPSCI - 201
CMPSCI 201 Spring 2004 Professor William T. VertsLecture #35 May 5, 2004 I Feel the Need for SpeedThere are a number of methods for increasing the throughput of a processor. The first and most obvious is to increase the raw clock speed. While
UMass (Amherst) - CS - 645
IntroductionHash-based indexes are best for equality selections. Cannot support range searches. E.g., retrieve a student with id 1234 or all students at 20.Hash-Based IndexesYanlei Diao UMass AmherstStatic and dynamic hashing techniques ex
UMass (Amherst) - CS - 445
Normalization26Evils of Redundancy When a database schema is poorly designed we get anomalies. Redundancy is at the root of several problems associated with relational schemas:Redundant storage: data is repeated Update anomalies: need to chang
UMass (Amherst) - CS - 445
Access Methods and Sorting for Query ProcessingYanlei Diao UMass Amherst March 4, 2008Slides Courtesy of R. Ramakrishnan and J. Gehrke1OutlineComparing access methods External sorting2Comparing Access MethodsHeap file: random order Sorte
UMass (Amherst) - CS - 445
CMPSCI445 Information SystemsProf. Yanlei DiaoUniversity of Massachusetts AmherstOutline Overview of databases and DBMS Course topics Course requirementsYanlei Diao, University of Massachusetts Amherst1/29/2008DatabaseDatabaseDatabas
UMass (Amherst) - CS - 645
Overview of Storage and IndexingCMPSCI 645 Feb 28, 2008Slides Courtesy of R. Ramakrishnan and J. Gehrke1DBMS ArchitectureQuery Parser Query Rewriter Query Optimizer Query ExecutorFile & Access MethodsLock ManagerLog ManagerBuffer Mana
UMass (Amherst) - CS - 645
645: Database Design and ImplementationYanlei DiaoUniversity of Massachusetts AmherstOutline Overview of databases and DBMSs Course topics and requirementsYanlei Diao, University of Massachusetts Amherst2/4/09Databases and DBMSs A databa
UMass (Amherst) - CS - 445
SQL, continued.CMPSCI 445 September 21, 2006Some slide content courtesy of Ramakrishnan & Gehrke, Dan Suciu.SQL Overview Query capabilities SELECT-FROM-WHERE blocks, Basic features, ordering, duplicates Set ops (union, intersect, except)
UMass (Amherst) - CS - 445
SQL, continued.CMPSCI 445 September 19, 2006Some slide content courtesy of Ramakrishnan & Gehrke, Dan Suciu.SQL Overview Query capabilities SELECT-FROM-WHERE blocks, Basic features, ordering, duplicates Set ops (union, intersect, except)
UMass (Amherst) - CS - 445
Tree-Structured IndexesYanlei Diao UMass Amherst Feb 28, 2007Slides Courtesy of R. Ramakrishnan and J. Gehrke1B+ Tree: Most Widely Used IndexHeight-balanced given arbitrary inserts/deletes.Fanout: # child pointers of a non-leaf node F = avg.
UMass (Amherst) - MATH - 233
Math 233Practice Exam 2Fall 20051. Find the critical points of f (x, y) = x3 + y 2 + 2xy 4x 3y + 5 and classify each as a relative maximum, relative minimum or saddle point. 2. An open (no top) rectangular box must have a volume of 6 cubic fe
UMass (Amherst) - MATH - 697
Homework Problems1) Consider the model utt = uxx + 2(u - u3 ) 1. For traveling wave solutions u(x, t) = f (x - ct) with c2 < 1, set up the relevant ODE and find the corresponding potential, and phase plane representation of the solutions. 2. For di
Concordia Chicago - ACE - 104
Copyright (c) [2002]. Roger L. Costello. All Rights Reserved.1REST (Representational State Transfer)Roger L. Costello XML Technologies CourseCopyright (c) [2002]. Roger L. Costello. All Rights Reserved.2Acknowledgements I would like to th
East Los Angeles College - PHY - 221
M Grell, PHY221 2008/09 Semester 1 Problems class questions Sheet 1 1. Show that the two representations of harmonic oscillations:x(t) = A sin 0t + B cos 0t and x(t) = X max cos( 0t + )are equivalent. Express Xmax, in terms of A,B, as simply a
UMass (Amherst) - SOM - 541
Sch-Mgnt 541 Auditing Assignment PacketChapter 6 End-of-Chapter materials in the Ricchiute textbook Problems and Discussion Cases: 6-2 6-6 6-7 6-13 Financial Statement Assertions Analytical Procedures Applying Analytical Procedures Cognitive Heuris
East Los Angeles College - PHY - 221
PHY221, Martin Grell 2008/09, Semester 1 Problems Class Questions Sheet 2 1 a.) Given a point in cylindrical coordinates (,z), express it in Cartesian coordinates. (Define = 0 for x direction). [1] b.) Given a point in spherical coordinates (r,), ex
Concordia Chicago - ACE - 104
WSDLHomeworkPlenioWSDLStructureSource: w3schools.comWSDLNamespacesnamespaces in the wsdlWSDLTypesdefines the xml types define or include schemaWSDLTypesWSDLMessagesthe input and output messages that are being exchangedWSDLPortTypesd
Concordia Chicago - ACE - 104
WSDL 1<!- SOAP Request Document/Literal Message -><?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAPENV="http:/schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <PaymentScheduleRequest xmlns="http:/www.cccis
Concordia Chicago - ACE - 104
WSDL 3<!- SOAP Request Document/Literal Message -><?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAPENV="http:/schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <RealEstateRequest xmlns="http:/www.cccis.com/
Concordia Chicago - CSPP - 51038
Homework 3Due July 30Redo homework 2 using some DOM model in some language.
Colorado - AMATH - 2360
APPM 2360Differential EquationsSpring 2008Lecture 010, MWF 8:008:50 AM, ECCR 150 Terry Haut, STAD 152, (303) 735 3610 terry.haut@colorado.edu Office Hours: MWF 9:30-10:30 AM Lecture 030, MWF 2:002:50 PM, ECCR 265 Theodoros Horikis, ECCR 251, (3
Concordia Chicago - CSPP - 51038
Copyright (c) [2002]. Roger L. Costello. All Rights Reserved.1REST (Representational State Transfer)Roger L. Costello XML Technologies CourseCopyright (c) [2002]. Roger L. Costello. All Rights Reserved.2Acknowledgements I would like to th
Concordia Chicago - CSPP - 51038
XML Simple TypesCSPP51038 shortcourseSimple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements with text and no attributes are of simple type Careful: Elements with text and attributes a
Concordia Chicago - CSPP - 51038
Parsing XML into programming languagesJAXP, DOM, SAX, JDOM/DOM4J, Xerces, Xalan, JAXBParsing XML Goal: read XML files into data structures in programming languages Possible strategies Parse by hand with some reusable libraries Parse into gen
Concordia Chicago - CSPP - 51038
XML Simple TypesCSPP51038 shortcourseSimple Types Recall that simple types are composed of text-only values. All attributes are of simple type Elements with text and no attributes are of simple type Careful: Elements with text and attributes a
Concordia Chicago - CSPP - 58001
Due Monday, April 13 5PMFloating Point/Matlab warmupFor each of the following, show all of your work. You do nothave to write any code.Assuming always normalized form:1. Work out the minimum and maximum values of an ieee doubleprecision floa