SE305 Database System Technology 23/10/2014 Quiz-2.

Slides:



Advertisements
Similar presentations
Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
Advertisements

Relational Database Design Via ER Modelling
Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
Review for Final Test Indra Budi
Data Warehousing/Mining 1 Data Warehousing/Mining Comp 150 Aggregation in SQL (not in book) Instructor: Dan Hebert.
The Relational Model System Development Life Cycle Normalisation
Databases Revision.
Structured query language This is a presentation by JOSEPH ESTRada on the beauty of Structured Query Language.
Modeling Data The Entity Relationship Model (ER) For Database Design.
CSEN 5314 Quiz 3.
SQL Tutorial Introduction to Database. Learning Objectives  Read and write Data Definition grammar of SQL  Read and write data modification statements.
MySQL Tutorial Introduction to Database. Learning Objectives  Read and write Data Definition grammar of SQL  Read and write data modification statements.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Reduction of an E-R Schema to Tables A database which conforms to an E-R diagram can be represented.
©Silberschatz, Korth and Sudarshan3.1Database System Concepts - 6 th Edition SQL Schema Changes and table updates instructor teaches.
Dr. Kalpakis CMSC 661, Principles of Database Systems Overview of core undergraduate material.
Amity School of Engineering & Technology E-R Diagram for a University Enterprise.
Chapter 16 (p481 – 485, ) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Chapter 91 ER & EER to Relational Mapping. Chapter 92 ER to Relational Mapping Step 1: For each regular entity type E in the ER schema, create a relation.
1 Relational model concepts Key constraints Referential integrity constraint Steen Jensen, autumn 2013.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 3: Introduction.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Advanced SQL Murat Kantarcioglu Adapted from Silberchatz et al. slides.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Chapter 2 Adapted from Silberschatz, et al. CHECK SLIDE 16.
Chapter 3: Relational Model  Structure of Relational Databases  Normal forms (chap. 7)  Reduction of an E-R Schema to Relational (Sect. 2.9)  Relational.
ICOM 5016 – Introduction to Database Systems Lecture 5b Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Week 10 Quiz 9 Answers Group 28 Christine Hallstrom Deena Phadnis.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 4 Mapping an ER model to tables © Akhilesh Bajaj,
Relational Model By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany) DIRECTOR ARUNAI ENGINEERING COLLEGE TIRUVANNAMALAI.
ICOM 5016 – Introduction to Database Systems Lecture 9 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
COMP231 Tutorial 1 ER Model and ER to Relational Schema.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
INTRODUCTION TO SQL Database System Concepts. Agenda Overview of the SQL Query Language Data Definition Basic Query Structure Additional Basic Operations.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
Chapter 2: Intro to Relational Model. 2.2 Example of a Relation attributes (or columns) tuples (or rows)
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 7: Entity-Relationship.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
ER- Relational Mapping (Based on Chapter 9 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Jennifer Widom Relational Databases The Relational Model.
Chapter 3: Relational Databases
Chapter 2: Entity-Relationship Model. 3.2 Chapter 2: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Standard language for querying and manipulating data Structured Query Language Many standards out there: ANSI SQL, SQL92 (a.k.a. SQL2), SQL99 (a.k.a. SQL3),
Module 2: Intro to Relational Model
Relational Model By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany)
Chapter 3 Introduction to SQL(3)
Entity-Relationship Model
Tables and Their Characteristics
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
Chapter 7 Entity-Relationship Model
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
CIS 336 PAPERS Lessons in Excellence-- cis336papers.com.
CIS 336 STUDY Education for Service-- cis336study.com.
Order Database – ER Diagram
More SQL: Complex Queries, Triggers, Views, and Schema Modification
The Relational Model Textbook /7/2018.
Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. The existence of a weak entity set depends on the.
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
Example of a Relation attributes (or columns) tuples (or rows)
Chapter 2: Intro to Relational Model
Presentation transcript:

SE305 Database System Technology 23/10/2014 Quiz-2

1. If we just want to delete all tuples in a table, which SQL query shall we choose? a) delete * from t; b) delete from t; c) drop table t; d) drop * table t; 2. Consider the query select sum (salary) from instructor, which statement is NOT correct? a) This query totals all salaries b) Ignores null values amounts c) Result is 0 if there is no non-null amount d) The column name for the sum is sum(salary)

3.Which statement is NOT correct? a) SQL allows duplicates in relations as well as in query results b) The From clause corresponds to the cartesian product operation c) ‘Intro%’ matches ‘Introduction’ d) 5+null returns 5 4. Consider schema R(a,b,c), which query is correct? a) SELECT a FROM R GROUP BY b,c b) SELECT a,b FROM R GROUP BY c c) SELECT avg(a),min(b) FROM R GROUP BY c d) SELECT a,b FROM R GROUP BY b

7. In ER diagram identifying relationship is depicted by? a) Triangle b) Rectangle c) Double diamond d) Cycle 8. Which is the best schema for the following ER diagram? a) advisor=(s_id,i_id) b) advisor=(s_name,i_id) c) advisor=(s_id,i_name) d) advisor=(s_name,i_name)

9. Which information is NOT useful in create a schema to represent aggregation? a) primary key of the aggregated relationship b) the primary key of the associated entity set c) any descriptive attributes d) attributes of the aggregated relationship 10. Which design is better for a multivalued attribute M of an entity E? a) represent M in a single table b) represent M with other attributes together c) represent M with composite attributes d) represent M in a relationship associated with E