Ilovepdf Merged
Ilovepdf Merged
Department of CSBS
(4th Semester)
Affiliated to Dr. A.P.J Abdul Kalam Technical University, Uttar Pradesh, Lucknow.
INDEX
S.NO Program Title Date Page Grade Sign
MYSQL
MySQL is an open-source, fast reliable, and flexible relational database management
system, typically used with PHP. This chapter is an introductory chapter about
MySQL, what is MySQL, and the main features of MySQL are described here.
NoSQL Database:
NoSQL Database is used to refer a non-SQL or non relational database.
It provides a mechanism for storage and retrieval of data other than tabular
relations model used in relational databases. NoSQL database doesn't use tables for
storing data. It is generally used to store big data and real-time web applications.
ORACLE
Oracle DB is also known as Oracle RDBMS and, sometimes, simply as Oracle.
Oracle Database (Oracle DB) is a relational database management system (RDBMS)
from Oracle Corporation. Originally developed in 1977 by Lawrence Ellison and other
developers, Oracle DB is one of the most trusted and widely used relational
database engines for storing, organizing and retrieving data by type while still
maintaining relationships between the various types.
The system is built around a relational database framework in which data objects
may be directly accessed by users (or an application front end) through structured
query language (SQL). Oracle is a fully scalable relational database architecture and
is often used by global enterprises which manage and process data across wide and
Primary Key
A primary key is a column of a table or a set of columns that helps to identify every
record present in that table uniquely. There can be only one primary Key in a table.
Also, the primary Key cannot have the same values repeating for any row. Every
value of the primary key has to be different with no repetitions.
Primary Key
A primary key is a column of a table or a set of columns that helps to identify every
record present in that table uniquely. There can be only one primary Key in a table.
Triggers
Triggers are the SQL statements that are automatically executed when there is any change in the
database. The triggers are executed in response to certain events(INSERT, UPDATE or DELETE) in
a particular table. These triggers help in maintaining the integrity of the data by changing the
data of the database in a systematic fashion.
Syntax
create trigger Trigger_name
(before | after)
[insert | update | delete]
on [table_name]
[for each row]
[trigger_body]
Cursors
A cursor is a temporary work area created in the system memory when a SQL statement is
executed. A cursor contains information on a select statement and the rows of data accessed by
it. This temporary work area is used to store the data retrieved from the database, and
manipulate this data.
There are two types of cursors in PL/SQL :
Implicit cursors.
Explicit cursors.
Implicit Cursors
DDL COMMANDS
CREATE
ALTER
DROP
TRUNCATE
SELECT
DELETE
REVOKE
3.
There are some rules for converting the ER diagram into tables which are as follows:
Rule1: Conversion of an entity set into a table
a) Representation of Strong entity set with simple attributes
Table: Employe e
employee_id name Age city mobile
no
Practice Queries using COUNT, SUM, AVG, MAX, MIN, GROUP BY, HAVING, VIEWS Creation and
Dropping.
Practicing Queries using ANY, ALL, IN, EXISTS, NOT EXISTS, UNION, INTERSECT, CONSTRAINTS
etc.
Practicing Sub queries (Nested, Correlated) and Joins (Inner, Outer and Equi).
Cursors- Declaring Cursor, Opening Cursor, Fetching the data, closing the cursor.
Declaring Cursor
2. Opening Cursor