CS2008/CS5035 Exam Preparation. Dept. of Computing Science, University of Aberdeen2 Organization of Lecture Notes Group 1 - SQL –L1 – Introduction –L2.

Slides:



Advertisements
Similar presentations
CS2008 Data Management CS5035 Introduction to Database Systems Nigel Beacham based on materials by Dr Yaji.
Advertisements

Database Design: ER Modelling
Basic SQL Introduction Presented by: Madhuri Bhogadi.
1 SQL Server Management Studio SQL DDL CREATE TABLE Constraints ALTER TABLE DROP TABLE The GUI way Steen Jensen, autumn 2013.
Introduction to Databases
Relational Databases Chapter 4.
Query Evaluation. An SQL query and its RA equiv. Employees (sin INT, ename VARCHAR(20), rating INT, age REAL) Maintenances (sin INT, planeId INT, day.
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
ER Modelling III Example Digital Voice Systems Data Modelling Deriving Tables Types Mapping to SQL DDL.
Murali Mani CS3431 – Database Systems I Introduction.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Attribute databases. GIS Definition Diagram Output Query Results.
Databases 2 Level 3, 10 credit module Prerequisite: Software System Components 2 (or some other introductory course in databases) 2 lectures &
 MODERN DATABASE MANAGEMENT SYSTEMS OVERVIEW BY ENGINEER BILAL AHMAD
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Entity/Relationship Modelling
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Database Systems Lecture 5 Natasha Alechina
Chapter 2 Database System Concepts and Architecture
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Introduction to Data bases concepts
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Database Lecture # 1 By Ubaid Ullah.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Chapters 17 & 18 Physical Database Design Methodology.
ITEC224 Database Programming
Presentation Handout EDBA – Module 8 Information Technology 21 st December 2014 By K.M.Prashanthan.
Database Technical Session By: Prof. Adarsh Patel.
Database System Concepts and Architecture
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
CS-1Q IM Revision 21 January Revision CS-1Q IM Lecture 10 Phil Gray Simon Gay.
CMU SSD7: Database Systems
CODD’s 12 RULES OF RELATIONAL DATABASE
I Copyright © Oracle Corporation, All rights reserved. Introduction.
FEN  Concepts and terminology  Operations (relational algebra)  Integrity constraints The relational model.
Page 1 Topic 4 Relational Databases CPS510 Database Systems Abdolreza Abhari School of Computer Science Ryerson University.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
1 What is database 2? What is normalization? What is SQL? What is transaction?
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Database Design Methodology. Lesson 1: Introduction to Databases.
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Component 4: Introduction to Information and Computer Science Unit 6a Databases and SQL.
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
DBSQL 5-1 Copyright © Genetic Computer School 2009 Chapter 5 Structured Query Language.
(SQL - Structured Query Language)
Introduction to Database Systems Exam Preparation.
CSC 405: Web Application Engineering II Course Preliminaries Course Objectives Course Objectives Students’ Learning Outcomes Students’ Learning Outcomes.
Chapter 3: Relational Databases
Day 1 - Introduction Topics To Be Covered Topics To Be Covered Why do we want a DBMS? Why do we want a DBMS? What does a DBMS do for me? What does a DBMS.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
TCCICOMPUTERCOACH ING.COM.  TCCI-Tririd Computer Coaching Institute provides best teaching in basic computer programming language at tcci-ahmedabad.
SQL Basics Review Reviewing what we’ve learned so far…….
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Fundamental of Database Systems
CS4222 Principles of Database System
Chapter 2 Database System Concepts and Architecture
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.
CPSC-310 Database Systems
Relational Algebra Chapter 4, Part A
Databases and Information Management
What is a Database and Why Use One?
Databases and Information Management
A Very Brief Introduction to Relational Databases
Presentation transcript:

CS2008/CS5035 Exam Preparation

Dept. of Computing Science, University of Aberdeen2 Organization of Lecture Notes Group 1 - SQL –L1 – Introduction –L2 – Relational Model –L3 – SQL –I - SQL Introduction –L4 – SQL –II – Aggregate Functions, Sub-queries –L5 – SQL – III - Joins –L6 - SQL – IV - Data Definition & Integrity Constraints – Create Table etc –L7 – SQL –V - Access Control & Views –Additional lecture notes on writing SQL select queries Group 2 – Database Design –L8 – Database Design: ER Modelling –L9 – Database Design: ER Modelling (Continued) –L10 – Logical Design –L11 – Normalization Group 3 – Database Connectivity –L12 – Database Programming – JDBC –L13 – Introduction to Web-based DBMS Technology –L14 – Web-based Database Programming with PHP Group 4 – Database Internals –L15 – Database Security –L16 – Transaction Management –L18 – Query Processing –L19 – File Organization & Indexing –L20 – B+-Trees Group 5 – Systems/Applications –L21 – MySQL –L22 – Spatial Databases

Dept. of Computing Science, University of Aberdeen3 Exam Structure Exam Paper: Answer 2 out of 3 questions in 2 hours –Q1: Database Design –Q2: SQL + Other –Q3: Other ‘Other’ could mean anything else in the course !! –DBMS internals, Database connectivity (JDBC, PHP) and Spatial databases Your strategy should be to –Take 5-10 minutes to look over the whole paper first –Then, aim for about 55 minutes per question

Dept. of Computing Science, University of Aberdeen4 Question Structure The questions aim to test your knowledge and understanding Each question (25 marks) will be divided approximately into 3 levels: –Bookwork: (<6) – “knowledge” - what all of you should know! –Seen: (10) – “understanding” - can you solve a problem you've seen ? –Unseen: (9) – “knowledge & understanding” – solving an unseen problem For a “pass”, you'll need to get about 12/25... For a “first”, you'll need to get about 20/25 or more.

Dept. of Computing Science, University of Aberdeen5 Marking Strategy You can exploit the way examiners mark papers... Most examiners, including me, “work towards the middle”: –We try to give marks for poor answers –We try to take away marks from good answers –Intermediate answers are hardest to mark! Your strategy should be to make the examiners work as hard as possible: –Always attempt every part of your chosen 2 questions!! Record all the known facts and try to derive any new facts – required solution could be among the derived facts –If you have time at the end, go back and check your answers!!

Dept. of Computing Science, University of Aberdeen6 Common Questions Will there be any essay-type questions ? –No - but some answers may need a short paragraph Will there be a question on topic X ? –Maybe Will there be any PHP/Java/JDBC programming questions ? –No, but you should be prepared to answer general questions on any of these areas Do I need to memorise all those SQL statements ? –You should know how to use common DML/DDL/DCL statements, especially SELECT, and be able to say what most other statements do... For a “pass” you just need to learn SELECT statements in all its forms For a “first” you should learn all the SQL statements

Dept. of Computing Science, University of Aberdeen7 More Questions Will we have to draw any diagrams ? –Probably - you will not be required to draw complex figures, but you might be asked for a sketch to illustrate your answer... Do we need to read more about Spatial Databases ? –No - The lecture notes should be enough. –Same for MySQL and B+Trees Can we get solutions for past papers ? –No - we never give out exam paper solutions: the main reason is we sometimes want to re-use questions!!

Dept. of Computing Science, University of Aberdeen8 Example “Bookwork” Questions Describe the difference between file-based and database systems (3). Describe the three major abstractions in EER modelling (3). The various language statements in SQL are often classified as DDL (Data Definition Language), DML (Data Manipulation Language), and DCL (Data Control Language) statements. Give one simple example of each type of statement (3). In SQL, explain the difference between: DELETE FROM Staff; and DROP TABLE Staff; (2).

Dept. of Computing Science, University of Aberdeen9 Example “Seen” Questions Transform the EER fragment shown below into a set of relations and show the primary and foreign keys of each resulting table (6). Briefly explain how relational database query engines use relational algebra to find efficient strategies to execute SQL queries (5). The tables below describe the nuts and bolts stocked by a small hardware shop. (i) Write an SQL query to show the different types of nut stocked (3). (ii) Write an SQL query to select all the types of nut which will fit a 6mm-thread brass bolt. (5) In spatial databases, explain with the aid of a sketch how a bounding box index can help accelerate the search for objects within a given query window (5).

Dept. of Computing Science, University of Aberdeen10 Example “Unseen” Questions Given the set of related entities with attributes specified in Figure X, create a hierarchy with them. Discuss why some entities do not fit into your hierarchy (6). With reference to the hardware shop tables, the following query selects the suppliers of brass bolts costing less than 5p each: SELECT S.Name FROM Supplier S, Bolt B WHERE S.Id = B.SupplierNo AND B.Price < 0.05; Using the usual relational algebra notation, write this query in relational algebra in three different but equivalent ways. You may use the given table aliases in your answer (6).