State your dream system (use the following materials, if you need) Alliance model character year character 4. A/T description character 51
|
|
- Margaret Cecily Daniels
- 6 years ago
- Views:
Transcription
1 Final Project report State your dream system (use the following materials, if you need) 1. Meta Data Table Example Fields Type length Alliance model character year character 4 A/T description character litres character 4 L4 engine type character 3 85 cubic inches character 6 Rlink number 4 Table 1 The metadata of radcrx.txt is in Table 2; you should join it with Table 1(for all makers) over Modine parts Type part# Rlink Number 4 A.R.S NS Standard (radiator) 3 characters NS heavy duty 3 characters NS air condition 3 characters NS maximum 3 characters Modine NS Standard (radiator) 3 characters NS heavy duty 3 characters NS air condition 3 characters NS maximum 3 characters Behr NS Standard (radiator) 3 characters NS heavy duty 3 characters
2 NS air condition 3 characters NS maximum 3 characters Daniel NS Standard (radiator) 3 characters NS heavy duty 3 characters NS air condition 3 characters NS maximum 3 characters Table 2 MNO MAK COD 01 AMERICAN MOTORS OR AMC AMC 02 AUDI AUD 03 BMW BMW 04 BUICK BUK 05 CADILLAC CAD 06 CHEVROLET CHE 07 CHRYSLER CRY 08 DODGE DOD 09 DODGE/PLYMOUTH LITE TRK & VAN DOT 10 FORD LIGHT TRUCK AND VAN FDT 11 FORD MEDIUM AND HEAVY TRUCK FDM 12 FIAT FIA 13 FORD FOR 14 CHEVROLET & GMC TRUCK & VAN GMC 15 HONDA HON 16 INTERNATIONAL TRUCK (I.H.C.) INT 17 ISUZU ISU 18 LINCOLN LIN 19 MERCEDES MCS 20 MITSUBISHI MIT 21 MERCURY MRY 22 MAZDA MZD 23 NISSAN / DATSUN NIS 24 OLDSMOBILE OLD 25 PLYMOUTH PLY 26 PORSCHE POR 27 PONTIAC PON 28 RENAULT REN
3 29 SAAB SAB 30 SUBARU SUB 31 TOYOTA TOY 32 UPS UPS 33 VOLKSWAGEN VOL 34 HYUNDAI HUN 35 YUGO YUG 36 GMC TRUCK AND VAN GMM CREATE TABLE RDIMARS (P_NUMBER VARCHAR2(6) NOT NULL, CORE VARCHAR2(32), INHEAD VARCHAR2(17), OUTHEAD VARCHAR2(17), INCON VARCHAR2(14), OUCON VARCHAR2(14), TMOUNT VARCHAR2(24), OILCOOL VARCHAR2(10), PRICE NUMBER(8, 2), AMOUNT NUMBER(10), PRIMARY KEY (P_NUMBER)); You have similar data RDIMOD RDIBEH RDIDAN
4 Part II 1 10 pts pts 3 10 pts 4 30 pts Get manager Lname which has at least one employee who is working on project number 1, or 2 Get LNAME of each employee whose salary more than $ Write a SQL to detect the functional dependency from manager s salary to average salary of the employees (in the department). Use DB2: Write a SQL (in paper) to do the following: For each part time worker (5 pts) find all full time co-worker (5 pts)s; here co-worker means having worked together in at least one project. For every worker please give his ssn and last name
5 CS157A Final Exam (12/18/2012) Name (last name first) then hyphen with Class id II 1 10 pts pts 3 10 pts 4 30 pts Get manager Lname which has at least one employee who is working on project number 1, or 2 Get LNAME of each employee whose salary more than $ Write a SQL to detect the functional dependency from manager s salary to average salary of the employees (in the department). Use DB2: Write a SQL (in paper) to do the following: For each part time worker (5 pts) find all full time co-worker (5 pts)s; here co-worker means having worked together in at least one project. For every worker please give his ssn and last name
6 I. Multiple Choices (2 points) 1 Which of the following SQL represents the notation STUDIONAME ='LUCAS FILMS' AND YEAR = 1980 ( TITLE,LENGTH (MOVIE)) A B C D E SELECT title, length FROM MOVIES WHERE STUDIONAME ='LUCAS FILMS' AND YEAR = 1980; SELECT * FROM (SELECT STUDIONAME, YEAR FROM MOVIES ) WHERE STUDIONAME ='LUCAS FILMS' AND YEAR = 1980; BOTH ARE CORRECT BOTH ARE INCORRECT NONE OF THE ABOVE 2 Which of the following SQL will have the same out puts TITLE,LENGTH ( STUDIONAME ='LUCAS FILMS' AND YEAR = 1980 (MOVIE)) A B C SELECT title, length FROM MOVIES WHERE STUDIONAME ='LUCAS FILMS' AND YEAR = 1980; SELECT title, length FROM ( SELECT * FROM Movies WHERE studioname = 'LUCAS FILMS' AND year = 1990); BOTH ARE CORRECT D* BOTH ARE INCORRECT E NONE OF THE ABOVE 3 SELECT * FROM MovieStar, MovieExec WHERE MovieStar.address = MovieExec.address Select appropriate relational operator for the SQL given above A Projection B Selection C Natural Join D Eqi Join E Cartesian Product A Union B Intersect C Minus 4. SELECT cert# FROM MovieExec INTERSECT SELECT producerc# FROM Movies WHERE(title,year) IN
7 The output are CERT# (SELECT movietitle, movieyear FROM StarsIn WHERE starname = 'LEONARDO DICAPRIO' ) ; A B TRUE FAlSE 5.(DB3) To retrieves title of the movies whose length is unknown Which of the following SQL is correct a) SELECT Title FROM Movies WHERE length is null; b) SELECT Title FROM Movies WHERE length = null; c) SELECT Title FROM Movies WHERE length = 0; d) None of the above 6. (DB3) SELECT name FROM MovieExec WHERE cert# in (SELECT producerc# FROM Movies WHERE title NOT IN (SELECT movietitle FROM StarsIN WHERE starname = 'SAMUEL HENRY') ); Who should be NOT in the output: NAME a) JAMES CAMERON b) DANNY BOYLE c) Darren Aronofsky d) CATHERINE WINDER e) None of the above 7 (DB2) SELECT EMPLOYEE.LNAME FROM DEPARTMENT, EMPLOYEE WHERE DEPARTMENT.DNAME = 'ADMINISTRATION' AND EMPLOYEE.DNO = DEPARTMENT.DNUMBER ; (a) Smith Borg Jabbar Zelaya (b) Zelaya Wallace Jabbar Borg (c) Zelaya Wallace Jabbar (d) Zelaya Wallace ( e ) None of the above
8 8. SELECT COUNT (DISTINCT P.PNAME) FROM PARTS P WHERE 0 < (SELECT COUNT(*) FROM SHIPMENTS SP WHERE SP.PNUM=P.PNUM AND SP.SNUM='S2' ); USE MOD 5 : (a) MOD 1 (b) MOD 2 (c) MOD 3 (d) MOD 4 (e) MOD 5 9. (DB2) Get ssn & address of each employee who works with Jennifer Wallace on the same project. SELECT SSN, ADDRESS FROM WORKS_ON, EMPLOYEE WHERE WSSN = SSN AND PNO IN (SELECT PNO FROM WORKS_ON, EMPLOYEE WHERE WSSN = SSN AND LNAME = 'WALLACE' AND FNAME = 'JENNIFER'); The output is VOSS HOUSTON TX CASTLE SPRING TX BERRY BELLAIRE TX BERRY BELLAIRE TX DALLAS HOUSTON TX STONE HOUSTON TX (a) (b) True False 10. (DB2) Which of the following SQL will Get department name which has at least one employee who is working on project number 1, 2 or 30. (a) SELECT DNAME, PROJECT WHERE SSN=ESSN AND PNUMBER IN (1,2,30); (b) SELECT DNAME WHERE EXISTS (SELECT * FROM PROJECT WHERE SSN=WSSN AND PNUMBER IN (1,2,30)); (c) SELECT DNAME WHERE PNUMBER IN ( SELECT PNUMBER FROM PROJECT WHERE PNUMBER =1 OR PNUMBER =2 OR PNUMBER =3); (d) SELECT DISTINCT DNAME, DEPARTMENT WHERE EXISTS (SELECT * FROM WORKS_ON WHERE SSN=WSSN AND
9 PNO IN (1,2,30)); (e) None of the above 11 (DB3) SELECT COUNT (DISTINCT NAME) FROM MOVIEEXEC WHERE CERT# IN (SELECT PRODUCERC# FROM MOVIES WHERE TITLE = 'STAR''s WARS' AND PRODUCERC# > 950); USE MOD 5 : (a) MOD 1 (b) MOD 5 (c) MOD 3 (d) MOD 4 (e) NONE OF THE ABOVE 12. (DB2) SELECT DISTINCT COUNT(DISTINCT MGRSSN),DEPARTMENT GROUP BY SALARY HAVING COUNT(DISTINCT MGRSSN) >1; The output will be Use Mod 5: a ) 1, b) 2, c) 3, d) 4, e) none of the above 13(DB2) (a) (b) (c) List the Last names of employees who work on at least two projects. Which of the following are incorrect SELECT EMPLOYEE.LNAME WHERE 2 <= (SELECT COUNT(*) FROM WORKS_ON WHERE EMPLOYEE.SSN = WORKS_ON.WSSN) ; SELECT EMPLOYEE.LNAME, WORKS_ON WHERE EMPLOYEE.SSN = WORKS_ON.WSSN GROUP BY EMPLOYEE.LNAME, EMPLOYEE.FNAME Having COUNT(*) >=2; SELECT EMPLOYEE.LNAME, EMPLOYEE.FNAME WHERE SSN in (SELECT WSSN FROM WORKS_ON); (d) (e) All are correct None of the above 14 Get the last names of employees who have at least one son. (choose best answer) (a) (b) SELECT FNAME,LNAME FROM DEPENDENT, EMPLOYEE WHERE SSN=DEPSSN AND DEPENDENT.RELATIONSHIP = 'SON' ; SELECT FNAME, LNAME WHERE SSN IN ( SELECT DEPSSN FROM DEPENDENT
10 WHERE RELATIONSHIP = 'SON' ); (c) d) (e) (a) (b) SELECT FNAME,LNAME WHERE EXISTS( SELECT * FROM DEPENDENT WHERE SSN=DEPSSN AND RELATIONSHIP = 'SON'); SELECT T.FNAME,T.LNAME FROM DEPENDENT D, (SELECT SSN, FNAME,LNAME )T WHERE D.DEPSSN=T.SSN AND RELATIONSHIP ='SON'; SELECT EMPLOYEE.FNAME, EMPLOYEE.LNAME WHERE EXISTS (SELECT * FROM DEPENDENT WHERE EMPLOYEE.SSN = DEPENDENT.DEPSSN) AND EXISTS (SELECT * FROM DEPARTMENT WHERE EMPLOYEE.SSN = DEPARTMENT.MGRSSN); All are correct None of the above 15 Get SSN of each employee who has a dependent with the same first name as the employee. A B C D SELECT SSN WHERE SSN IN (SELECT DEPSSN FROM DEPENDENT WHERE DEPSSN = SSN AND FNAME = DEPENDENT_NAME); SELECT SSN, DEPENDENT WHERE SSN = DEPSSN AND FNAME = DEPENDENT_NAME; All are correct None of the above 16 Get department name & the average salary of all employees in each department. SELECT DNAME, AVG(SALARY) FROM DEPARTMENT, EMPLOYEE WHERE DNUMBER = DNO
11 GROUP BY DNAME; Has the output: ADMINISTRATION RESEARCH HEADQUARTERS (a) True (b) False 17) When Tuple 5 is deleted, it will cause deletion anomaly, tuple # S # S C 1 S1 20 LONDON 2 S2 10 PARIS 3 S3 10 PARIS 4 S4 20 LONDON 5 S5 30 ATHENS 6 S6 20 LONDON The anomaly is degree a) 0 b) 1 c) 2 d) 3 e) none of the above 18 R B A and A B and B C A B C S1 50 LONDON S2 10 PARIS S3 70 PARIS S4 50 LONDON S5 100 ATHENS R s highest normal form is A 1NF; B 2NF; C 3NF D BCNF; E None of the above 19 S (A, B, C, D) is a relation with functional dependencies [A, B] C C D S s highest normal form is A 1NF; B 2NF; C 3NF D BCNF; E None of the above 20 T(A, B, C) is a relation with functional dependencies [A, B] C C A T s highest normal form is A 1NF; B 2NF; C 3NF D BCNF; E None of the above 21.The following R1 and R2 are good decomposition of W W S J T SMITH MATH Prof. WHITE SMITH PHYSICS Prof. GREEN
12 JONES MATH Prof. WHITE JONES PHYSICS Prof. BROWN R1 S J R2 S T SMITH MATH SMITH Prof. WHITE SMITH PHYSICS SMITH Prof. GREEN JONES MATH JONES Prof. WHITE JONES PHYSICS JONES Prof. BROWN (a) True (b) False 22 The following relation ACP is 4NF, hence it has no anomaly AGENT COMPANY PRODUCT SMITH FORD CAR SMITH FORD TRUCK SMITH GM CAR SMITH GM TRUCK JONES FORD CAR JONES FORD TRUCK BROWN FORD CAR BROWN GM CAR BROWN TOYOTA CAR BROWN TOYOTA BUS A True B False C None of the above 23. How can you prove ACP can be lossless decomposed into three relations AC, CP and AP: AC CP AP Agent Company Company Product Agent Product Smith Ford Ford Car Smith Car Smith GM Ford Truck Smith Truck Jones Ford GM Car Jones Car Brown Ford GM Truck Jones Truck Brown GM TOYOTA Car Brown Car Brown TOYOTA TOYOTA Bus Brown Bus (a) ACP=AC CP AP (b) ACP=(AC CP) AP (c) ACP=AC (CP AP) (d) All are correct (e ) None of the above 24 Given a relation R (a, b, c, d, e) [b, e] is a CK (candidate key) d > a a > b Which are the correct CK A [b, e] B [b, e], [a, e] C [b, e], [a, e], [d, e] D [b, e], [a, e], [c, e], [d, e]
13 25 Given a relation R (a, b, c, d, e) [b, e] is a CK (candidate key) d > a a > b What is the normal form of R A 1NF; B 2NF; C 3NF D BCNF; E None of the above
14
Midterm 1 157A Fall /22
Midterm 1 157A Fall 2012 10/22 Class-id Name Part III Describe your contribution in the team project before mid night today. Part I Questions and Answers (10 pts EACH) 1. (DB3) Please write SQL for (a)
More informationDatabase design process
Database technology Lecture 2: Relational databases and SQL Jose M. Peña jose.m.pena@liu.se Database design process 1 Relational model concepts... Attributes... EMPLOYEE FNAME M LNAME SSN BDATE ADDRESS
More informationPart 1 on Table Function
CIS611 Lab Assignment 1 SS Chung 1. Write Table Functions 2. Automatic Creation and Maintenance of Database from Web Interface 3. Transforming a SQL Query into an Execution Plan in Relational Algebra for
More informationOverview Relational data model
Thanks to José and Vaida for most of the slides. Relational databases and MySQL Juha Takkinen juhta@ida.liu.se Outline 1. Introduction: Relational data model and SQL 2. Creating tables in Mysql 3. Simple
More informationDatabase Technology. Topic 3: SQL. Olaf Hartig.
Olaf Hartig olaf.hartig@liu.se Structured Query Language Declarative language (what data to get, not how) Considered one of the major reasons for the commercial success of relational databases Statements
More informationCIS611 Lab Assignment 1 SS Chung
CIS611 Lab Assignment 1 SS Chung 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying Over the database with SQL 2. Automatic Creation and Maintenance of Database
More informationCOSC344 Database Theory and Applications. σ a= c (P) S. Lecture 4 Relational algebra. π A, P X Q. COSC344 Lecture 4 1
COSC344 Database Theory and Applications σ a= c (P) S π A, C (H) P P X Q Lecture 4 Relational algebra COSC344 Lecture 4 1 Overview Last Lecture Relational Model This Lecture ER to Relational mapping Relational
More informationDatabase Technology. Topic 2: Relational Databases and SQL. Olaf Hartig.
Topic 2: Relational Databases and SQL Olaf Hartig olaf.hartig@liu.se Relational Data Model Recall: DB Design Process 3 Relational Model Concepts Relational database: represent data as a collection of relations
More informationSession Active Databases (2+3 of 3)
INFO-H-415 - Advanced Databes Session 2+3 - Active Databes (2+3 of 3) Consider the following databe schema: DeptLocation DNumber DLocation Employee FName MInit LName SSN BDate Address Sex Salary SuperSSN
More informationAnnouncement5 SQL5. Create%and%drop%table5. Basic%SFW%query5. Reading%a%table5. TDDD37%% Database%technology% SQL5
Announcement %% Database%technology% SQL Fang%Wei9Kleiner fang.wei9kleiner@liu.se hbp://www.ida.liu.se/~ Course%registration:%system%problems%from%registration% office.%be%patient. Registration%for%the%lab:%possible%without%being%
More informationSQL queries II. Set operations and joins
SQL queries II Set operations and joins 1. Restrictions on aggregation functions 2. Nulls in aggregates 3. Duplicate elimination in aggregates REFRESHER 1. Restriction on SELECT with aggregation If any
More informationCOSC344 Database Theory and Applications. Lecture 6 SQL Data Manipulation Language (1)
COSC344 Database Theory and Applications Lecture 6 SQL Data Manipulation Language (1) COSC344 Lecture 56 1 Overview Last Lecture SQL - DDL This Lecture SQL - DML INSERT DELETE (simple) UPDATE (simple)
More informationCOSC 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 information1. INTRODUCTION DTD-CODE USER GUIDE
1. INTRODUCTION - DTD-Code software is a product of DTDAUTO Technology Team, Vietnam. It is the professional software lookups fault codes of vehicle. - Product supported large expand database for all of
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 informationDr. Anis Koubaa. Advanced Databases SE487. Prince Sultan University
Advanced Databases Prince Sultan University College of Computer and Information Sciences Fall 2013 Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Anis Koubaa SE487
More informationAdvanced Databases. Winter Term 2012/13. Prof. Dr. Dietmar Seipel University of Würzburg. Advanced Databases Winter Term 2012/13
Advanced Databases Winter Term 2012/13 Prof. Dr. Dietmar Seipel University of Würzburg Prof. Dr. Dietmar Seipel Minit FName LName Sex Adress Salary N WORKS_FOR 1 Name Number Locations Name SSN EMPLOYEE
More informationIntroduction to SQL. ECE 650 Systems Programming & Engineering Duke University, Spring 2018
Introduction to SQL ECE 650 Systems Programming & Engineering Duke University, Spring 2018 SQL Structured Query Language Major reason for commercial success of relational DBs Became a standard for relational
More informationSome different database system architectures. (a) Shared nothing architecture.
Figure.1 Some different database system architectures. (a) Shared nothing architecture. Computer System 1 Computer System CPU DB CPU DB MEMORY MEMORY Switch Computer System n CPU DB MEMORY Figure.1 continued.
More informationQuery 2: Pnumber Dnum Lname Address Bdate 10 4 Wallace 291 Berry, Bellaire, TX Wallace 291 Berry, Bellaire, TX
5.11 No violation, integrity is retained. Dnum = 2 does not exist. This can be solved by adding a foreign key referencing the department table, so the operation does not execute. Dnum = 4 already exists,
More informationNOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE
Exams, Awards & Graduations NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE EXAM COVER SHEET EXAMINATION DETAILS Course Code/s: ISYS1055/1057 Course Name/s: Database Concepts Date of Exam: Sample
More informationTranslation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530
Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity
More informationQuerying a Relational Database COMPANY database For Lab4, you use the Company database that you built in Lab2 and used for Lab3
CIS30/530 Lab Assignment SS Chung Querying a Relational Database COMPANY database For Lab, you use the Company database that you built in Lab2 and used for Lab3 1. Update the following new changes into
More informationChapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries
Copyright 2004 Pearson Education, Inc. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries Copyright 2004 Pearson Education, Inc. 1 Data Definition, Constraints, and Schema Changes Used
More informationSQL STRUCTURED QUERY LANGUAGE
STRUCTURED QUERY LANGUAGE SQL Structured Query Language 4.1 Introduction Originally, SQL was called SEQUEL (for Structured English QUery Language) and implemented at IBM Research as the interface for an
More informationECE 650 Systems Programming & Engineering. Spring 2018
ECE 650 Systems Programming & Engineering Spring 2018 Introduction to SQL Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Structured Query Language SQL Major reason for commercial
More informationIntegrity Coded Relational Databases (ICRDB) - Protecting Data Integrity in Clouds
Integrity Coded Relational Databases (ICRDB) - Protecting Data Integrity in Clouds Jyh-haw Yeh Dept. of Computer Science, Boise State University, Boise, Idaho 83725, USA Abstract 1 Introduction Database-as-a-service
More informationRelational Calculus: 1
CSC 742 Database Management Systems Topic #8: Relational Calculus Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Relational Calculus: 1 Can define the information to be retrieved not any specific series
More informationIn Chapters 3 through 6, we presented various aspects
15 chapter Basics of Functional Dependencies and Normalization for Relational Databases In Chapters 3 through 6, we presented various aspects of the relational model and the languages associated with it.
More informationRelational Algebra & Calculus. CS 377: Database Systems
Relational Algebra & Calculus CS 377: Database Systems Quiz #1 Question: What is metadata and why is it important? Answer: Metadata is information about the data such as name, type, size. It is important
More informationInformation Systems for Engineers. Exercise 10. ETH Zurich, Fall Semester Hand-out Due
Information Systems for Engineers Exercise 10 ETH Zurich, Fall Semester 2017 Hand-out 08.12.2017 Due 15.12.2017 1. (Exercise 8.1.1 in [1]) Movies(title, year, length, genre, studioname, producercertnumber)
More informationJoins, NULL, and Aggregation
Joins, NULL, and Aggregation FCDB 6.3 6.4 Dr. Chris Mayfield Department of Computer Science James Madison University Jan 29, 2018 Announcements 1. Your proposal is due Friday in class Each group brings
More informationRelational Algebra. Spring 2012 Instructor: Hassan Khosravi
Relational Algebra Spring 2012 Instructor: Hassan Khosravi Querying relational databases Lecture given by Dr. Widom on querying Relational Models 2.2 2.1 An Overview of Data Models 2.1.1 What is a Data
More informationSQL: A COMMERCIAL DATABASE LANGUAGE. Data Change Statements,
SQL: A COMMERCIAL DATABASE LANGUAGE Data Change Statements, Outline 1. Introduction 2. Data Definition, Basic Constraints, and Schema Changes 3. Basic Queries 4. More complex Queries 5. Aggregate Functions
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Spring 2013 An Introductory Course on Database Systems http://www.it.uu.se/edu/course/homepage/dbastekn/vt13/ Uppsala Database Laboratory Department of Information Technology,
More informationSQL. Copyright 2013 Ramez Elmasri and Shamkant B. Navathe
SQL Copyright 2013 Ramez Elmasri and Shamkant B. Navathe Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database Copyright
More informationTranslation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530
Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity
More informationSunoco Global Full Synthetic ATF
SPECIFICATION ATF Esso LT 71141 SFU ATF Shell 3353 SFU ATF Shell 134 SFU ATF JWS 3309 SFU ATF Mobil ATF 3309 SFU ATF Shell 3403-M115 SFU ATF Shell M-1375.4 SFU ATF Shell LA 2634 SFU ATF Shell L12108 SFU
More informationChapter 18 Strategies for Query Processing. We focus this discussion w.r.t RDBMS, however, they are applicable to OODBS.
Chapter 18 Strategies for Query Processing We focus this discussion w.r.t RDBMS, however, they are applicable to OODBS. 1 1. Translating SQL Queries into Relational Algebra and Other Operators - SQL is
More informationCourse Notes on Relational Algebra
Course Notes on Relational Algebra What is the Relational Algebra? Relational Algebra: Summary Operators Selection Projection Union, Intersection, Difference Cartesian Product Join Division Equivalences
More informationCS5300 Database Systems
CS5300 Database Systems Views A.R. Hurson 323 CS Building hurson@mst.edu Note, this unit will be covered in two lectures. In case you finish it earlier, then you have the following options: 1) Take the
More informationNormalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design
1 Normalization What and Why Normalization? To remove potential redundancy in design Redundancy causes several anomalies: insert, delete and update Normalization uses concept of dependencies Functional
More informationData Definition Language (DDL), Views and Indexes Instructor: Shel Finkelstein
Data Definition Language (DDL), Views and Indexes Instructor: Shel Finkelstein Reference: A First Course in Database Systems, 3 rd edition, Chapter 2.3 and 8.1-8.4 Important Notices Reminder: Midterm is
More informationA taxonomy of SQL queries Learning Plan
A taxonomy of SQL queries Learning Plan a. Simple queries: selection, projection, sorting on a simple table i. Small-large number of attributes ii. Distinct output values iii. Renaming attributes iv. Computed
More informationDatabase Design Theory and Normalization. CS 377: Database Systems
Database Design Theory and Normalization CS 377: Database Systems Recap: What Has Been Covered Lectures 1-2: Database Overview & Concepts Lecture 4: Representational Model (Relational Model) & Mapping
More informationThomas Hirchak Company Market Report for 10/28/ /21/2017. Page: 1 13:24:34
Market Report for 10/28/2017 - Page: 1 (4) Blizzak 205/60/R16 NA Red 90.00 (4) Wintermark M & P225/60/R16 NA Red 90.00 Acura 1999 TL 172461 Red 575.00 Acura 1996 RL 172943 Red 275.00 Arrow Glass 1989 Carisma
More informationReprogram Vehicles Using The EASE Universal Reprogrammer II+ & Your PC
Reprogram Vehicles Using The EASE Universal Reprogrammer II+ & Your PC Do you know that many times reprogramming is the only way to repair a vehicle and eliminate false DTCs? Have you ever stopped working
More informationSQL-99: Schema Definition, Basic Constraints, and Queries. Create, drop, alter Features Added in SQL2 and SQL-99
SQL-99: Schema Definition, Basic Constraints, and Queries Content Data Definition Language Create, drop, alter Features Added in SQL2 and SQL-99 Basic Structure and retrieval queries in SQL Set Operations
More informationChapter 8. Joined Relations. Joined Relations. SQL-99: Schema Definition, Basic Constraints, and Queries
Copyright 2004 Pearson Education, Inc. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries Joined Relations Can specify a "joined relation" in the FROM-clause Looks like any other relation
More informationQuery Processing & Optimization. CS 377: Database Systems
Query Processing & Optimization CS 377: Database Systems Recap: File Organization & Indexing Physical level support for data retrieval File organization: ordered or sequential file to find items using
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 informationCSC 742 Database Management Systems
CSC 742 Database Management Systems Topic #16: Query Optimization Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Agenda Typical steps of query processing Two main techniques for query optimization Heuristics
More informationFunctional Dependencies & Normalization for Relational DBs. Truong Tuan Anh CSE-HCMUT
Functional Dependencies & Normalization for Relational DBs Truong Tuan Anh CSE-HCMUT 1 2 Contents 1 Introduction 2 Functional dependencies (FDs) 3 Normalization 4 Relational database schema design algorithms
More informationGuides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage
Guides for Installing MS SQL Server and Creating Your First Database Installing process Please see more guidelines on installing procedure on the class webpage 1. Make sure that you install a server with
More informationChapter 5 Relational Algebra. Nguyen Thi Ai Thao
Chapter 5 Nguyen Thi Ai Thao thaonguyen@cse.hcmut.edu.vn Spring- 2016 Contents 1 Unary Relational Operations 2 Operations from Set Theory 3 Binary Relational Operations 4 Additional Relational Operations
More informationECE 650 Systems Programming & Engineering. Spring 2018
ECE 650 Systems Programming & Engineering Spring 2018 Relational Databases: Tuples, Tables, Schemas, Relational Algebra Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Overview
More informationChapter 8: The Relational Algebra and The Relational Calculus
Ramez Elmasri, Shamkant B. Navathe(2017) Fundamentals of Database Systems (7th Edition),pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7. Chapter 8: The Relational Algebra and The Relational Calculus
More informationChapter 8: Relational Algebra
Chapter 8: elational Algebra Outline: Introduction Unary elational Operations. Select Operator (σ) Project Operator (π) ename Operator (ρ) Assignment Operator ( ) Binary elational Operations. Set Operators
More informationInformal Design Guidelines for Relational Databases
Outline Informal Design Guidelines for Relational Databases Semantics of the Relation Attributes Redundant Information in Tuples and Update Anomalies Null Values in Tuples Spurious Tuples Functional Dependencies
More informationCOSC344 Database Theory and Applications. COSC344 Lecture 15 1
COSC344 Database Theory and Applications Lecture 15 Views & NULL COSC344 Lecture 15 1 Lecture Schedule Lecture 15 Views and Null Lecture 16 DBMS Architecture and System Catalog Lecture 17 Transactions
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 informationDatabase Systems. Basics of the Relational Data Model
Database Systems Relational Design Theory Jens Otten University of Oslo Jens Otten (UiO) Database Systems Relational Design Theory INF3100 Spring 18 1 / 30 Basics of the Relational Data Model title year
More informationPES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II
PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:
More informationAC61/AT61 DATABASE MANAGEMENT SYSTEMS DEC 2013
Q.2 a. Define the following terms giving examples for each of them: Entity, attribute, role and relationship between the entities b. Describe any four main functions of a database administrator. c. What
More informationWe shall represent a relation as a table with columns and rows. Each column of the table has a name, or attribute. Each row is called a tuple.
Logical Database design Earlier we saw how to convert an unorganized text description of information requirements into a conceptual design, by the use of ER diagrams. The advantage of ER diagrams is that
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 informationChapter 6: RELATIONAL DATA MODEL AND RELATIONAL ALGEBRA
Chapter 6: Relational Data Model and Relational Algebra 1 Chapter 6: RELATIONAL DATA MODEL AND RELATIONAL ALGEBRA RELATIONAL MODEL CONCEPTS The relational model represents the database as a collection
More informationRelational Database design. Slides By: Shree Jaswal
Relational Database design Slides By: Shree Jaswal Topics: Design guidelines for relational schema, Functional Dependencies, Definition of Normal Forms- 1NF, 2NF, 3NF, BCNF, Converting Relational Schema
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 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 informationOutline. Textbook Chapter 6. Note 1. CSIE30600/CSIEB0290 Database Systems Basic SQL 2
Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries in SQL INSERT, DELETE, and UPDATE Statements in SQL Additional Features of SQL Textbook Chapter 6 CSIE30600/CSIEB0290
More informationCS 338 Basic SQL Part II
CS 338 Basic SQL Part II Bojana Bislimovska Spring 2017 Major research Outline Basic Retrieval Queries Exercises Ambiguous Attribute Names Major research Same name can be used for two or more attributes
More informationCSIE30600 Database Systems Basic SQL 2. Outline
Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries in SQL INSERT, DELETE, and UPDATE Statements in SQL Additional Features of SQL CSIE30600 Database Systems
More informationRelational Model. CS 377: Database Systems
Relational Model CS 377: Database Systems ER Model: Recap Recap: Conceptual Models A high-level description of the database Sufficiently precise that technical people can understand it But, not so precise
More informationCS 2451 Database Systems: Database and Schema Design
CS 2451 Database Systems: Database and Schema Design http://www.seas.gwu.edu/~bhagiweb/cs2541 Spring 2018 Instructor: Dr. Bhagi Narahari Relational Model: Definitions Review Relations/tables, Attributes/Columns,
More informationPractical Project Report
Practical Project Report May 11, 2017 I. People: II. Roles: Effort in both coding PL/SQL and writing III. Introduction: The topic of my project is DB queries using Oracle PL/SQL. This is my first time
More informationSQL- Updates, Asser0ons and Views
SQL- Updates, Asser0ons and Views Data Defini0on, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descrip0ons of the tables (rela0ons) of a database CREATE TABLE In SQL2, can use the
More informationCS 338 Nested SQL Queries
CS 338 Nested SQL Queries Bojana Bislimovska Spring 2017 Exercises 2. A database for an organization that shelters animals, and people can go and adopt animals that they shelter, has the following set
More informationSimple SQL Queries (contd.)
Simple SQL Queries (contd.) Example of a simple query on one relation Query 0: Retrieve the birthdate and address of the employee whose name is 'John B. Smith'. Q0: SELECT BDATE, ADDRESS FROM EMPLOYEE
More informationLAUNCH. X-431 GX3 sold as X-431 Master!!!
LAUNCH X-431 GX3 sold as X-431 Master!!! In March 2010, Launch Polska bought one unit distributed by Firma Handlowo Uslugowa, KS Elektronika w a so-called X-431 Master unit, suspected to be an X-431 GX3
More informationThe Relational Model and Normalization
The Relational Model and Normalization 1. Introduction 2 2. Relational Model Terminology 3 4. Normal Forms 11 5. Multi-valued Dependency 21 6. The Fifth Normal Form 22 The Relational Model and Normalization
More informationChapter 6 The Relational Algebra and Calculus
Chapter 6 The Relational Algebra and Calculus 1 Chapter Outline Example Database Application (COMPANY) Relational Algebra Unary Relational Operations Relational Algebra Operations From Set Theory Binary
More informationApplied Databases. Sebastian Maneth. Lecture 5 ER Model, normal forms. University of Edinburgh - January 25 th, 2016
Applied Databases Lecture 5 ER Model, normal forms Sebastian Maneth University of Edinburgh - January 25 th, 2016 Outline 2 1. Entity Relationship Model 2. Normal Forms Keys and Superkeys 3 Superkey =
More informationSQL Introduction. CS 377: Database Systems
SQL Introduction CS 377: Database Systems Recap: Last Two Weeks Requirement analysis Conceptual design Logical design Physical dependence Requirement specification Conceptual data model (ER Model) Representation
More informationCSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization
CSE 544 Principles of Database Management Systems Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization References R&G Book. Chapter 19: Schema refinement and normal forms Also relevant to
More informationMapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise
CSC 74 Database Management Systems Topic #6: Database Design Weak Entity Type E Create a relation R Include all simple attributes and simple components of composite attributes. Include the primary key
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 informationDatabase Modifications and Transactions
Database Modifications and Transactions FCDB 6.5 6.6 Dr. Chris Mayfield Department of Computer Science James Madison University Jan 31, 2018 pgadmin from home (the easy way) 1. Connect to JMU s network
More informationZed-FULL- Immobiliser Solutions by IEA
Zed-FULL- Immobiliser Solutions by IEA Zed Full is the most professional and the unique all in one immobiliser device in the world with these features; Fix and crypto transponder cloning, Remote cloning
More informationRelational Design 1 / 34
Relational Design 1 / 34 Relational Design Basic design approaches. What makes a good design better than a bad design? How do we tell we have a "good" design? How to we go about creating a good design?
More informationDATABASE CONCEPTS. Dr. Awad Khalil Computer Science & Engineering Department AUC
DATABASE CONCEPTS Dr. Awad Khalil Computer Science & Engineering Department AUC s are considered as major components in almost all recent computer application systems, including business, management, engineering,
More informationChapter 10. Normalization. Chapter Outline. Chapter Outline(contd.)
Chapter 10 Normalization Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant Information in Tuples and Update Anomalies 1.3 Null
More informationThe Relational Algebra and Calculus. Copyright 2013 Ramez Elmasri and Shamkant B. Navathe
The Relational Algebra and Calculus Copyright 2013 Ramez Elmasri and Shamkant B. Navathe Chapter Outline Relational Algebra Unary Relational Operations Relational Algebra Operations From Set Theory Binary
More informationPrecision Tec Diagnostics PO Box 2431 Cartersville, GA
Precision Tec Diagnostics PO Box 2431 Cartersville, GA 30120 e-mail: toolsupport@precisiontec.us info@precisiontec.us iscan3 PLATINUM provides a powerful tool for vehicle diagnostics. The intuitive user
More informationDBMS LAB SESSION PAVANKUMAR MP
DBMS LAB SESSION Pavan Kumar M.P B.E,M.Sc(Tech) by Research,(Ph.D) Assistant Professor Dept of ISE J.N.N.College Of Engineering Shimoga http://pavankumarjnnce.blogspot.in Consider the schema for Company
More informationMaking Better Features: Principal Components Analysis and Other Data Transformations
Making Better Features: Principal Components Analysis and Other Data Transformations 36-350: Data Mining September 27, 2006 Reading: Sections 2.4, 3.4, 3.5 and 3.6 in the textbook, especially Section 3.6
More informationChapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement
Chapter 4 Basic SQL Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured Query Language Statements for data definitions, queries,
More informationRELATIONAL DATA MODEL
RELATIONAL DATA MODEL 3.1 Introduction The relational model of data was introduced by Codd (1970). It is based on a simple and uniform data structure - the relation - and has a solid theoretical and mathematical
More informationSKP-900 User s Manual
SKP-900 User s Manual 1. Introduction SuperOBD SKP-900 Key Programmer is a hand-held device for reading and programming auto transponder keys, auto remote keys, and auto smart keys. It is strong in functions,
More information