Module 01
Module 01
3. Explain different types of user-friendly interfaces and types of users who typically use
each.
Ans: -DBMS Interfaces
➢ Menu-Based Interfaces for Browsing
➢ Forms-Based Interfaces
➢ Graphical User Interfaces
➢ Natural Language Interfaces
➢ Interfaces for Parametric Users
➢ Interfaces for the DBA
1. Menu-Based Interfaces for Browsing
• These interfaces present the user with lists of options, called menus, that
lead the user through the formulation of a request.
• Menus do away with the need to memorize the specific commands and
syntax of a query language; rather, the query is composed step by step by
picking options from a menu that is displayed by the system.
• They are often used in browsing interfaces, which allow a user to look
through the contents of a database in an exploratory and unstructured
manner.
2. Forms-Based Interfaces
• A forms-based interface displays a form to each user. Users can fill out all
of the form entries to insert new data, or they fill out only certain entries, in
which case the DBMS will retrieve matching data for the remaining entries.
• Forms are usually designed and programmed for naive users as interfaces to
canned transactions.
3. Graphical User Interfaces
• A graphical interface (GUI) typically displays a schema to the user in
diagrammatic form. The user can then specify a query by manipulating the
diagram.
• In many cases, GUIs utilize both menus and forms. Most GUIs use a
pointing device, such as a mouse, to pick certain parts of the displayed
schema diagram.
4. Natural Language Processing
• These interfaces accept requests written in English or some other language
and attempt to "understand" them.
• A natural language interface usually has its own "schema," which is similar
to the database conceptual schema.
• The natural language interface refers to the words in its schema, as well as
to a set of standard words, to interpret the request.
5. Interfaces For Parametric users
• Parametric users, such as bank tellers, often have a small set of operations
that they must perform repeatedly.
• Systems analysts and programmers design and implement a special interface
for a known class of naive users.
• Usually, a small set of abbreviated commands is included, with the goal of
minimizing the number of keystrokes required for each request.
6. Interfaces For the DBA
• Most database systems contain privileged commands that can be used only
by the DBA’s staff.
• These include commands for creating accounts, setting system parameters,
granting account authorization, changing a schema, and reorganizing the
storage structures of a database.
• The database and the DBMS catalog are usually stored on disk.
• Access to the disk is controlled primarily by the operating system (OS), which schedules
disk input/output.
• A higher-level stored data manager module of the DBMS controls access to
DBMS information that is stored on disk, whether it is part of the database or the
catalog.
• The stored data manager may use basic OS services for carrying out low level
data transfer between the disk and computer main storage, but it controls other
aspects of data transfer, such as handling buffers in main memory.
• The DDL compiler processes schema definitions, specified in the DDL, and
stores descriptions of the schemas (meta-data) in the DBMS catalog.
• The catalog includes information such as the names of files, data items, storage
details of each file and so on.
• The run-time database processor handles database accesses at run time; it
receives retrieval or update query compiler handles high-level queries that are
entered interactively.
• It parses, analyzes, and compiles or interprets a query by creating database
access code, and then generates calls to the run-time processor for executing the
code.
• The pre-compiler extracts DML commands from an application program
written in a host programming language.
• These commands are sent to the DML compiler for compilation into object
code for database access
Clients
• Provide appropriate interfaces through a client software module to access and
utilize the various server’s resources.
• Clients may be diskless machines or PCs or Workstations with disks with only
the client software installed.
• Connected to the servers via some form of a network.
DBMS SERVER
• Provides database query and transaction services to the clients.
• Relational DBMS servers are often called SQL servers, query servers,
or transaction servers Applications running on clients utilize an
application program Interface (API) to access server databases via
standard interface such as:
• ODBC: Open Database Connectivity standard
• JDBC: for Java programming access
• Client and server must install appropriate client module and server module
software for ODBC or JDBC
A client program may connect to several DBMSs, sometimes called the data sources.
• In general, data sources can be files or other non-DBMS software that manages
data.
• Other variations of clients are possible: e.g., in some object DBMSs, more
functionality is transferred To clients including data dictionary functions,
optimization and recovery across multiple servers, etc.’
c) Three-tier client /server Architecture
Common for Web applications
1) Intermediate Layer called Application Server or Web Server:
• Stores the web connectivity software and the business logic part of the
application used to access the corresponding data from the database server.
• Acts like a conduit for sending partially processed data between the database
server and the client.
. Explain the Different types of attributes that occur in an ER diagram model with Example?
1. Simple attributes
• Simple attributes are those attributes which cannot be divided further.
Ex:-
• Here, all the attributes are simple attributes as they cannot be divided further.
2. Composite attributes
• Composite attributes are those attributes which are composed of many other simple
attributes.
Ex: -
• Here, the attributes “Name” and “Address” are composite attributes as they are composed
of many other simple attributes.
3. Single valued attributes
• Single valued attributes are those attributes which can take only one value for a given entity
from an entity set.
Ex: -
• Here, all the attributes are single valued attributes as they can take only one specific value
for each entity.
4. Multi valued attributes
• Multi valued attributes are those attributes which can take more than one value for a given
entity from an entity set.
Ex:
• Here, the attributes “Mob_no” and “Email_id” are multi valued attributes as they can take
more than one values for a given entity.
5. Derived attributes
• Derived attributes are those attributes which can be derived from other attribute(s).
Ex: -
• Here, the attribute “Age” is a derived attribute as it can be derived from the attribute
“DOB”.
6. Key attributes
• Key attributes are those attributes which can identify an entity uniquely in an entity set.
Ex: -
•
Here, the attribute “Roll_no” is a key attribute as it can identify any student uniquely.
E-R Diagrams