0% found this document useful (0 votes)
28 views

DMA Information

The document discusses databases and database views. It defines what databases and views are, provides examples of common database types like relational and NoSQL databases, and describes key database features. It also defines what views are, the different types of views, and operations that can be performed on views like create, drop, modify, and rename. The advantages and disadvantages of using views are also outlined.

Uploaded by

omsabale270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

DMA Information

The document discusses databases and database views. It defines what databases and views are, provides examples of common database types like relational and NoSQL databases, and describes key database features. It also defines what views are, the different types of views, and operations that can be performed on views like create, drop, modify, and rename. The advantages and disadvantages of using views are also outlined.

Uploaded by

omsabale270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

 Hotel management database:menu database,billing database.

Display/Generate daily collection of hotel & generate bills for


customer using views .
 What Is Database
A database is an organized collection of structured information or data, typically stored
electronically in a computer system. It is designed to efficiently manage, retrieve, and manipulate
data according to various criteria and requirements. Databases are used in virtually every aspect
of modern computing, from storing user information on websites to managing inventory for
businesses.
In a database, data is organized into tables, which consist of rows and columns. Each row
represents a record, and each column represents a specific attribute or field of the data. Databases
can range in complexity from simple flat-file databases to more sophisticated relational
databases, which allow for the establishment of relationships between different sets of data.

 Some common types of databases include:


1 ) Relational Databases: These databases organize data into tables with rows and columns and
use structured query language (SQL) for querying and managing data. Examples include
MySQL, PostgreSQL, Oracle Database, SQL Server, and SQLite.
2 ) NoSQL Databases: NoSQL (Not Only SQL) databases are designed to handle large volumes
of unstructured or semi-structured data. They offer flexibility and scalability and are often used
in big data and real-time web applications. Examples include MongoDB, Cassandra, Redis, and
Couchbase.
 Key features of databases include:

 Data Storage: Databases store large volumes of structured, semi-structured, or


unstructured data efficiently.
 Data Integrity: Databases enforce rules and constraints to maintain data
integrity,ensuring that data remains accurate, consistent, and reliable.
 Transactions: They support transaction management, allowing multiple operations to be
grouped together as a single unit of work, ensuring consistency and atomicity.
 Security: Databases offer security features such as authentication, authorization, and
encryption to protect sensitive data from unauthorized access and manipulation.
 Backup and Recovery: Databases provide mechanisms for backing up data regularly
and recovering it in case of system failures, ensuring data durability and availability.

 Advantages of database :
1) Data Centralization: Databases provide a centralized location for storing and
managing data, making it easily accessible to users and applications.
2) Data Consistency: Databases enforce data integrity constraints, ensuring that data
remains accurate and consistent across the entire system.
3) Data Security: Databases offer security features such as access control, encryption,
and authentication mechanisms to protect sensitive data from unauthorized access and
manipulation.
4) Data Scalability: Databases can scale to handle large volumes of data and support
increasing numbers of users and transactions, ensuring that the system can grow as
the needs of the organization evolve.

 What is View
A view is defined as a database object that allows us to create a virtual table in
the database whose contents are defined by a query or taken from one or more
tables. ii. It is used to hide complexity of query from user. iii. The table on
which view is defined is called as base table.
 Types of views
1) Simple View
2) Complex View

1)Simple View : i. view based on only one table it is called as simple view.
ii. It allows to perform DML operations with some restrictions.queries of
simple view cannot have any join or grouping condition.
2) Complex View i. views based on more than one table is called as Complex
View. ii. It doesn’t allow DML operations to be performed.query of complex
view can have join or grouping conditions.
 Operations of views

1.Create View : i. To create view users needs permission from DBA. ii. Create view can
change name of columns in view as per requirements.

Syntax : create view view _name as subquery condition;

Example : IF_dept_student_data as select * from Student where department = ‘IF’;

2.Drop View : It doesn’t affect base table.

Syntax : drop view view _name restrict or cascade;

o Restrict : delete view only if there is no other view depends on this view.

Syntax : drop view view _name restrict;

o Cascade : delete view along with all dependent views on original view.

Syntax : drop view view _name cascade;

3.Modify View : syntax – create or replace view view _name as subquery condition;

4.Rename View : syntax – Rename table old_view_name to new_view_name;

5.Update View : syntax – update view_name

set column_name = ‘value’

where column _name = ‘value’;

 Advantages of Views :
1) Security.
2) Dynamic nature of views.
3) No direct access to data dictionary.
4) It provides data integrity.
5) Views hide complexity.
 Disadvantages of Views :
1) Sometimes,it take more time to execute.
2) Sometimes vimanagement become difficult.

You might also like