Introduction to Database Systems Exam Preparation.

Slides:



Advertisements
Similar presentations
UFCE8V-20-3 Information Systems Development 3 (SHAPE HK) Lecture 1 Module Introduction & Outline.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.
Relational Databases Chapter 4.
CSCI 150 Database Applications Chapter 1 – Getting Started.
Database Design Overview. 2 Database DBMS File Record Field Cardinality Keys Index Pointer Referential Integrity Normalization Data Definition Language.
Chapter 2 Database System Concepts and Architecture
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Nichelle K. Norris IS 373: World Wide Web Standards.
CS2008/CS5035 Exam Preparation. Dept. of Computing Science, University of Aberdeen2 Organization of Lecture Notes Group 1 - SQL –L1 – Introduction –L2.
Introduction to DBMS and SQL Introduction to DBMS and SQL GUIDED BY : MR. YOGESH SAROJ (PGT-CS) MR. YOGESH SAROJ (PGT-CS) Presented By : JAYA XII –COM.
Database Lecture # 1 By Ubaid Ullah.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Overview of a Database Management System
Introduction. 
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Database Technical Session By: Prof. Adarsh Patel.
Database System Concepts and Architecture
CMU SSD7: Database Systems
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
SQL 101 for Web Developers 14 November What is a database and why have one? Tables, relationships, normalization SQL – What SQL is and isn’t – CRUD:
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
1 What is database 2? What is normalization? What is SQL? What is transaction?
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
MySQL Database Connection
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Database Design Methodology. Lesson 1: Introduction to Databases.
MySQL Database Management Systems Universitas Muhammadiyah Surakarta Yogiek Indra Kurniawan.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
CHAPTER 6: INTRODUCTION TO SQL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
DBSQL 5-1 Copyright © Genetic Computer School 2009 Chapter 5 Structured Query Language.
Controlling User Access. 2 home back first prev next last What Will I Learn? Compare the difference between object privileges and system privileges Construct.
UNIVERSITAS MUHAMMADIYAH SURAKARTA DATABASE MANAGEMENT SYSTEM - INTRODUCTION.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
Databases. Revision tip: Focus on the things you find difficult first.
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
(SQL - Structured Query Language)
Secure Authentication. SQL Injection Many web developers are unaware of how SQL queries can be tampered with SQL queries are able to circumvent access.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 3: Relational Databases
CSM06: Information Retrieval Notes about writing coursework reports, revision and examination.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 6: INTRODUCTION.
In this session, you will learn to: Implement triggers Implement transactions Objectives.
SQL Basics Review Reviewing what we’ve learned so far…….
Slide Set #24: Database security SY306 Web and Databases for Cyber Operations.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Fundamental of Database Systems
PGT(CS) ,KV JHAGRAKHAND
Chapter 2 Database System Concepts and Architecture
Introduction To Database Systems
SQL 101.
مقدمة في قواعد البيانات
SQL Fundamentals in Three Hours
SQL .. An overview lecture3.
Chapter # 7 Introduction to Structured Query Language (SQL) Part I.
Lecuter-1.
Presentation transcript:

Introduction to Database Systems Exam Preparation

2 Organization of Lecture Notes Group 1 - SQL –L1 – Introduction –L2 – Relational Model –L3 – SQL –I –L4 – SQL –II –L5 – SQL – III –L6- Data Definition & Integrity Constraints – Create Table etc –L7 – 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 & 11 – Database Design: 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 –L17 – Query Processing –L18 – File Organization & Indexing –L22 – B+-Trees Group 5 – Systems/Applications –L19 – MySQL –L20 – Spatial Databases

3 Exam Structure Answer 3 out of 4 questions in 2 hours but you MUST answer Question 1. –Q1: Database Design or SQL –Q2: Database Design or SQL –Q3: Other –Q4: 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 35 minutes per question

4 Question Structure The questions aim to test your knowledge and understanding Each question (25 marks) will be divided approximately into 3 levels: –Bookwork: (3-6) – “knowledge” - what all of you should know! –Seen: (10) – “understanding” - can you solve a problem you've seen ? –Unseen: (9-12) – “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.

5 Marking Strategy(1) You can exploit the way examiners mark papers... Most examiners “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

6 Marking Strategy(2) Your strategy should be to make the examiners work as hard as possible: –Always attempt every part of your chosen 3 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

7 Student FAQs 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

8 Student FAQs Do I need to memorise all those SQL statements ? You should know how to use common statements, especially SELECT DML (SELECT, INSERT, DELETE, UPDATE) DDL (CREATE, ALTER, DROP) DCL (GRANT, REVOKE) Should 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 the syntax of all the SQL statements

9 More FAQs 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 thing 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!!

10 Example “Database Design” Questions What are ‘Integrity Constraints’? What role do they play in a DBMS? (5) Explain the advantages of using database systems in place of file systems.(3) Explain the differences between the notions of DataBase (DB), DataBase Management System (DBMS) and DataBase System (DBS). (2)

11 Example “Database Design” Questions What is meant by second normal form (2NF)? Examine the following table to check if it is in 2NF. If yes, explain your answer. Else convert the table into 2NF. (5) Staff No Branch No branchAddressnamepositionhoursPer Week S4555B2City Center Plaza, Seattle, WA EllenAssistant16 S3209B416 – 14th Avenue, Seattle, WA EllenAssistant9 S0912B2City Center Plaza, Seattle, WA Dave Sinclair Assistant14 S8743B416 – 14th Avenue, Seattle, WA Dave Sinclair Assistant10

12 Example “SQL” Questions Video ID TitleCopyri ghtYea r RatingRent Per Day LengthForma t Category ID 1Under Siege £ minNTSC3 2Batman2001PG£ minPAL7 3A Few Good men £ minNTSC8 Using only the Videos table, write an SQL query to show the oldest video (oldest video is the one with the earliest copyright year). (5)

13 Example “SQL” Questions In SQL, give one example of each of the following types of statements statements (use the Videos table if you need to refer to a table in your answer): –A Data Manipulation Language (DML) statement (1) –A Data Definition Language (DDL) statement (1) –A Data Control Language (DCL) statement (1) Transactions in a multi-user relational database system sometimes enter into a deadlock. Describe when a deadlock might occur and explain how deadlocks are usually detected and resolved.(5)

14 Example “Other” Questions What are the different types of queries that spatial databases support? Describe one index scheme you will use to enhance the performance of spatial queries. (4) What does the abbreviation ‘BLOB’ stand for? In the context of web-based database applications, give examples of three types of BLOB data. (4) With the help of a sketch, explain the various stages in which a request for a php file that contains MySQL queries is processed by a web server.(4)

15 Example “Other” Questions What is the ‘Lost Update’ problem? Explain how locks can prevent this problem occuring in a multi-user database environment. (4) In relational databases, what is an index? With the help of the Customers table explain how indexing works. (5) The acronym “ACID” represents four fundamental requirements for database transactions. What does “ACID” stand for, and briefly describe the four requirements it represents?(4)