Database Systems
DBMS Languages and Interfaces Database Management Systems
1
Lecture 5
Today’s agenda
• DBMS Languages
▫ Data Definition Language (DDL)
▫ Storage Definition Language (SDL)
▫ View Definition Language (VDL)
▫ Data Manipulation Language (DML)
• DBMS Interfaces
Database Management
Systems
2
DBMS Languages
• Data Definition Language (DDL): In many DBMSs
where no strict separation of levels is maintained, DDL is
used by the DBA and database designers to define both
conceptual and internal schemas.
• DBMS will have a DDL compiler whose function is to
process DDL statements in order to identify descriptions
of the schema constructs and store the schema
description in the DBMS catalog.
• Where a clear separation is maintained between the
conceptual and internal levels, the DDL is used to specify
the conceptual schema only.
3
Database Management
Systems
Storage Definition Language (SDL)
• Is used to specify the Internal schema
• The mapping between two schemas may be
specified in either DDL or SDL
• For the true three-schema architecture we need
more
Database Management
Systems
4
View Definition Language (VDL)
• Is used to specify the user view
• Mapping the view in conceptual schema
• In most DBMS DDL is used for both conceptual
and external schemas
Database Management
Systems
5
DBMS Languages
• Data Manipulation Language (DML): Used
to specify database retrievals and updates.
• DML commands (data sublanguage) can be
embedded in a general-purpose programming
language (host language), such as COBOL, C or
an Assembly Language.
• Alternatively, stand-alone DML commands can be
applied directly (query language).
6
Database Management
Systems
DBMS Languages
• High Level or Non-procedural Languages:
also called set at a time, e.g., SQL, are set-
oriented and specify what data to retrieve than
how to retrieve. Also called declarative
languages.
• Low Level or Procedural Languages: also
called record-at-a-time; they specify how to
retrieve data and include constructs such as
looping.
7
Database Management
Systems
DBMS Interfaces
• Menu-Based interfaces for Web Clients or
Browsing
• Form-Based Interfaces
• Graphical User Interfaces
• Natural Language Interfaces
• Interfaces for Parametric Users
• Interfaces for the DBA
8
Database Management
Systems
Menu-Based Interfaces for Web Clients
or Browsing
• List of options presented to the users called
menus that lead the user through the
formulation of a request
• No need to memorize the specific command or
syntax of a query language
• Query is composed step-by-step by picking
options from a menu that is displayed by the
system such as pull down menus.
9
Database Management
Systems
Form-Based Interfaces
• Displays a form to each user
• Fill the entries in the form (entering or
retrieving data)
• Designed for Naïve users
• Forms specification languages (SQL* forms,
Oracle Forms) help programmers to specify such
forms
10
Database Management
Systems
Graphical User Interfaces
• Displays a schema to user in diagrammatic form
• Specify the query by manipulating the diagram
• Utilizes both menus and forms
• Uses the pointing device
11
Database Management
Systems
Natural Language Interfaces
• Accepts request written in English
• Attempt to understand the request
• Has its own schema
• Include dictionary important words
• Produces the high-level query and submitted to
the DBMS
12
Database Management
Systems
Speech Input and Output
• Limited use of speech as an input query and
speech as an answer to a question or result of a
request is becoming commonplace.
• Applications with limited vocabulary such as
telephone directory, flight arrival/departure,
and bank account information are allowing
speech for input and output to enable ordinary
folks to access this information.
13
Database Management
Systems
Interfaces for Parametric Users
• Small steps of operations which have to perform
repeatedly i.e., Bank tellers
• Design some special interface
• Small set of abbreviated commands
• Proceed with a minimal number of keystrokes
(function keys)
14
Database Management
Systems
Interfaces for the DBA
• Most database systems contain privileged
commands that can be used only by the DBA's
staff.
• Creating accounts, granting authorizations
• Setting system parameters
• Changing schemas or access path
15
Database Management
Systems

Data base chapter 5 | complete details

  • 1.
    Database Systems DBMS Languagesand Interfaces Database Management Systems 1 Lecture 5
  • 2.
    Today’s agenda • DBMSLanguages ▫ Data Definition Language (DDL) ▫ Storage Definition Language (SDL) ▫ View Definition Language (VDL) ▫ Data Manipulation Language (DML) • DBMS Interfaces Database Management Systems 2
  • 3.
    DBMS Languages • DataDefinition Language (DDL): In many DBMSs where no strict separation of levels is maintained, DDL is used by the DBA and database designers to define both conceptual and internal schemas. • DBMS will have a DDL compiler whose function is to process DDL statements in order to identify descriptions of the schema constructs and store the schema description in the DBMS catalog. • Where a clear separation is maintained between the conceptual and internal levels, the DDL is used to specify the conceptual schema only. 3 Database Management Systems
  • 4.
    Storage Definition Language(SDL) • Is used to specify the Internal schema • The mapping between two schemas may be specified in either DDL or SDL • For the true three-schema architecture we need more Database Management Systems 4
  • 5.
    View Definition Language(VDL) • Is used to specify the user view • Mapping the view in conceptual schema • In most DBMS DDL is used for both conceptual and external schemas Database Management Systems 5
  • 6.
    DBMS Languages • DataManipulation Language (DML): Used to specify database retrievals and updates. • DML commands (data sublanguage) can be embedded in a general-purpose programming language (host language), such as COBOL, C or an Assembly Language. • Alternatively, stand-alone DML commands can be applied directly (query language). 6 Database Management Systems
  • 7.
    DBMS Languages • HighLevel or Non-procedural Languages: also called set at a time, e.g., SQL, are set- oriented and specify what data to retrieve than how to retrieve. Also called declarative languages. • Low Level or Procedural Languages: also called record-at-a-time; they specify how to retrieve data and include constructs such as looping. 7 Database Management Systems
  • 8.
    DBMS Interfaces • Menu-Basedinterfaces for Web Clients or Browsing • Form-Based Interfaces • Graphical User Interfaces • Natural Language Interfaces • Interfaces for Parametric Users • Interfaces for the DBA 8 Database Management Systems
  • 9.
    Menu-Based Interfaces forWeb Clients or Browsing • List of options presented to the users called menus that lead the user through the formulation of a request • No need to memorize the specific command or syntax of a query language • Query is composed step-by-step by picking options from a menu that is displayed by the system such as pull down menus. 9 Database Management Systems
  • 10.
    Form-Based Interfaces • Displaysa form to each user • Fill the entries in the form (entering or retrieving data) • Designed for Naïve users • Forms specification languages (SQL* forms, Oracle Forms) help programmers to specify such forms 10 Database Management Systems
  • 11.
    Graphical User Interfaces •Displays a schema to user in diagrammatic form • Specify the query by manipulating the diagram • Utilizes both menus and forms • Uses the pointing device 11 Database Management Systems
  • 12.
    Natural Language Interfaces •Accepts request written in English • Attempt to understand the request • Has its own schema • Include dictionary important words • Produces the high-level query and submitted to the DBMS 12 Database Management Systems
  • 13.
    Speech Input andOutput • Limited use of speech as an input query and speech as an answer to a question or result of a request is becoming commonplace. • Applications with limited vocabulary such as telephone directory, flight arrival/departure, and bank account information are allowing speech for input and output to enable ordinary folks to access this information. 13 Database Management Systems
  • 14.
    Interfaces for ParametricUsers • Small steps of operations which have to perform repeatedly i.e., Bank tellers • Design some special interface • Small set of abbreviated commands • Proceed with a minimal number of keystrokes (function keys) 14 Database Management Systems
  • 15.
    Interfaces for theDBA • Most database systems contain privileged commands that can be used only by the DBA's staff. • Creating accounts, granting authorizations • Setting system parameters • Changing schemas or access path 15 Database Management Systems