Databases Lesson 2.

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Database vocabulary. Data Information entered in a database.
Content 15.1 Basic features Types of database Data structures 15.2 Creating a database Screen layout Entering data Editing data 15.3 Displaying data Searching.
College of Information Technology & Design
Chapter 2.7 Data management.
Databases. What is a database? It is a collection of information, which can be searched and sorted. It can be information about anything. Toys, pupils,
Methods of Access Serial Sequential Indexed Sequential Random Access
Chapter 6: Arrays Java Software Solutions for AP* Computer Science
CPS120: Introduction to Computer Science Searching and Sorting.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
DATA INFORMATION.
Unit  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);
File Organization Techniques
ITEC 2620A Introduction to Data Structures
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
The Fun That Is File Structures Pages By: Christine Zeitschel.
Data and its manifestations. Storage and Retrieval techniques.
CHAPTER 09 Compiled by: Dr. Mohammad Omar Alhawarat Sorting & Searching.
Database A database program is a piece of software to organize and sort information. It creates an electronic list of information that can be sorted very.
Up up and away You have had a try at being a wizard, now it is time to be a superhero. Up, Up and Away You are a budding superhero. But the problem is.
A Level Computing#BristolMet Session Objectives#U2 S7 MUST understand the difference between an array and record SHOULD be able to estimate the size of.
Now, please open your book to page 60, and let’s talk about chapter 9: How Data is Stored.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Organization of Information. Files, records and fields Paper files  computer files E.g. customer accounts information stored in a bank Customer name,
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
FILE ORGANIZATION.
Chapter 11: Sequential File Merging, Matching, and Updating Programming Logic and Design, Third Edition Comprehensive.
11 Chapter 111 Sequential File Merging, Matching, and Updating Programming Logic and Design, Second Edition, Comprehensive 11.
CPS120: Introduction to Computer Science Sorting.
( ) 1 Chapter # 8 How Data is stored DATABASE.
Algorithms and Flowcharts
CPS120: Introduction to Computer Science Sorting.
Learning outcomes 5 Developing Code – Using Flowcharts
Lesson 10 Databases.
The CPU, RISC and CISC Component 1.
Understanding Algorithms and Data Structures
Course Developer/Writer: A. J. Ikuomola
Databases.
Learning Objectives Today we will Learn:
GO! with Microsoft Office 2016
3.2.3 Data types and data structures
Creating a Database Microsoft Access.
IGCSE 6 Cambridge Effectiveness of algorithms Computer Science
records Database Vocabulary It can be useful to collect information.
Databases.
GO! with Microsoft Access 2016
FILE ORGANIZATION.
GCSE Computing Databases.
Please use speaker notes for additional information!
Programming Logic and Design Fourth Edition, Comprehensive
Data Structures – 1D Lists
Files [Computing] Computing.
Mini Python Project Lesson 3.
DATABASES.
Hash Tables Chapter 12 discusses several ways of storing information in an array, and later searching for the information. Hash tables are a common.
Databases.
ITEC 2620M Introduction to Data Structures
Flat Files & Relational Databases
Principles of Computing – UFCFA3-30-1
Databases.
Please use speaker notes for additional information!
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Spreadsheets, Modelling & Databases
Hash Tables Chapter 12 discusses several ways of storing information in an array, and later searching for the information. Hash tables are a common.
Unit Databases.
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Sunday, 28 April 2019.
Principles of Computing – UFCFA3-30-1
Cycle 3: Unit 27 Lessons 104 – 111.
Presentation transcript:

Databases Lesson 2

Learning Outcomes LO1: Be able to apply previous learning about key database key features/terms to an exam style question. LO2: Be able to define different types of file organization. LO3: Apply knowledge of serial, sequential and indexed sequential files to exam based questions.

Starter Exam Board Mark Scheme: -Swap questions with the person next to you and answer their question. -Give it back to your partner to mark. Pupils mark answers and then answer each others questions

CRUD A Database is handled by Software. Database software has to be able to: CREATE RETRIEVE UPDATE DELETE Similar in Python you could do all of these things. You could for instance create an address book in python where you can store data about a person (create it), then call upon it (retrieve it) you can change the program in python to add new data to the file or write different data (update) and you can also delete data that is no longer required (delete).

How the data is stored The purpose of the database affects the way that data is stored, organized and retrieved. There are different types of file organization you need to know about: Serial Files Sequential Files Indexed sequential Files

Serial File Simplest type of file structure. With a serial file structure, the records are stored one after the other without any logical order. When new records need to be added to the file they are appended to the end of the file. input search item go to first item in file repeat if item = search item then output item: Else move to next item until item found or no more data endif output item not found Write the pseudo code for finding information in a serial file A shopping list is an no computerized example serial file. (A collection of records, no particular order) In a very large database it would even take a computer a large amount of time to search through every piece of data until you find the one you want. Pupils write pseudo code Link to previous slide and python All you have to do is start at the first data item if its not the correct one move onto the next piece of data and so on….. A Loop can be written to do this expressed as an algorithm:

Sequential File If the data in a serial file is in some sort of order, perhaps based on an account number, the file is sequential (key fields)- the data is in some sequence.

A collection of records Stored in key sequence Adding/deleting record requires making new file (so that the sequence is maintained) Used as master files Ways of searching a sequential file: -Binary Search -Use an Index Pupils makes notes Well known algorithms that’s can find items in an ordered file such as: Binary search= binary search works by looking at the middle record and deciding whether the wanted item is before or after it, then repeating the process . At each step the amount of data is halved. Using an index= another way of searching a sequential file is to use an index. Like an index in a book. The software looks up the position of the item in the index, goes straight to the part of the file where the required data is, then does a serial search there.

Indexed sequential file A sequential file that is accessed using an index, which is a separate file. 1000 Copy diagram to help explain notes. Yellow pages is an example of a paper base indexed sequential file. How is it ordered so that you can get the information you want quickly? Alphabet index If it was just a list of services in the order they where added to the yellow pages when it was made would it be easy to find what you wanted? 2000

Serial and Sequential Files Knowing what a serial and sequential files are can you thinking of advantages and disadvantages of each? Advantages Disadvantages Pupils write a list of advantages and disadvantages from what they know? Serial: Advantages: easier for small sets of data Disadvantages: Cannot be used as master, Used as temporary transaction file,Records stored in the order received Sequential: Advantages: faster, good for large amounts of data Disadvantages:

Swap questions and answer each other questions. Plenary: Create your own exam questions and mark schemes for what you have learnt today. Swap questions and answer each other questions. Pupils create questions

Homework How does Google work? Is it sequential, indexed or serial? What would happen if Google stored their data for search engines using one of the other types?