FSQL and Sqlf: Towards a Standard in Fuzzy Databases

Total Page:16

File Type:pdf, Size:1020Kb

FSQL and Sqlf: Towards a Standard in Fuzzy Databases 0 Chapter XI FSQL and SQLf: Towards a Standard in Fuzzy Databases Angélica Urrutia Universidad Católica del Maule, Chile Leonid Tineo Universidad Simón Bolivar, Venezuela Claudia Gonzalez Universidad Simón Bolivar, Venezuela ABSTRACT Actually, FSQL and SQLf are the main fuzzy logic based proposed extensions to SQL. It would be very interesting to integrate them with a standard for fuzzy databases. The issue is what to take from one or other proposal. In this chapter, we analyze FSQL and SQLf making a comparison in several ways: ap- proach direction, fuzzy components, system architecture, satisfaction degree, evaluation mechanisms, and experimental performance. We observe that there are powerful and interesting features in both proposals that could be mixed in a unified language for fuzzy relational databases. INTRODUCTION FSQL was created in order to allow the treat- ment of the uncertainty in fuzzy RDBMS. It allows In order to give greater flexibility to relational the representation and manipulation of precise and dababase management systems (RDBMS), dif- vague data. It distinguishes three data categories: ferent languages and models have been conceived crisp, referential ordered, and referential not or- with the incorporation of fuzzy logic concepts into dered. It uses possibility distributions and similarity information treatment. Two outstanding proposals relations for the representation of vague data, us- in fuzzy logic application to databases are those ing the model GEFRED (Medina, 1994; Medina, of FSQL (Galindo, 1999, 2007) and SQLf (Bosc & Pons, & Vila, 1994). For the manipulation of these Pivert, 1995a). This chapter shows a comparison data, FSQL extends some components of SQL with on these two applications from different points elements of fuzzy logic. It includes the use of pos- of view. sibility and necessity measures. Surroundings to Copyright © 2008, IGI Global, distributing in print or electronic forms without written permission of IGI Global is prohibited. FSQL and SQLf FSQL have been conceived as a catalogue named The next section gives a basic background on FMB to represent vague data and linguistic terms fuzzy sets. You can read more about this in the in a relational database. Additionally, FuzzyEER, first chapter of this handbook. In the following an extension of the EER model (Extended Entity- section, we present the approach directions of Relationship), has been conceived to allow the FSQL and SQLf prior to pointing out the fuzzy conceptual design of databases that incorporate components of both languages. Then, we give a vague data (Urrutia, 2003; Urrutia, Galindo, general view of the architecture in the SQLf and Jiménez, & Piattini, 2006;�������������������� Urrutia, Galindo, & FSQL implementations. We also explain in one Piattini, 2002).���������������������������������� A mechanism for the translation section the use of satisfaction of fulfillment degrees of a conceptual scheme in FuzzyEER to FMB has in these languages. Evaluation mechanisms for been settled (Galindo, Urrutia, & Piattini, 2006). fuzzy queries, according to the two proposals, are There exist two known implementations of FSQL discussed, along with experimental performance at the present time, one in Oracle (Galindo, 1999, analysis of existing prototypes. Finally, we address 2007) and the other in PostgreSQL (Maraboli & some conclusions and future trends of this work. Abarzua, 2006). SQLf was conceived in order to represent vague requirements in queries to relational databases. It FUZZY SETS BACKGROUND includes extensions based on fuzzy logic for all the elements of the SQL standards until the SQL3. Fuzzy sets were introduced in Zadeh (1965) to In this language, query conditions may involve model fuzzy classes in control systems, and their diverse linguistic user defined terms that are use has been expanded to different domains: math- specified through an extension of the DDL. SQLf ematics, classification, pattern matching, artificial allows fuzzy queries over precise data, producing intelligence, and so forth. In the first chapter of discriminated answers. That is to say, each row this volume, Galindo introduces fuzzy logic and in the answer has associated its satisfaction de- fuzzy databases. See also the overview chapter gree of the vague requirement represented by the by Kacprzyk, Zadrozny, De Tré, and De Caluwe query. In order to evaluate queries in SQLf, it has in this book about fuzzy approaches to flexible been proposed to take advantage of the existing database querying. connections between the fuzzy and classic sets. From a fuzzy query, the principle of the deriva- Fuzzy Sets tion allows obtaining a derived precise query. The processing of the fuzzy query is made on the result The fuzzy sets theory stems from the classic set of the derived consultation. There are two known theory, adding a membership function to the ele- SQLf implementations, both on Oracle. ments of the set, which is defined in a way that The comparison made in this work is related each element is assigned a real number between 0 with the following aspects: variety in the use of and 1 (Zadeh, 1965, 1978). A fuzzy set A over the fuzzy logic elements; satisfaction degree seman- universe of discourse U, is defined by means of a tics of the answer set; evaluation mechanisms for m → membership function A:U [0,1]. This function query processing; proposed architectures for the indicates the degree to which the element u is in- implementation and performance experimental cluded in the concept represented by the fuzzy set. analysis with current prototypes. With the research The degree 0 means that the element is completely work presented in this chapter, we open the way for excluded of the set, while the degree 1 means that the integration of FSQL and SQLf towards a new it is completely included. It is also possible to rep- standard for fuzziness treatment in databases. resent a fuzzy set with a set of pairs. This chapter has been organized as follows: 27 more pages are available in the full version of this document, which may be purchased using the "Add to Cart" button on the publisher's webpage: www.igi- global.com/chapter/fsql-sqlf-towards-standard-fuzzy/20357 Related Content Federated Process Framework in a Virtual Enterprise Using an Object-Oriented Database and Extensible Markup Language Kyoung-Il Bae, Jung-Hyun Kim and Soon-Young Huh (2003). Journal of Database Management (pp. 27-47). www.irma-international.org/article/federated-process-framework-virtual-enterprise/3289 A Framework for Efficient Association Rule Mining in XML Data Ji Zhang, Han Liu, Tok Wang Ling, Robert M. Bruckner and A Min Tjoa (2009). Database Technologies: Concepts, Methodologies, Tools, and Applications (pp. 505-526). www.irma-international.org/chapter/framework-efficient-association-rule-mining/7929 An Analytical and Empirical Comparison of End-User Logical Database Design Methods Olivia R. Sheng and Kunihiko Higa (1990). Journal of Database Administration (pp. 1-17). www.irma-international.org/article/analytical-empirical-comparison-end-user/51078 A Template for Defining Enterprise Modelling Constructs Andreas L. Opdahl and Brian Henderson-Sellers (2004). Journal of Database Management (pp. 39-73). www.irma-international.org/article/template-defining-enterprise-modelling-constructs/3310 Data Warehouses Antonio Badia (2005). Encyclopedia of Database Technologies and Applications (pp. 121-126). www.irma-international.org/chapter/data-warehouses/11133.
Recommended publications
  • (DDL) Reference Manual
    Data Definition Language (DDL) Reference Manual Abstract This publication describes the DDL language syntax and the DDL dictionary database. The audience includes application programmers and database administrators. Product Version DDL D40 DDL H01 Supported Release Version Updates (RVUs) This publication supports J06.03 and all subsequent J-series RVUs, H06.03 and all subsequent H-series RVUs, and G06.26 and all subsequent G-series RVUs, until otherwise indicated by its replacement publications. Part Number Published 529431-003 May 2010 Document History Part Number Product Version Published 529431-002 DDL D40, DDL H01 July 2005 529431-003 DDL D40, DDL H01 May 2010 Legal Notices Copyright 2010 Hewlett-Packard Development Company L.P. Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. Export of the information contained in this publication may require authorization from the U.S. Department of Commerce. Microsoft, Windows, and Windows NT are U.S. registered trademarks of Microsoft Corporation. Intel, Itanium, Pentium, and Celeron are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
    [Show full text]
  • Learning About Women and Urban Services N Latin America and the Caribbean
    P w- N :jk)- (,. -2 LEARNING ABOUT WOMEN AND URBAN SERVICES N LATIN AMERICA AND THE CARIBBEAN A Report on the Women, Low-h;come Households and Urban Services Project of The Population Council Wikh Selected Contributions from The International Center for Research on Women The Equity Policy Center The Development Planning Unit of University College LEARNING ABOUT WOMEN AND URBAN SERVICES IN LATIN AMERICA AND THE CARIBBEAN A Report on the Wbmen, Low-income Householdsand UrbanServices Project of The Population Council With Selected Contributions from The InternationalCenter for Research on Women The Equity Policy Cenier The Development Planning Unit of University College Marianne Schmink Judith Bruce and Marilyn Kohn Editors © 1986 The Population Council, Inc. Selections of this volume may be reproduced for teaching purposes in naga7ines and newspapers with acknowledgment to this report, to the authors, and the sponsoring institutions. The majority of the articles in this volume are an outgrowth of working group deliberations, the research and related activities of the Women, Low-Income Households, and Urban Services Project of the Population Council. The first phase of this project was supported by the United States Agency for International Development under Cooperative Agreement No. AID/OTR-0007-A-00-1154-00. The views expressed by the authors are their own. CONTENTS LEARNING ABOUT WOMEN AND URBAN SERVICES IN LATIN AMERICA AND THE CARIBBEAN A Report on the Women, Low-Income Households and Urban Services Project of tho Population Council With Selected Contributions from: The International Center for Research on Women The Equity Policy Center The Development Planning Unit of University College Preface Judith Bruce Part I.
    [Show full text]
  • Exploring the Visualization of Schemas for Aggregate-Oriented Nosql Databases?
    Exploring the Visualization of Schemas for Aggregate-Oriented NoSQL Databases? Alberto Hernández Chillón, Severino Feliciano Morales, Diego Sevilla Ruiz, and Jesús García Molina Faculty of Computer Science, University of Murcia Campus Espinardo, Murcia, Spain {alberto.hernandez1,severino.feliciano,dsevilla,jmolina}@um.es Abstract. The lack of an explicit data schema (schemaless) is one of the most attractive NoSQL database features for developers. Being schema- less, these databases provide a greater flexibility, as data with different structure can be stored for the same entity type, which in turn eases data evolution. This flexibility, however, should not be obtained at the expense of losing the benefits provided by having schemas: When writ- ing code that deals with NoSQL databases, developers need to keep in mind at any moment some kind of schema. Also, database tools usu- ally require the knowledge of a schema to implement their functionality. Several approaches to infer an implicit schema from NoSQL data have been proposed recently, and some utilities that take advantage of inferred schemas are emerging. In this article we focus on the requisites for the vi- sualization of schemas for aggregate-oriented NoSQL Databases. Schema diagrams have proven useful in designing and understanding databases. Plenty of tools are available to visualize relational schemas, but the vi- sualization of NoSQL schemas (and the variation that they allow) is still in an immature state, and a great R&D effort is required to achieve tools with the desired capabilities. Here, we study the main challenges to be addressed, and propose some visual representations. Moreover, we outline the desired features to be supported by visualization tools.
    [Show full text]
  • SQL: Triggers, Views, Indexes Introduction to Databases Compsci 316 Fall 2014 2 Announcements (Tue., Sep
    SQL: Triggers, Views, Indexes Introduction to Databases CompSci 316 Fall 2014 2 Announcements (Tue., Sep. 23) • Homework #1 sample solution posted on Sakai • Homework #2 due next Thursday • Midterm on the following Thursday • Project mixer this Thursday • See my email about format • Email me your “elevator pitch” by Wednesday midnight • Project Milestone #1 due Thursday, Oct. 16 • See project description on what to accomplish by then 3 Announcements (Tue., Sep. 30) • Homework #2 due date extended to Oct. 7 • Midterm in class next Thursday (Oct. 9) • Open-book, open-notes • Same format as sample midterm (from last year) • Already posted on Sakai • Solution to be posted later this week 4 “Active” data • Constraint enforcement: When an operation violates a constraint, abort the operation or try to “fix” data • Example: enforcing referential integrity constraints • Generalize to arbitrary constraints? • Data monitoring: When something happens to the data, automatically execute some action • Example: When price rises above $20 per share, sell • Example: When enrollment is at the limit and more students try to register, email the instructor 5 Triggers • A trigger is an event-condition-action (ECA ) rule • When event occurs, test condition ; if condition is satisfied, execute action • Example: • Event : some user’s popularity is updated • Condition : the user is a member of “Jessica’s Circle,” and pop drops below 0.5 • Action : kick that user out of Jessica’s Circle http://pt.simpsons.wikia.com/wiki/Arquivo:Jessica_lovejoy.jpg 6 Trigger example
    [Show full text]
  • Oracle Nosql Database EE Data Sheet
    Oracle NoSQL Database 21.1 Enterprise Edition (EE) Oracle NoSQL Database is a multi-model, multi-region, multi-cloud, active-active KEY BUSINESS BENEFITS database, designed to provide a highly-available, scalable, performant, flexible, High throughput and reliable data management solution to meet today’s most demanding Bounded latency workloads. It can be deployed in on-premise data centers and cloud. It is well- Linear scalability suited for high volume and velocity workloads, like Internet of Things, 360- High availability degree customer view, online contextual advertising, fraud detection, mobile Fast and easy deployment application, user personalization, and online gaming. Developers can use a single Smart topology management application interface to quickly build applications that run in on-premise and Online elastic configuration cloud environments. Multi-region data replication Enterprise grade software Applications send network requests against an Oracle NoSQL data store to and support perform database operations. With multi-region tables, data can be globally distributed and automatically replicated in real-time across different regions. Data can be modeled as fixed-schema tables, documents, key-value pairs, and large objects. Different data models interoperate with each other through a single programming interface. Oracle NoSQL Database is a sharded, shared-nothing system which distributes data uniformly across multiple shards in a NoSQL database cluster, based on the hashed value of the primary keys. An Oracle NoSQL Database data store is a collection of storage nodes, each of which hosts one or more replication nodes. Data is automatically populated across these replication nodes by internal replication mechanisms to ensure high availability and rapid failover in the event of a storage node failure.
    [Show full text]
  • KB SQL Database Administrator Guide a Guide for the Database Administrator of KB SQL
    KB_SQL Database Administrator Guide A Guide for the Database Administrator of KB_SQL © 1988-2019 by Knowledge Based Systems, Inc. All rights reserved. Printed in the United States of America. No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from KB Systems, Inc., as governed by United States and international copyright laws. The information contained in this document is subject to change without notice. KB Systems, Inc., does not warrant that this document is free of errors. If you find any problems in the documentation, please report them to us in writing. Knowledge Based Systems, Inc. 43053 Midvale Court Ashburn, Virginia 20147 KB_SQL is a registered trademark of Knowledge Based Systems, Inc. MUMPS is a registered trademark of the Massachusetts General Hospital. All other trademarks or registered trademarks are properties of their respective companies. Table of Contents Preface ................................................. vii Purpose ............................................. vii Audience ............................................ vii Conventions Used in this Manual ...................................................................... viii The Organization of this Manual ......................... ... x Additional Documentation .............................. xii Chapter 1: An Overview of the KB_SQL User Groups and Menus ............................................................................................................
    [Show full text]
  • SUGI 23: an Investigation of the Efficiency of SQL DML Operations Performed on an Oracle DBMS Using SAS/Accessr Software
    Posters An Investigation of the Efficiency of SQL DML Operations Performed on an ORACLE DBMS using SAS/ACCESS Software Annie Guo, Ischemia Research and Education Foundation, San Francisco, California Abstract Table 1.1: Before Modification Of Final Records Id Entry MedCode Period1 Period2 Indication AG1001 Entry1 AN312 Postop Day1 Routine AG1001 Entry2 AN312 Postop Day1 Routine In an international epidemiological study of 2000 cardiac AG1001 Final AN312 Postop Day1 Non-routine ← To be updated surgery patients, the data of 7000 variables are entered AG1001 Final HC527 Intraop PostCPB Maintenance ← To be deleted AG1002 Entry1 PV946 Intraop PreCPB Non-routine ← To be inserted through a Visual Basic data entry system and stored in 57 AG1002 Entry2 PV946 Intraop PreCPB Non-routine as ‘Final’ large ORACLE tables. A SAS application is developed to Table 1.2: After Modification Of Final Records automatically convert the ORACLE tables to SAS data sets, Id Entry MedCode Period1 Period2 Indication AG1001 Entry1 AN312 Postop Day1 Routine perform a series of intensive data processing, and based AG1001 Entry2 AN312 Postop Day1 Routine AG1001 Final AN312 Postop Day1 Routine ← Updated upon the result of the data processing, dynamically pass AG1002 Entry1 PV946 Intraop PreCPB Non-routine AG1002 Entry2 PV946 Intraop PreCPB Non-routine ORACLE SQL Data Manipulation Language (DML) AG1002 Final PV946 Intraop PreCPB Non-routine ← Inserted commands such as UPDATE, DELETE and INSERT to ORACLE database and modify the data in the 57 tables. A Visual Basic module making use of ORACLE Views, Functions and PL/SQL Procedures has been developed to The modification of ORACLE data using SAS software can access the ORACLE data through ODBC driver, compare be resource-intensive, especially in dealing with large tables the 7000 variables between the 2 entries, and modify the and involving sorting in ORACLE data.
    [Show full text]
  • Zhang Xianliang, Samuel Beckett and Albert Camus
    DEATH IN THREE NOVELS BY ZHANG XIANLIANG, SAMUEL BECKETT AND ALBERT CAMUS BY MAK MEI KWAN ALISA B.A., Chinese University of Hong Kong, 1997 THESIS Submitted to the Graduate School of The Chinese University of Hong Kong In partial fulfillment of the requirements for the degree MASTER OF PHILOSOPHY IN ENGLISH Hong Kong 2000 i(njy;! 11 )i UNIVERSITY ^^XLIBRARY Table of Contents Abstract i 摘要 iii Acknowledgements v Chapter One: 1 The Displaced Man Chapter Two: 19 The Fragmented Self in Xiguan siwang Getting Used to Dying Chapter Three: 46 Deatti of the Author: An Abandoned Being in Malofie\ Dies Chapter Four: 67 Death of Sharing: A Man of Authenticity in The Outsider Chapter Five: 94 Conclusion: The Helplessness of Life Works Cited 108 Wor卜 Consulted 115 丨 I 1 I i Abstract This thesis examines the fictional treatment of the topic death in three writers, Zhang Xianliang, Samuel Beckett and Albert Camus, of the century, presenting an age of life-in-death. Their treatments of death are believed to be the result of pressure from the socio-political background in different parts of the world. The first chapter is a brief sketch of the socio-political conditions affecting the three writers. It points out that an individual is by no means trapped in the relationship with the society, which makes them suffer from a deep sense of helplessness. The writers' personal experiences of being exposed to multi-national environment adds complexity to such relationship. r� I • ;Chapter Two examines how political power penetrates into the human mind and causes psychological distortion in the novel Getting Used to Dying 習 1 貫死亡� Itreveals the real power of the Chinese politics.
    [Show full text]
  • 3 Data Definition Language (DDL)
    Database Foundations 6-3 Data Definition Language (DDL) Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Roadmap You are here Data Transaction Introduction to Structured Data Definition Manipulation Control Oracle Query Language Language Language (TCL) Application Language (DDL) (DML) Express (SQL) Restricting Sorting Data Joining Tables Retrieving Data Using Using ORDER Using JOIN Data Using WHERE BY SELECT DFo 6-3 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 3 Data Definition Language (DDL) Objectives This lesson covers the following objectives: • Identify the steps needed to create database tables • Describe the purpose of the data definition language (DDL) • List the DDL operations needed to build and maintain a database's tables DFo 6-3 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 4 Data Definition Language (DDL) Database Objects Object Description Table Is the basic unit of storage; consists of rows View Logically represents subsets of data from one or more tables Sequence Generates numeric values Index Improves the performance of some queries Synonym Gives an alternative name to an object DFo 6-3 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 5 Data Definition Language (DDL) Naming Rules for Tables and Columns Table names and column names must: • Begin with a letter • Be 1–30 characters long • Contain only A–Z, a–z, 0–9, _, $, and # • Not duplicate the name of another object owned by the same user • Not be an Oracle server–reserved word DFo 6-3 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. 6 Data Definition Language (DDL) CREATE TABLE Statement • To issue a CREATE TABLE statement, you must have: – The CREATE TABLE privilege – A storage area CREATE TABLE [schema.]table (column datatype [DEFAULT expr][, ...]); • Specify in the statement: – Table name – Column name, column data type, column size – Integrity constraints (optional) – Default values (optional) DFo 6-3 Copyright © 2015, Oracle and/or its affiliates.
    [Show full text]
  • Fuzzy Querying Based Tool for Building Courses Evaluation Tests
    Fuzzy Querying based Tool for Building Courses Evaluation Tests Livia Borjas1, Josué Ramírez1, Rosseline Rodríguez2 and Leonid Tineo2 1 Departamento de Informática, IUT Federico Rivero Palacios, Caracas, Venezuela 2 Departamento de Computación, Universidad Simón Bolívar, Caracas, Venezuela Keywords: Computer Aided Education, e-Learning, Fuzzy Querying. Abstract: In this paper, we present a tool intended for helping in exam configuration based on the reutilization of questions according to user preferences. It is a real life application of fuzzy querying that fulfils an actual need of academic personal at a high studies institution of Venezuela. This application uses the fuzzy querying language SQLf, on top of an existing relational DBMS by means a logic layer named SQLfi. Final users of our application are professors of any area without knowledge of fuzzy sets and databases. We use criteria for the test preparation that support fuzzy terms. These terms can be adjusted to user preferences. Graphic user interfaces are provided in order to perform such adjusts as well as exam configuration and any other fuzzy querying operation. We present here the Database Design, the process test construction and the management of preferences. 1 INTRODUCTION previous experiences. Consequently, a database storing this information is required. The use of these Professors throughout their carriers have to measure data might require the definition of searches based the performance of their students basically through on preferences including fuzzy terms. the application of written tests. The design of these Another important factor is the consideration of tests might become sometimes a discouraging the grades or results obtained in previous tests (for process given its repetitive nature.
    [Show full text]
  • Today SQL Views CREATE VIEW Command
    Today IT420: Database Management and SQL Views Organization SQL Views (Chapter 7) 1 Kroenke, Database Processing 2 SQL Views CREATE VIEW Command SQL view is a virtual table that is constructed from other CREATE VIEW command: tables or views CREATE VIEW view_name It has no data of its own, but obtains data from tables or AS other views select_statement It only has a definition Use the view: SELECT statements are used to define views In SELECT statements A view definition may not include an ORDER BY clause Sometimes in INSERT statements Views can be used as regular tables in SELECT Sometimes in UPDATE statements statements Sometimes in DELETE statements Kroenke, Database Processing 3 Kroenke, Database Processing 4 1 CREATE VIEW Command Uses for SQL Views CREATE VIEW Security: hide columns and rows command: CREATE VIEW CustomerNameView Display results of computations AS Hide complicated SQL syntax SELECT CustName AS CustomerName Provide a level of isolation between actual FROM CUSTOMER; data and the user’s view of data To use the view: three-tier architecture SELECT * Assign different processing permissions to FROM CustomerNameView ORDER BY CustomerName; different views on same table Kroenke, Database Processing 5 Kroenke, Database Processing 6 Security: hide columns and rows Display results of computations MIDS database, Midshipmen table Faculty (EmpID , LName, FName, Department, AreaCode, LocalPhone) View for faculty – all mids with IT major Create a view to display 2 columns: View for students – all mids, no
    [Show full text]
  • Database Views
    DATABASE VIEWS CHAPTER 5 (6/E) CHAPTER 8 (5/E) 1 LECTURE OUTLINE . Database views provide convenient usage • Virtual view realized when query uses that view . Materialized views allow efficient re-use • Must be recalculated or updated when base tables change 2 VIEWS FOR CUSTOMIZATION . Consider database(s) describing university’s activities • Academic institution • Students, professors, classes • Grades, transcripts • Admissions, convocations • Alumni • Corporate institution • Finances, human resources • Board of Governors • Capital assets • Charitable institution • Donors, fundraising activities • Research institution • Granting agencies, industrial/non-profits/academic partners • Grants and contracts, intellectual property, licensing . Each user group provided appropriate “subset” of the data • e.g., some financial/scheduling info relevant to most groups; other info confidential • Underlying data shared, not silo’d. Updates must be seen by all affected users. 3 VIEWS (VIRTUAL TABLES) . Consider again the query SELECT title, year, genre FROM Film WHERE director = 'Steven Spielberg' AND year > 1990; • Returns all matching films currently in the database • If re-run after updates, will give revised table of matches . A view is an unexecuted query that can be run on demand. • Single table derived from other table(s) • A virtual table 4 USING VIEWS IN SQL . CREATE VIEW command • View name and a query to specify the contents of the view CREATE VIEW Big_Earners AS SELECT E.Ssn AS Ssn, E.Lname AS Name, E.Salary AS Salary, M.Lname AS Manager FROM EMPLOYEE E, EMPLOYEE M WHERE E.Super_ssn = M.Ssn and E.Salary > M.Salary; . Queries can use view as if it were a base table. SELECT * FROM Big_Earners WHERE Salary < 100000; .
    [Show full text]