CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.

Slides:



Advertisements
Similar presentations
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Advertisements

Organisation Of Data (1) Database Theory
Database Management Systems and Enterprise Software
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Lecture-5 Though SQL is the natural language of the DBA, it suffers from various inherent disadvantages, when used as a conventional programming language.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Introduction to Structured Query Language (SQL)
Structured Query Language Part I Chapter Three CIS 218.
Databases Ms. Scales. What is a Database? Database  A collection of data organized for fast search and retrieval  Examples: Telephone Directories Hospital.
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Querying and Sorting IT Key Ideas, Dynamic Database Systems, 2002 Chapter 3.
Concepts of Database Management, Fifth Edition
Chapter 5 Introduction to SQL. Structured Query Language = the “programming language” for relational databases SQL is a nonprocedural language = the user.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
Database Management Systems. This lesson includes the following sections  Databases and Management Systems Working with a Database Enterprise Software.
ASP.NET Programming with C# and SQL Server First Edition
15 Structured Query Language (SQL). 2 Objectives After completing this section, you should be able to: Understand Structured Query Language (SQL) and.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Introduction to Microsoft Access Overview 1. Introduction What is Access? A relational database management system What is a Relational Database? Organized.
Analyzing Data For Effective Decision Making Chapter 3.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Slide 1 Standard Grade Computing Databases. Slide 2 Standard Grade Computing Definitions DatabaseA database is a structured collection of similar information.
Concepts of Database Management Seventh Edition
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
Chapter 17 Creating a Database.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
Chapter 9 Query-by-Example Pearson Education © 2009.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
ITGS Databases.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
Access Chapter 3-Obtaining Answers to Your Data Questions.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Databases.  A database is simply a collection of information stored in an orderly manner.  A database can be as simple as a birthday book, address book.
IS6146 Databases for Management Information Systems Lecture 1: Introduction to IS6146 Rob Gleasure robgleasure.com.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
COM621: Advanced Interactive Web Development Lecture 11 MySQL – Data Manipulation Language.
Web Systems & Technologies
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Query Methods Simple SQL Statements Start ….
Chapter 5 Introduction to SQL.
Query Methods Where Clauses Start ….
MySQL Subquery Source: Dev.MySql.com
Databases.
 2012 Pearson Education, Inc. All rights reserved.
Basic select statement
ATS Application Programming: Java Programming
Chapter 12 Information Systems.
JDBC.
Database Vocabulary Terms.
Chapter 2 Database Environment.
Access: SQL Participation Project
Database Design and Development
Data Model.
Introduction To Structured Query Language (SQL)
Spreadsheets, Modelling & Databases
Chapter 9 Query-by-Example Pearson Education © 2009.
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
Query-by-Example Transparencies
Database Management Systems and Enterprise Software
Presentation transcript:

CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING

 In this part of the topic we said we would look at the following… 1.Types of Storage Hardware 2.Techniques for Data Security 3.Searching, Selecting and Sorting STORAGE AND RETRIEVAL

 Searching is looking through a collection of data in order to locate required data. Selecting is a combined process used to identify the data needing to be retrieved. eg. Looking for Year 7 students in Currey House  Sorting involves arranging a collection of items in some specified order eg. Alphabetical or Numerical. Sorted data is easier for people to understand and as such it becomes information (data with meaning). eg. Ordering Year 7 students in Currey house by alphabetical order A – Z. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - Indexes In a database table the order in which records are stored is entirely irrelevant. When a search is applied to a large database there are potentially thousands of records needing to be examined individually and in an unspecified order. The solution to this is indexes. Indexes are similar to that in a book, in that they give and ordered listing of areas where content can be found. Database indexes describe a particular record order without actually ordering or displaying the records. For example: An attribute of the index may be "sort order" which has cells beneath it specifying the organisational order for the fields listed in the index eg ascending or descending. The index is in order hence it can be used to quickly search through the data for records to be retrieved. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - SQL  QUERY is a search of a database for records that meet a certain condition. It is a question you ask the database. The results are usually displayed in a table but can be used as the basis for a form, report, graph or another query. A query can also update or delete multiple records at the same time and perform calculations on data. Queries are constructed in the form. The data is often called the criteria. A common method for constructing a query is query by example, which requires a user to enter the criteria against a field. If the search of a database involves two or more entities it is called a relational query. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - SQL  STRUCTURED QUERY LANGUAGE (SQL) is a query language used to access and manipulate data in a relational database. SQL statements contain keywords that are used to perform a particular task. When searching in SQL it is essential to use correct syntax. In most DBMSs keywords are in uppercase, fields are separated by commas, an entity and an attribute in that entity are separated by a fullstop, and the search criteria or data item is enclosed in double quotes. The keyword ORDER BY sorts on a field in ascending (ASC) or descending (DESC) order with ascending as the default. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - SQL SQL – Stands for (Structured Query Language). SQL statements are structured using the following:  SELECT – Attributes to retrieve (e.g. surname)  FROM – Table (database)  WHERE – Search criteria (e.g. client age > 15)  ORDER BY – Alphabetical etc. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - SQL ‘WHERE’ is the SQL statement that declares a criteria to be followed in order to complete the query. The following operators can be utilised as criteria for ‘WHERE’… SEARCHING, SELECTING AND SORTING RELATIONAL OPERATORS English meaningSQL ContainsLIKE Does not containNOT LIKE Equals= Not equal to<> Greater than> Greater than or equal to>= Less than< Less than or equal to<= LOGICAL OPERATORS True when both expressions are trueAND True when at least one expression is trueOR OppositeNOT WILDCARD OPERATORS Substitute a single character ? Substitute any number of characters *

Tools for Database Searching and Retrieval - QBE  QBE or Query by Example is a visual technique for specifying a database query. Common search criteria are entered into what appears to be an empty record, thus users do not need to understand the details of SQL. For example a modified QBE is used by most Internet Search engines.  In Access a simple QBE can be initiated using a ‘filter’ whilst more complex QBE can be utilised using the design view. SEARCHING, SELECTING AND SORTING

Tools for Database Searching and Retrieval - QBE SEARCHING, SELECTING AND SORTING