Query-By-Example Ping Zhou 2008.3. Introduction to QBE Query-By-Example A high-level database management language Alternation to SQL for querying relational.

Slides:



Advertisements
Similar presentations
Chapter 5: Other Relational Languages
Advertisements

LOAD RATING TRAINING Hand Calculations Tim Keller, PE Amjad Waheed, PE
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
June 2004Tim Ryley - Lancaster seminar1 Identifying the population segments most likely to cycle Tim Ryley Transport Research Institute Napier University.
Prof. Yashar Ganjali University of Toronto Research Skills Seminar, November 2012
Yong Choi School of Business CSU, Bakersfield
THE DICOM 2013 INTERNATIONAL CONFERENCE & SEMINAR March 14-16Bangalore, India Enhanced CT Image advantages and potential Reinhard Ruf Siemens AG Healthcare.
November 2009INIS Training Seminar1 INIS Training Seminar November 2009 Information Retrieval and Query Formulation Christine Krieger-Levine Content.
Recent ATLAS results Woochun USC Physics Seminar April 13, 2011 The ATLAS detector Heavy Flavor Physics at ATLAS Observation of Charmonium, Upsilon.
©Silberschatz, Korth and Sudarshan5.1Database System Concepts Chapter 5: Other Relational Languages Query-by-Example (QBE) Datalog.
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.
Ver 1,12/09/2012Kode :CCs 111,Sistem basis DataFASILKOM Chapter 5: Other Relational Languages Database System Concepts, 5th Ed. ©Silberschatz, Korth and.
1 541: Relational Calculus. 2 Relational Calculus  Comes in two flavours: Tuple relational calculus (TRC) and Domain relational calculus (DRC).  Calculus.
1 Query-by-Example (QBE). 2 v A “GUI” for expressing queries. –Based on the Domain Relational Calulus (DRC)! –Actually invented before GUIs. –Very convenient.
Chapter 6 UNDERSTANDING AND DESIGNING QUERIES AND REPORTS.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Database Management Systems 3ed, Online chapter, R. Ramakrishnan and J. Gehrke1 Query-by-Example (QBE) Online Chapter Example is the school of mankind,
5/15/2015Lecture 31 CS 222 Database Management System Spring Lecture 3 Korra Sathya Babu Department of Computer Science NIT Rourkela.
1 Relational Algebra & Calculus. 2 Relational Query Languages  Query languages: Allow manipulation and retrieval of data from a database.  Relational.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Query-by-Example (QBE) Chapter 6 Example is the school of mankind, and they will learn at no.
Domain Relational Calculus and Query-by-Example CS157a John Eagle.
Access Tutorial 3 Maintaining and Querying a Database
Temple University – CIS Dept. CIS331– Principles of Database Systems V. Megalooikonomou Query by example (based on notes by Silberchatz,Korth, and Sudarshan.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
Chapter 5 Other Relational Languages By Cui, Can B.
1 Views. 2 What are views good for? (1) Simplifying complex queries: We saw one example. Here is another that allows the user to "pretend" that there.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Attribute databases. GIS Definition Diagram Output Query Results.
Rutgers University Relational Calculus 198:541 Rutgers University.
Microsoft Access 2010 Chapter 7 Using SQL.
Maintaining and Querying a Database Microsoft Access 2010.
©Silberschatz, Korth and Sudarshan5.1Database System Concepts Chapter 5: Other Relational Languages Query-by-Example (QBE) Datalog.
Concepts of Database Management Seventh Edition
10/31/2012ISC239 Isabelle Bichindaritz1 SQL Graphical Queries Design Query By Example.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Relational Calculus Chapter 4, Section 4.3.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Appendix C Overview of the QBE (Query-By-Example) Language.
PowerBuilder Online Courses - by Prasad Bodepudi
Concepts of Database Management Seventh Edition
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
©Silberschatz, Korth and Sudarshan5.1Database System Concepts Chapter 5: Other Relational Languages Query-by-Example (QBE)
1 Relational Algebra & Calculus Chapter 4, Part A (Relational Algebra)
1 Relational Algebra and Calculas Chapter 4, Part A.
BACS 287 Structured Query Language 1. BACS 287 Visual Basic Table Access Visual Basic provides 2 mechanisms to access data in tables: – Record-at-a-time.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
Computing & Information Sciences Kansas State University Monday, 17 Sep 2007CIS 560: Database System Concepts Lecture 12 of 42 Monday, 18 February 2008.
Source: Database System Concepts, Silberschatz etc Edited: Wei-Pang Yang, IM.NDHU, Introduction to Database CHAPTER 5 Other Relational Languages.
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 Competency Explain advanced database concepts and functions.
SQL. Originally developed by IBM Standardized in 80’s by ANSI and ISO Language to access relational database and English-like non-procedural Predominant.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4, Part B.
SQL: Interactive Queries (2) Prof. Weining Zhang Cs.utsa.edu.
Jun-Ki Min.  Based on predicate calculus ◦ Predicate  a function whose value is true or false  non-procedural ◦ A relational calculus expression creates.
Relational Calculus Chapter 4, Section 4.3.
Relational Algebra & Calculus
CS 480: Database Systems Lecture 16 February 20,2013.
CS 480: Database Systems Lecture 17 February 22, 2013.
Access Tutorial 3 Maintaining and Querying a Database
Query-by-Example (QBE)
Relational Calculus Chapter 4, Part B
Relational Algebra Chapter 4, Part A
Query By Example (QBE) Mallipeddi Venkata Harish Terence Gam Israel.
LECTURE 3: Relational Algebra
Relational Algebra Chapter 4, Sections 4.1 – 4.2
Yong Choi School of Business CSU, Bakersfield
Relational Algebra & Calculus
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

Query-By-Example Ping Zhou

Introduction to QBE Query-By-Example A high-level database management language Alternation to SQL for querying relational database Can be translated to SQL Developed at IBM (M. Zloof) ◦ Many Databases have QBE-like extension Ping Zhou / CS 2310 Course Seminar2

Why QBE? Convenient and unified way to query, update, define and control database Requires little knowledge to the user, minimizes the concepts user needs to learn Simple yet wide coverage of transactions Graphical and tabular interface Ping Zhou / CS 2310 Course Seminar3

Basic Concepts Instead of writing text SQL commands… ◦ Programming is done within 2-D “skeleton tables” ◦ Constant vs Variable Ping Zhou / CS 2310 Course Seminar4

Basic Queries (1) Print the names and ages of all sailors… Variables that appear only once can be omitted Shorthand to print all fields Ping Zhou / CS 2310 Course Seminar5

Basic Queries (2) Selections – Place constant in some field Print all sailors with rating=10 Ping Zhou / CS 2310 Course Seminar6

Ordering and Grouping Order the answer using AO (ascending order) or DO (descending order) Duplicate tuples can be eliminated by using UNO. Ping Zhou / CS 2310 Course Seminar7

Select tuples from two relations by placing same variable at join column Queries Over Multiple Relations Find sailors who reserved a boat for 8/24/96, and who are older than 25. Ping Zhou / CS 2310 Course Seminar8

Select Using Condition Box Condition box ◦ Express a condition involving two or more columns. E.g.: _R/_A > 0.2 ◦ Express a condition involving aggregate operation on a group ◦ Express a condition involving AND and OR operators Ping Zhou / CS 2310 Course Seminar9

Unnamed Columns Create unnamed column for display Display fields from more than one tables Ping Zhou / CS 2310 Course Seminar10

Updating Tables using QBE (1) Insertion, Deletion and Updating are done in the same way in QBE Insertion Ping Zhou / CS 2310 Course Seminar11

Updating Tables using QBE (2) Deleting Updating Ping Zhou / CS 2310 Course Seminar12

Changes Brought by QBE User Interface ◦ Text command -> Graphical, Tabular ◦ User draw the table he wants directly Easier to learn ◦ Higher scores than SQL users in paper and pencil testing Ping Zhou / CS 2310 Course Seminar13

QBE / OBE OBE: Office Procedure by Example ◦ Incorporate QBE into office automation ◦ Research project developed by IBM Ping Zhou / CS 2310 Course Seminar14

Spatial QBE Adding spatial extension to QBE Retrieve all ATMs along Route 64 Retrieve all banks within 100 meters from Washington Hotel. Ping Zhou / CS 2310 Course Seminar15

Multimedia Queries with QBE Similarity function Find all oil paintings from a Dutch painter which are similar to the given picture. Ping Zhou / CS 2310 Course Seminar16

References Query-By-Example: a data base language, M. Zloof, 1977 Query-By-Example (QBE), on/qbe.pdf on/qbe.pdf A Human Factors Experimental Comparison of SQL and QBE, Minnie Yi-Miin Yen and Richard W. Scamell, 1993 Spatial QBE Interface for Web GIS, Shapiee Abd Rahman, Subhash Bhalla, 2005 WS-QBE: A QBE-like Query Language for Complex Multimedia Queries, Ingo Schmitt, Nadine Schulz, Thomas Herstel, 2005 Ping Zhou / CS 2310 Course Seminar17

THANK YOU! Ping Zhou / CS 2310 Course Seminar18