Professional Documents
Culture Documents
Data The raw facts are called as data. The word “raw” indicates that they
have not been processed.
Uses of DBMS :
End User An end user is the person that a software program or hardware
device is designed for. The term is based
on the idea that the "end goal" of a software or hardware
product is to be useful to the consumer.
Canned Transaction Canned transactions are standard types of queries and updates
which are frequently
used by Naive end users to constantly querying and updating
database. These are the transactions
that are carefully programmed and tested in advance
Meta-Data Metadata is data that describes other data. Meta is a prefix that in
most information technology usages
means "an underlying definition or description." Metadata
summarizes basic information about data, which can make
finding and working with particular instances of data
easier.
3. Discuss the main characteristics of the database approach and how it differs
from traditional file systems.
* Manages Information
A database always takes care of its information because information is always
helpful for whatever work we do.
It manages all the information that is required to us. By managing
information using a database, we become more deliberated
user of our data.
Q. 4. What are the responsibilities of the DBA and the database designers?
Database administrators (DBAs) use specialized software to store and organize data.
The role may include capacity planning, installation,
configuration, database design, migration, performance monitoring, security,
troubleshooting, as well as backup and data recovery.
The database designer is responsible for defining the detailed database design,
including tables, indexes, views, constraints, triggers,
stored procedures, and other database-specific constructs needed to store,
retrieve, and delete persistent objects. This information is
maintained in the Artifact: Data Model.
The person who is working in the bank will basically tell us the account balance
and post-withdrawal and deposits.
Reservation clerks for airlines, railway, hotels, and car rental companies
basically check availability for a given request
and make the reservation.
Clerks who are working at receiving end for shipping companies enter the package
identifies via barcodes and
descriptive information through buttons to update a central database of received
and in transit packages.
4. Standalone users –
These are those users whose job is basically to maintain personal databases by
using a ready-made program package
that provides easy to use menu-based or graphics-based interfaces, An example is
the user of a tax package that basically
stores a variety of personal financial data of tax purposes. These users become
very proficient in using a specific software package.
1 Usage
File system helps to store a collection of raw data files into the hard disk.
DBMS helps to easily store, retrieve and manipulate data in a database.
This is the main difference between file system and DBMS.
2 Operations
Tasks such as storing, retrieving and searching are done manually in a file system.
Therefore, it is difficult
to manage data using a file system. On the other hand, operations such as updating,
searching,
selecting data is easier in DBMS because it allows using SQL querying.
3 Data Consistency
File system has data inconsistency whereas DBMS provides higher data consistency
using normalization.
4 Data Redundancy
There is more redundant data in a file system whereas there is low data redundancy
in a DBMS.
5 Security
DBMS provides more security to the data than the file system.
7 Users
File system is appropriate to handle data of a small-scale organization or
individual users.
On the other hand, DBMS is suitable for medium to large organizations or multiple
users.
8 Complexity
Handling the file system is simple but handling a DBMS is complex.
Examples
NTFS and Ext are some examples of file systems. MySQL, MSSQL, Oracle, and DB2 are
some examples of DBMS.
External Schema An external schema describes the part of the database which
specific user is interested in.
It hides the unrelated details of the database from the user.
Data Independence Data independence is the type of data transparency that matters
for a centralized DBMS.
Meta data follows a layered architecture, so that when we change data
at one layer, it does not affect the data
at another level. Data independence is ability to modify a schema
definition in one level without affecting
a schema definition in the next higher level.
There are two levels of data independence: Physical Data Independence,
Logical Data Independence.
DML(Data Manipulation : The SQL commands that deals with the manipulation of data
present
Language) in database belong to DML or Data Manipulation Language and this
includes most of the SQL statements
View Definition This language is used to specify user views and their mapping to
conceptual
Language schema. It defines the subset of records available to classes of
users.
It creates virtual tables and the view appears to users like conceptual
level.It specifies user interfaces.
Query Language - Query language (QL) refers to any computer programming language
that requests and retrieves
data from database and information systems by sending queries. It works on user
entered structured and formal
programming command based queries to find and extract data from host databases.
Query language may also be termed database query language.
Host Language - The language that is used for database application programming is
the host language for the DBMS.
As mentioned earlier, a host language may be a traditional programming language,
such as C or COBOL, or it may
be an application-level language, such as Microsoft Access or Visual Basic, as it
is for the Jet DBMS.
Database Utility - The database utility is the interface between the ABAP
Dictionary and the relational database
underlying the SAP system. The database utility allows you to edit (create, delete
and adjust to changes to their
definition in the ABAP Dictionary) database objects derived from objects of the
ABAP Dictionary.
Q.2. Discuss the main categories of data models. What are the basic differences
between the relational model,
the object model, and the XML model?
There are mainly three different types of data models:
1. Conceptual: This Data Model defines WHAT the system contains. This model is
typically created by Business
stakeholders and Data Architects. The purpose is to organize, scope and define
business concepts and rules.
2. Logical: Defines HOW the system should be implemented regardless of the DBMS.
This model is typically
created by Data Architects and Business Analysts. The purpose is to developed
technical map of rules and
data structures.
3. Physical: This Data Model describes HOW the system will be implemented using a
specific DBMS system.
This model is typically created by DBA and developers. The purpose is actual
implementation of the database.
The relational model used the basic concept of a relation or table. The columns or
fields in the table identify
the attributes such as name, age, and so. A tuple or row contains all the data of a
single instance of the
table such as a person named Doug.
Three concepts are critical to understanding object models. They are:
Data Abstraction
Encapsulation
Inheritance
XML - Enabled Database
XML enabled database is nothing but the extension provided for the conversion of
XML document.
This is a relational database, where data is stored in tables consisting of rows
and columns.
The tables contain set of records, which in turn consist of fields.
Q.3. What is the difference between a database schema and a database state?
A database schema or an intention gives a description of the database. This can be
considered as a
blueprint of a database, and gives a list of fields in the database with their data
types. In other words,
it describes the organization and structure of data in a database system, along
with the relationships
mapped between the entities.
A database state provides the present state of the database and its data. It can be
considered as an
extension of the database schema. When a database is newly defined, the
corresponding database state
is empty. Factors that affect a database state are entering, deleting or modifying
information in the database.
Q.5. What is the difference between logical data independence and physical data
independence?
Which one is harder to achieve? Why?
Q.7. Discuss the different types of user-friendly interfaces and the types of
users who typically use each.
Types of user-friendly interfaces and who uses them:Interfaces for the DBA:
Interfaces for DBA include commands for creating accounts, setting system
parameters, granting account
authorization, changing a schema, and reorganizing the storage structures of a
database.
Interfaces for parametric Users: Interfaces for parametric users usually have a
small set of operations that
they must perform repeatedly. Example: some of these parametric users are bank
tellers.
Speech Input and Output - Speech input and output have limited use of speech as an
input query and
speech as an answer. Speech input is detected using a library of predefined words
and also sets up the
parameters that are supplied to queries.
Natural Language Interfaces - Natural language interfaces can accept a request
written in a distinct
language and try to understand them. Interpretations can be successful and
generates a high level query
corresponding to the natural language and submits it to the DBS for processing.
Graphical User Interfaces - Graphical user interface also known as GUI typically
displays a schema to the
user in diagrammatic form. GUIs are mostly user friendly and use components such
as: pointers, buttons,
text fields.
Forms Based Interfaces - Forms based interfaces display a certain form to each
user. A user can fill out all
of the form entries to insert new data, or they can fill out only certain entries,
in which case the
DBMS will retrieve matching data for the other remaining entries.
Menu Based Interfaces for Web Clients or Browsing - Throughout this menu based
interface for web
clients or browsing users are presented a list of options through the menus that
lead the user through
the formulation of a request. One of the most popular technique in web based user
interface are
the pull down menus.
Q.8. What is the difference between the two-tier and three-tier client/server
architectures?
The two-tier is based on Client Server architecture. The two-tier architecture is
like client server application.
The direct communication takes place between client and server. There is no
intermediate between client
and server. Because of tight coupling a 2 tiered application will run faster.
Three-tier architecture typically comprise a presentation tier, a business or data
access tier, and a data tier.
Three layers in the three tier architecture are as follows:
1) Client layer
2) Business layer
3) Data layer
1) Client layer:
It is also called as Presentation layer which contains UI part of our application.
This layer is used for the
design purpose where data is presented to the user or input is taken from the user.
For example designing
registration form which contains text box, label, button etc.
2) Business layer:
In this layer all business logic written like validation of data, calculations,
data insertion etc. This acts as a
interface between Client layer and Data Access Layer. This layer is also called
the intermediary layer helps
to make communication faster between client and data layer.
3) Data layer:
In this layer actual database is comes in the picture. Data Access Layer contains
methods to connect with
database and to perform insert, update, delete, get data from database based on our
input data.
Q.9. Discuss some types of database utilities and tools and their functions.
The database utility is the interface between the ABAP Dictionary and the
relational database underlying
the SAP system. The database utility allows you to edit (create, delete and adjust
to changes to their definition
in the ABAP Dictionary) database objects derived from objects of the ABAP
Dictionary.
phpMyAdmin.
Navicat for MySQL. ...
SQLyog. ...
Sequel Pro. ...
Microsoft SQL Server Management Studio. ...
============================END OF CHAPTER - 2
=========================================
Tuple - A single row of a table, which contains a single record for that relation
is called a tuple.
Domain - a Domain refers to all the values which a data element may contain.
Constraints - Constraints enforce limits to the data or type of data that can be
inserted/updated/deleted from a table.
This ensures the accuracy and reliability of the data in the database.
Constraints could be either on a column
level or a table level.
Super Key - The set of attributes which can uniquely identify a tuple is known as
Super Key.
Primary Key – A primary is a column or set of columns in a table that uniquely
identifies tuples (rows) in that table.
Candidate Key – A super key with no redundant attribute is known as candidate key
Foreign Key – Foreign keys are the columns of a table that points to the primary
key of another table. They act as a cross-reference
between tables.
Entity Integrity - Entity Integrity ensures that there are no duplicate records
within the table and that the field that identifies
each record within the table is unique and never null.
---------------------==================------------------END OF CHAPTER
3---------------=================----------------------------
The six clauses of the SELECT statement. There are six clauses that can be used in
an SQL statement.
These six clauses are SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY.
Clauses must be coded in a specific sequence
An outer join is like an inner join, but adds the remaining rows from one of the
tables. Outer joins are directional: a left outer join
includes all the records from the left table – the first table in the join – and a
right outer join includes all the records from the
right table – the second table in the join.
Outer joins
When performing an inner join, rows from either table that are unmatched in the
other table are not returned.
In an outer join, unmatched rows in one or both tables can be returned. There are a
few types of outer joins:
LEFT JOIN returns only unmatched rows from the left table.
RIGHT JOIN returns only unmatched rows from the right table.
FULL OUTER JOIN returns unmatched rows from both tables.
Syntax: SELECT *
FROM table1 INNER JOIN table2
ON table1.column_name = table2.column_name;
The GROUP BY Statement in SQL is used to arrange identical data into groups with
the help of some functions.
i.e if a particular column has same values in different rows then it will arrange
these rows in a group.
Numeric data types such as int, tinyint, bigint, float, real etc.
Date and Time data types such as Date, Time, Datetime etc.
Character and String data types such as char, varchar, text etc.
Unicode character string data types, for example nchar, nvarchar, ntext etc.
Binary data types such as binary, varbinary etc.
Miscellaneous data types – clob, blob, xml, cursor, table etc.
Keywords in MySQL
Keywords :- Keywords are preserved words that have special meaning in programming
language.
The meaning of keywords has already been described to any programming
language's compiler.
Keyword Description