Human and Computer Interaction (H.C.I.) &Communication Skills

Slides:



Advertisements
Similar presentations
Chapter 12 File Processing and Data Management Concepts
Advertisements

COMP 5138 Relational Database Management Systems Semester 2, 2007 Lecture 5A Relational Algebra.
1 CHAPTER 4 RELATIONAL ALGEBRA AND CALCULUS. 2 Introduction - We discuss here two mathematical formalisms which can be used as the basis for stating and.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Database Management: Getting Data Together Chapter 14.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
Attribute databases. GIS Definition Diagram Output Query Results.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Computer Science & Engineering 2111 CSE 2111 Lecture Querying a Database 1CSE 2111 Lecture- Querying a Database.
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Chapter 4 Relational Databases and Enterprise Systems
Concepts of Database Management, Fifth Edition
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
HAP 709 – Healthcare Databases SQL Data Manipulation Language (DML) Updated Fall, 2009.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Appendix C Overview of the QBE (Query-By-Example) Language.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
Concepts of Database Management Seventh Edition
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
© Jalal Kawash Database Queries Peeking into Computer Science.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Computing & Information Sciences Kansas State University Monday, 17 Sep 2007CIS 560: Database System Concepts Lecture 12 of 42 Monday, 18 February 2008.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Database Management Systems, R. Ramakrishnan1 Relational Algebra Module 3, Lecture 1.
A Guide to SQL, Eighth Edition Chapter Eight SQL Functions and Procedures.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
603 Database Systems Senior Lecturer: Laurie Webster II, M.S.S.E.,M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 9 A First Course in Database Systems.
Jennifer Widom Relational Databases The Relational Model.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
D ATABASE Dr. Satria Mandala. R ELATIONAL D ATABASE F UNDAMENTALS What Is a Database? a database is any collection of data items (simple definition) a.
SQL FIS 1311 Nov. 28, Structured Query Language ANSI/ISO standard; used with relational databases Is a very simple but powerful computer language:
Fundamental of Database Systems
Web Database Programming Using PHP
Database Systems: Design, Implementation, and Management Tenth Edition
CHAPTER 7 DATABASE ACCESS THROUGH WEB
A Guide to SQL, Seventh Edition
MySQL Subquery Source: Dev.MySql.com
Information Systems Today: Managing in the Digital World
Web Database Programming Using PHP
Relational Algebra Chapter 4 1.
Single Table Queries in SQL
Database Vocabulary Terms.
Relational Algebra Chapter 4, Part A
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
INFO/CSE 100, Spring 2005 Fluency in Information Technology
SQL LANGUAGE and Relational Data Model TUTORIAL
Order Database – ER Diagram
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Relational Algebra Chapter 4 1.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Relational Algebra Chapter 4, Sections 4.1 – 4.2
Databases.
Databases Computer Technology.
Database Systems Instructor Name: Lecture-3.
Databases Computer Technology.
Advanced Database Concepts: Reports & Views
Relational Database Design
Databases Continued 10/18/05.
Database SQL.
Information Retrieval and Web Design
Human and Computer Interaction (H.C.I.) &Communication Skills
Human and Computer Interaction (H.C.I.) &Communication Skills
Human and Computer Interaction (H.C.I.) &Communication Skills
Presentation transcript:

Human and Computer Interaction (H.C.I.) &Communication Skills Lecture (8) Prepared by Dr. Dunia Hamid Hameed

Designing Queries When users ask questions of or communicate with the database, they are said to query it. Six different types of queries are among the most common.

Query Types Query Type 1 The entity and one of the entity’s attributes are given. The purpose of the query is to find the value. The query can be expressed as follows: What is the value of a specified attribute for a particular entity? Sometimes it is more convenient to use notation to formulate the query. This query can be written as V ← (E, A) where V stands for the value, E for entity, and A for attribute, and the variables in parentheses are given.

Query Types Query Type 2 The intent of the second query type is to find an entity or entities when an attribute and value are given. Query type 2 can be stated as follows: What entity has a specified value for a particular attribute? Because values can also be numeric, it is possible to search for a value equal to, greater than, less than, not equal to, greater than or equal to, and so on. The notation for query type 2 is E ← (V, A)

Query Types Query Type 3 The purpose of this query type is to determine which attributes fit the description provided when the entity and value are given. Query type 3 can be stated as follows: What attribute(s) has a specified value for a particular entity? This query is useful when many similar attributes have the same property. The notation for query type 3 is A←(V, E)

Query Types Query Type 4 Query type 4 is similar to query type 1. The difference is that the values of all attributes are desired. Query 4 can be expressed as follows: List all the values for all the attributes for a particular entity. The notation for query type 4 is all V ←(E, all A)

Query Types Query Type 5 The fifth type of query is another global query, but it is similar in form to query type 2. Query type 5 can be stated as follows: List all entities that have a specified value for all attributes. The notation for query type 5 is all E ← (V, all A)

Query Types Query Type 6 The sixth query type is similar to query type 3. The difference is that query type 6 requests a listing of the attributes for all entities rather than a particular entity. Query type 6 can be stated as follows: List all the attributes that have a specified value for all entities. The notation for query type 6 is all A←(V, all E)

Building More Complex Queries The preceding six query types are only building blocks for more complex queries. Expressions, referred to as Boolean expressions, can be formed for queries.

Query Methods 1- Query by Example (QBE) is a simple but powerful method for implementing queries in database systems, such as Microsoft Access.

2- Structured Query Language Structured query language (SQL) is another popular way to implement queries. It uses a series of words and commands to select the rows and columns that should be displayed in the resulting table.