Informatics for Economics II - Exercise 1 Prof. Dr. Michael Böhlen
|
|
- Arnold Mitchell
- 5 years ago
- Views:
Transcription
1 1 Informatics for Economics II - Exercise 1 Prof. Dr. Michael Böhlen Date: 7 October 2010 Submission date: 14 October 2010 (optional) A. Introduction The aim of this exercise is to get you familiar with Relational Algebra, as well as go through some basic SQL queries, that will help deepen your understanding. You can submit the answers on paper, but it is recommended to try your solutions (for the SQL part) on the database server you installed in Exercise 0. The database structure and data used throughout the SQL exercises can be created using the SQL Zoo script file, that is downloadable using the following link: At the end of this exercise sheet, you can find a table structure of the database filled with data. B. Exercises Exercise 1 Why is it important not to store all employee data in a single table in the database (opposed to having several tables with relations between them)? What are the implications of doing so? Construct a table that illustrates problems that may arise from having such a table that stores all employee details.
2 2 Exercise 2 The following two relations contain movie data offered by the students DVD stores. For each relation, suggest a candidate key and identify, if any, a foreign key attribute. X Y Z com Comedy 3.5 hor Horror 3 act Action 5 dra Drama 4 adv Adventure 3.5 A B C 1 Gone in 60 seconds act 2 Scream hor 3 Titanic dra 4 Die Hard act 5 American Pie com 6 The Dark Knight act 7 Indiana Jones adv 8 The Ring hor Exercise 3 For each of the following queries, describe the query and construct the resulting relation. (Use the Zoo schema mentioned in Section.A of this assignment as a reference for the table structure and instance) 1. σ Income>5000 Sex= w (Employee) 2. Π AHV (Employee AHV =EmpAHV ρ (EmpAHV,Cage Id) (Employee Cage)) 3. σ ManagerId=AHV (Department Employee) 4. σ Dep=1 Sex= w (Employee) Exercise 4 For this exercise, use the following table structure: Client(AHV, ClientName, Amount) Movie(MovieId, MovieName, Rating) Rental(MovieId, AHV, Date) Write the relational query that corresponds to the following description
3 1. Movies that were never rented 2. All movies that Chris ever rented 3. Total amount spent by clients who ever rented the movie named Lord of the Rings Write the description of the following relational queries 1. Π AHV (σ MovieId=7 (Rental)) Π AHV (σ MovieId=12 (Rental)) 2. Π ClientName (σ MovieId=1 (Rental) σ Amount>100 (Client)) 3 Exercise 5 Write down the queries that would produce the data for the following inquiries. Also provide the results obtained from your query. 1. The last name of all employees who have a salary of The first and last name of the head of the Customer service department 3. The first and last name of all female employees who earn at least Indicate the AHV insurance number and the department name of all employees who are not assigned to a cage 5. Indicate the first name and last name of the youngest employee 6. Reduce the salary of all employees who work in the Management department by 5% 7. Indicate the salary, first name, and last name of all employees assigned to all cages 8. The name of all animals, and the corresponding cage name where they stay in 9. The first and last name, department of all employees who are assigned to a cage that has some ongoing construction work 10. The number of employees assigned to each cage (include the cage name in the result)
4 4 Notes Expected responses are as follows: SQL code: SELECT * FROM Cage WHERE Cage Id = 1; Result: Cage Id Name Size Has Construction Work 1 Tropical For UPDATE statements, show all modified tuples, illustrating their old and new values. Exercise 6 Illustrate and explain the results of the following queries 1. SELECT a.firstname, a.lastname, t.description FROM Employee a, Employee Cage e, Animal t WHERE a.ahv = e.ahv AND e.cage Id = t.cage Id ORDER BY t.description; 2. SELECT e.ahv, SUM(k.Size) FROM Employee Cage e, Cage k WHERE e.cage Id = k.cage Id GROUP BY e.ahv; 3. SELECT AVG(a.Income), k.name FROM Employee a, Employee Cage e, Cage k WHERE e.cage Id = k.cage Id AND k.name= Tropical AND e.ahv = a.ahv GROUP BY k.name; 4. UPDATE Cage SET Size = Size * 1.2
5 5 WHERE Cage Id IN (SELECT Cage Id FROM Animal WHERE Age >= 4 ) ; Notes The expected answer is as follows: Write a short description of the query with all relevant details Specify the output data in table format (as described in Exercise 1 notes) Exercise 7 The following events cause changes in the database. Write the modification statements required to reflect the changes in the database. 1. A Marketing department is newly created. Emmy Noether got promoted to be the head of the new department. Her salary and supervisor remain unchanged. Don t forget to update the Employee table if necessary. 2. Penguins are set to leave the zoo due to whether conditions. 3. The giant tortoise Harriet was imported to the zoo on 24th of July Harriet is 176 years old and stays in the Tropical cage. 4. A new cage was built to accommodate special types of birds. The cage name is Birds, has a size of 1420 with no ongoing construction work. 5. A new employee in the Customer service department: Name: Regina Gehlen AHV number: 42 Date of birth: 17th of January 1964 Earns 4200 Supervisor: Mirella Freni Regina will be assigned to cages: Arctic and Safari and Birds
6 6 C. Database This section presents a copy of the database tables defined in the SQL script provided earlier. Please note the following points: underlined column names represent a primary key column dash-underlined column names illustrate a foreign key column Employee AHV Lastname Firstname Dep Date Of Birth Manager Income Sex 1 Heusli Kurt m 2 Tell Beate w 3 Becker Ruedi m 4 Frisch Boris m 5 Maradona Sonja w 6 Wagner Guiseppe m 7 Verdi Amando m 8 Freni Mirella w 9 Schlau Adam m 10 Braun Tanja w Cage Cage Id Name Size Has Construction Work 1 Tropical Arctic Continental Safari Wild west Aquarium 225 0
7 7 Department Department Id Name Manager Id 1 Health 6 2 Facility management 2 3 Feeding 4 4 Counter 5 5 Customer service 7 6 Management 8 Animal Animal Id Description Cage Id Arrival Date Age 1 Pinguin Elefant Buffel Fish Parrot Beer
8 8 Employee Cage AHV Cage Id
Informatics for Economics II - Exercise 1 Solutions Prof. Dr. Michael Böhlen
1 Informatics for Economics II - Exercise 1 Solutions Prof. Dr. Michael Böhlen Date: 7 October 2010 Submission date: 14 October 2010 (optional) A. Introduction The aim of this exercise is to get you familiar
More informationThe Relational Data Model. Data Models. Relational vs Semistructured. Structure Operations - Constraints
The Relational Data Model Data Models Structure Operations - Constraints Types: Relational data model Object data model Hierarchical data model (Trees) Network data model (Graphs) Semistructured Data Model
More informationFundamentals of Database Systems
Fundamentals of Database Systems Assignment: 1 Due Date: 8th August, 2017 Instructions This question paper contains 15 questions in 5 pages. Q1: The users are allowed to access different parts of data
More informationRelational 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 information2.2.2.Relational Database concept
Foreign key:- is a field (or collection of fields) in one table that uniquely identifies a row of another table. In simpler words, the foreign key is defined in a second table, but it refers to the primary
More informationRelational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity
COS 597A: Principles of Database and Information Systems Relational model continued Understanding how to use the relational model 1 with as weak entity folded into folded into branches: (br_, librarian,
More informationCS 348 Introduction to Database Management Assignment 2
CS 348 Introduction to Database Management Assignment 2 Due: 30 October 2012 9:00AM Returned: 8 November 2012 Appeal deadline: One week after return Lead TA: Jiewen Wu Submission Instructions: By the indicated
More information1. Consider the following functional dependencies, to be used in the analysis of a database design for the Furman Air enterprise of the first exam:
CSC-341 Exam #2 October 20, 2009 Name: 1. Consider the following functional dependencies, to be used in the analysis of a database design for the Furman Air enterprise of the first exam: Attributes Pilot
More informationIan Kenny. November 28, 2017
Ian Kenny November 28, 2017 Introductory Databases Relational Algebra Introduction In this lecture we will cover Relational Algebra. Relational Algebra is the foundation upon which SQL is built and is
More informationTop 88 Question Asked in Part I of MIS 150 EXAM #1 (Chapter 1-4, Appendix C) Exams questions gathered from old tests dating back to Fall 2000
Top 88 Question Asked in Part I of MIS 150 EXAM #1 (Chapter 1-4, Appendix C) Exams questions gathered from old tests dating back to Fall 2000 1. Name one data model that emphasizes the concept of reusable
More informationDatabase Technologies. Madalina CROITORU IUT Montpellier
Database Technologies Madalina CROITORU croitoru@lirmm.fr IUT Montpellier Part 2 RELATIONAL ALGEBRA Background notions I A database relation is a set. Sets can be refined: One can select a subset of elements
More informationName: 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 informationA subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select,
Sub queries A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select, Result of the inner query is passed to the main
More informationconsider the following tables pertaining to employees working for different Write the SQL statement to retrieve the average age of employees for each
Midterm 1 In a company, each employee has the following attributes: ss#, name, age, salary. Each employee participates p in an advisor/advisee relationship with another employee. An advisor is also an
More informationSECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No.
SECTION 1 DBMS LAB DBMS Lab Structure Page No. 1.0 Introduction 05 1.1 Objectives 05 1.2 Introduction to MS-Access 05 1.3 Database Creation 13 1.4 Use of DBMS Tools/ Client-Server Mode 15 1.5 Forms and
More informationDatabase Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra
Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main
More informationWho is the borrower whose id is 12345? σ borrower borrower_id = select * from borrower where borrower_id = '12345'
Who is the borrower whose id is 12345? σ borrower borrower_id = 12345 select * from borrower where borrower_id = '12345' List the names of all borrowers π borrower last_name first_name select last_name,
More informationCOSC344 Database Theory and Applications. Lecture 5 SQL - Data Definition Language. COSC344 Lecture 5 1
COSC344 Database Theory and Applications Lecture 5 SQL - Data Definition Language COSC344 Lecture 5 1 Overview Last Lecture Relational algebra This Lecture Relational algebra (continued) SQL - DDL CREATE
More informationRelational Model 2: Relational Algebra
Yufei Tao Department of Computer Science and Engineering Chinese University of Hong Kong The relational model defines: 1 the format by which data should be stored; 2 the operations for querying the data.
More informationIntroduction C H A P T E R1. Exercises
C H A P T E R1 Introduction Chapter 1 provides a general overview of the nature and purpose of database systems. The most important concept in this chapter is that database systems allow data to be treated
More informationPreparing for the Assistant Laboratory Animal Technician (ALAT) Certification Exam. University Laboratory Animal Resources
Preparing for the Assistant Laboratory Animal Technician (ALAT) Certification Exam University Laboratory Animal Resources Materials Covered Today ALAT Class Syllabus ALAT class schedule 2013 AALAS Certification
More informationSQLite, 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 informationChapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Example of a Relation attributes (or columns) tuples (or rows) 2.2 Attribute Types The
More informationExamination examples
Examination examples Databasteknik (5 hours) 1. Relational Algebra & SQL (4 pts total; 2 pts each). Part A Consider the relations R(A, B), and S(C, D). Of the following three equivalences between expressions
More informationInformation Services. Essential Access Exercises. IT
Information Services Essential Access Exercises IT www.york.ac.uk/it-services/training Essential Access Tasks Exercises to accompany Essential Access Course Books 1 & 2 Sample files for use with these
More informationRelational Algebra 1
Relational Algebra 1 Motivation The relational data model provides a means of defining the database structure and constraints NAME SALARY ADDRESS DEPT Smith 50k St. Lucia Printing Dilbert 40k Taringa Printing
More informationWeb Science & Technologies University of Koblenz Landau, Germany. Relational Data Model
Web Science & Technologies University of Koblenz Landau, Germany Relational Data Model Overview Relational data model; Tuples and relations; Schemas and instances; Named vs. unnamed perspective; Relational
More informationChapter 3. Relational algebra and calculus
Chapter 3 Relational algebra and calculus 1 Operations on databases: queries: "read" data from the database updates: change the content of the database Both can be modeled as functions from databases to
More informationCMPT 354 Database Systems. Simon Fraser University Fall Instructor: Oliver Schulte
CMPT 354 Database Systems Simon Fraser University Fall 2016 Instructor: Oliver Schulte Assignment 1: Entity-Relationship Modeling. The Relational Model. MS SQL Server. Instructions: Check the instructions
More informationQUIZ 1 REVIEW SESSION DATABASE MANAGEMENT SYSTEMS
QUIZ 1 REVIEW SESSION DATABASE MANAGEMENT SYSTEMS SCHEMA DESIGN & RELATIONAL ALGEBRA A database schema is the skeleton structure that represents the logical view of the entire database Logical design of
More informationPreviously everyone in the class used the mysql account: Username: csci340user Password: csci340pass
Database Design, CSCI 340, Spring 2016 SQL, Transactions, April 15 Previously everyone in the class used the mysql account: Username: csci340user Password: csci340pass Personal mysql accounts have been
More informationDatabase Management Systems,
Database Management Systems SQL Query Language (1) 1 Topics Introduction SQL History Domain Definition Elementary Domains User-defined Domains Creating Tables Constraint Definition INSERT Query SELECT
More informationCSCI 585 Database Systems Prof. Dennis McLeod. Sample Midterm Exam
CSCI 585 Database Systems Prof. Dennis McLeod Sample Midterm Exam The purpose of this sample exam is to show the style of questions the exams will contain. It is not an indication of scope of topic coverage
More informationKing Fahd University of Petroleum and Minerals
1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25
More informationMET 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 informationChapter 3. The Relational Model. Database Systems p. 61/569
Chapter 3 The Relational Model Database Systems p. 61/569 Introduction The relational model was developed by E.F. Codd in the 1970s (he received the Turing award for it) One of the most widely-used data
More informationCMPT 354: Database System I. Lecture 5. Relational Algebra
CMPT 354: Database System I Lecture 5. Relational Algebra 1 What have we learned Lec 1. DatabaseHistory Lec 2. Relational Model Lec 3-4. SQL 2 Why Relational Algebra matter? An essential topic to understand
More informationMET 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 informationMIT Database Management Systems Lesson 03: Entity Relationship Diagrams
MIT 22033 Database Management Systems Lesson 03: Entity Relationship Diagrams By S. Sabraz Nawaz Senior Lecturer in MIT, FMC, SEUSL & A.J.M.Hasmy FMC, SEUSL ER - Model The entity-relationship (ER) data
More informationCSE 880:Database Systems. ER Model and Relation Schemas
CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,
More informationLecture 19 Query Processing Part 1
CMSC 461, Database Management Systems Spring 2018 Lecture 19 Query Processing Part 1 These slides are based on Database System Concepts 6 th edition book (whereas some quotes and figures are used from
More informationAdvance Database Management System
Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database
More information2. 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 informationPLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science
PLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science DECEMBER 2011 EXAMINATIONS CSC 343 H1F Instructors: Horton and Papangelis Duration 3 hours PLEASE HAND IN Examination Aids: None Student
More informationDatabase Systems. Answers
Database Systems Question @ Answers Question 1 What are the most important directories in the MySQL installation? Bin Executable Data Database data Docs Database documentation Question 2 What is the primary
More informationRelational Database Systems 1
Relational Database Systems 1 Wolf-Tilo Balke / Stephan Mennicke Hermann Kroll / Janus Wawrzinek Institut für Informationssysteme Technische Universität Braunschweig www.ifis.cs.tu-bs.de 6 Relational Algebra
More informationCSIT5300: Advanced Database Systems
CSIT5300: Advanced Database Systems E11: Exercises Physical Database Design Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science and Technology Hong Kong
More information4/10/2018. Relational Algebra (RA) 1. Selection (σ) 2. Projection (Π) Note that RA Operators are Compositional! 3.
Lecture 33: The Relational Model 2 Professor Xiannong Meng Spring 2018 Lecture and activity contents are based on what Prof Chris Ré of Stanford used in his CS 145 in the fall 2016 term with permission
More informationObjective. The goal is to review material covered in Chapters 1-5. Do the following questions from the book.
CSCE 4523 Assignment 2 - Due Sunday, Feb. 19, 2017; 11:59pm on Blackboard This assignment may be done in pairs (undergrads only). Grad students must do the assignment individually. Objective The goal is
More informationDatabase Technology Introduction. Heiko Paulheim
Database Technology Introduction Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager Introduction to the Relational Model
More informationExamination paper for TDT4145 Data Modelling and Database Systems
Department of Computer and Information Science Examination paper for TDT4145 Data Modelling and Database Systems Academic contact during examination: Svein Erik Bratsberg: 99539963 Roger Midtstraum: 99572420
More informationEECS-3421a: Test #1 Design
2016 October 12 EECS-3421a: Test #1 1 of 14 EECS-3421a: Test #1 Design Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#: EECS Account:
More informationDatabase Management Systems
Sample Questions 1 Write SQL query to create a table for describing a book. The table should have Book Title, Author, Publisher, Year published, and ISBN fields. Your table should have a primary key. For
More informationInformatics 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 informationDatabase Design. 8-1 Modeling Historical Data. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 8-1 Objectives This lesson covers the following objectives: Identify the need to track data that changes over time Construct ERD models that incorporate elements of data over time Identify
More informationTask: 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 informationFINAL EXAM REVIEW. CS121: Introduction to Relational Database Systems Fall 2018 Lecture 27
FINAL EXAM REVIEW CS121: Introduction to Relational Database Systems Fall 2018 Lecture 27 Final Exam Overview 2 Unlimited time, multiple sittings Open book, notes, MySQL database, etc. (the usual) Primary
More informationRelational Databases
Relational Databases Lecture 2 Chapter 3 Robb T. Koether Hampden-Sydney College Fri, Jan 18, 2013 Robb T. Koether (Hampden-Sydney College) Relational Databases Fri, Jan 18, 2013 1 / 26 1 Types of Databases
More informationajpatelit.wordpress.com
ALPHA COLLEGE OF ENGINEERING & TECHNOLOGY COMPUTER ENGG. / INFORMATION TECHNOLOGY Database Management System (2130703) All Queries 1. Write queries for the following tables. T1 ( Empno, Ename, Salary,
More informationFundamentals of Database Systems
Fundamentals of Database Systems Assignment: 2 Due Date: 18th August, 2017 Instructions This question paper contains 10 questions in 6 pages. Q1: Consider the following schema for an office payroll system,
More informationITS407: Database Concepts
ITS407: Database Concepts Credit Hours: 3 Contact Hours: This is a 3 credit course, offered in accelerated format. This means that 16 weeks of material is covered in 8 weeks. The exact number of hours
More informationBuilding a Web-based Health Promotion Database
6 th International Conference on Applied Informatics Eger, Hungary, January 27 31, 2004. Building a Web-based Health Promotion Database Ádám Rutkovszky University of Debrecen, Faculty of Economics Department
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Relational DB Languages Relational Algebra, Calculus, SQL Lecture 05 zain 1 Introduction Relational algebra & relational calculus are formal languages associated with the relational
More informationDatabase 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 informationIntegrity and Security
C H A P T E R 6 Integrity and Security This chapter presents several types of integrity constraints, including domain constraints, referential integrity constraints, assertions and triggers, as well as
More informationUniversity of Ottawa CSI 2132 and 2532 Final Examination Professor(s): Herna L. Viktor and Iluju Kiringa. 21 April :h30-12h30 Duration: 3 hrs
University of Ottawa CSI 2132 and 2532 Final Examination Professor(s): Herna L. Viktor and Iluju Kiringa 21 April 2012 09:h30-12h30 Duration: 3 hrs Closed book; no aid allowed, except one double-sided
More informationRelational Algebra Part I. CS 377: Database Systems
Relational Algebra Part I CS 377: Database Systems Recap of Last Week ER Model: Design good conceptual models to store information Relational Model: Table representation with structures and constraints
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM
More informationCOMP3311 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 informationComputer 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 informationTable of Contents Circle Graphs. Agenda ~ Apr /4 4/5 4/6 4/7 4/8. * You need: Monday Tuesday Wednesday Thursday Friday NO SCHOOL
Agenda ~ Apr 2016 * You need: 4/4 4/5 4/6 4/7 4/8 Monday Tuesday Wednesday Thursday Friday Line Plots Histograms Circle Graphs NO SCHOOL Mar 12 12:11 PM Table of Contents 3 22 Circle Graphs Apr 10 7:34
More informationARTICLE RELATIONAL ALGEBRA
ARTICLE ON RELATIONAL ALGEBRA Tips to crack queries in GATE Exams:- In GATE exam you have no need to learn the syntax of different operations. You have to understand only how to execute that operation.
More informationRelational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology.
III. Introduction to the Relational Database Model Relational Database Model In 1970, E. F. Codd published A Relational Model of Data for Large Shared Data Banks in CACM. In the early 1980s, commercially
More informationMidterm Exam (Version B) CS 122A Spring 2017
NAME: SOLUTION SEAT NO.: STUDENT ID: Midterm Exam (Version B) CS 122A Spring 2017 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 80 minutes; be
More informationL130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries.
L130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries. Roll number, student name, date of birth, branch and year of study.
More informationThe Relational Model. Suan Lee
The Relational Model Suan Lee Database Management System (DBMS) Used by all major commercial database systems Very simple model Query with high-level languages: simple yet expressive Efficient implementations
More informationCSCB20 Week 2. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017
CSCB20 Week 2 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 This Week Quick Review of terminology Relational Model Continued Relational diagrams Relational operations
More informationTWO-81 Main Info and Prep Use Job Aid
When you start a new return, the first thing to do is to fill out the Main Info worksheet and the Prep Use worksheet in TaxWise (TW). This guide covers each section of these worksheets from top to bottom.
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1
ER Model Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept of Computer Engineering Khon Kaen University Objectives (1/2) Relational Data Model Terminology of relational data model How
More informationHomework 1: RA, SQL and B+-Trees (due September 24 th, 2014, 2:30pm, in class hard-copy please)
Virginia Tech. Computer Science CS 5614 (Big) Data Management Systems Fall 2014, Prakash Homework 1: RA, SQL and B+-Trees (due September 24 th, 2014, 2:30pm, in class hard-copy please) Reminders: a. Out
More informationSample Question Paper
Sample Question Paper Marks : 70 Time:3 Hour Q.1) Attempt any FIVE of the following. a) List any four applications of DBMS. b) State the four database users. c) Define normalization. Enlist its type. d)
More informationComputer Science 597A Fall 2008 First Take-home Exam Out: 4:20PM Monday November 10, 2008 Due: 3:00PM SHARP Wednesday, November 12, 2008
Computer Science 597A Fall 2008 First Take-home Exam Out: 4:20PM Monday November 10, 2008 Due: 3:00PM SHARP Wednesday, November 12, 2008 Instructions: This exam must be entirely your own work. Do not consult
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationData Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.
Data Modeling with the Entity Relationship Model CS157A Chris Pollett Sept. 7, 2005. Outline Conceptual Data Models and Database Design An Example Application Entity Types, Sets, Attributes and Keys Relationship
More information1 Relational Data Model
Prof. Dr.-Ing. Wolfgang Lehner INTELLIGENT DATABASE GROUP 1 Relational Data Model What is in the Lecture? 1. Database Usage Query Programming Design 2 Relational Model 3 The Relational Model The Relation
More information1 (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 informationEntity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables
Entity-Relationship Modelling Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables 1 Entity Sets A enterprise can be modeled as a collection of: entities, and
More informationCIS 550, Database and Information Systems Homework 5 (Due by 11:59:59 on April 14)
CIS 550, Database and Information Systems Homework 5 (Due by 11:59:59 on April 14) Problem 1: Relational Algebra [25 points] Recall from HW1 the following partial schema for the (real) Internet Movie Database
More informationEGCI 321: Database Systems. Dr. Tanasanee Phienthrakul
1 EGCI 321: Database Systems Dr. Tanasanee Phienthrakul 2 Chapter 10 Data Definition Language (DDL) 3 Basic SQL SQL language Considered one of the major reasons for the commercial success of relational
More informationExperimenting with bags (tables and query answers with duplicate rows):
January 16, 2013 Activities CS 386/586 Experimenting with bags (tables and query answers with duplicate rows): Write an SQL query (and run it against the sailors database) that does the following: 1. List
More informationSelection and Projection
Tutorial - Relational Algebra CSC343 - Introduction to Databases Fall 008 TA: Lei Jiang CSC343: Intro. to Databases 1 Selection and Projection σ (R) = {s R s satisfies condition c} c --- selection based
More informationCSE 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 informationCS40 Exam #2 November 14, 2001
CS40 Exam #2 November 14, 2001 Name: Except where explicitly noted, all of the questions on this exam refer to the database defined by the relational schemas given on the last page of this exam. 1. Suppose
More informationCS145 Final Examination
CS145 Final Examination Spring 2003, Prof. Widom ffl Please read all instructions (including these) carefully. ffl There are 11 problems on the exam, with a varying number of points for each problem and
More informationRelational Model and Relational Algebra A Short Review Class Notes - CS582-01
Relational Model and Relational Algebra A Short Review Class Notes - CS582-01 Tran Cao Son January 12, 2002 0.1 Basics The following definitions are from the book [1] Relational Model. Relations are tables
More informationDo not turn over until you are told to do so by the invigilator. Module Contact: Dr. Beatriz de la Iglesia (CMP)
UNIVERSITY OF EAST ANGLIA School of Computing Sciences January PG Examination 2013-14 DATABASE MANIPULATION CMPSMB11 Time allowed: 3 hours Answer THREE questions. All questions carry equal weight. Notes
More informationLecture3: Data Modeling Using the Entity-Relationship Model.
College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by
More informationRelational Model History. COSC 416 NoSQL Databases. Relational Model (Review) Relation Example. Relational Model Definitions. Relational Integrity
COSC 416 NoSQL Databases Relational Model (Review) Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Relational Model History The relational model was proposed by E. F. Codd
More informationRELATIONAL DATA MODEL: Relational Algebra
RELATIONAL DATA MODEL: Relational Algebra Outline 1. Relational Algebra 2. Relational Algebra Example Queries 1. Relational Algebra A basic set of relational model operations constitute the relational
More information