Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

alAsSMALe

Date
Page

SQL DATABASEPART-4
1 What is Database ?_
A database is an Orqanized collection Of data,
Stored and xetxieved digitally fyom remote
Ox lOcal computex sustem. Databases can be

vast and complex, and such databases are


developed using flxed design and modeling
approaches
TUL LUmar LinKEDIN)
NOTES qLLEZY CTE LEGRAM).
Nhat is DBMS ?
DBMS stunds fov Database Management Sustem.
DBMS is a system software xesponsible fox the
creation, etrieval, updationand management
of the database It ensuxes that ouy data is
Consistent osqanized and easily accessible
by seyving as an interface between th e data basel|
andits end-useYs ox appücation so Ftuaxe
3.What is RDBMS? How is it diffexent fyom DBMS?
RDBMSStands for Relationgl Data base Management|
Sustem The key difference heye Compare d to
DBMS is that RDBMS Stoxes data in the fovm
o f 9 collection of tables , n d xelations can be
defined betueen the common elds of these
tables Most Modeyn database management Sustem
Ke MyS0L, Micyosoft sQL SeYueY, OyacleIBM
DB2, and Amazon Redshift aye bQsed on RDBMS

ATuL HumR (uNKEDIN)


elASSMAte
Dafe
Page

STUL AUmaR CLINKEDIn).


NOTES ymLERy (TELEURAM).
4 Ahat is SaL 2
SOL stands fox Styuctuxed ueyy Lanqugge It is
the Stand@xd lanquaae used to maintain the
xelationall database and pex form_many diffexent
data manipulation Operations on the data- SGL-
was initiatly invented in 191O It is a dgtabase
tanguage used foy database CYeation deletion
Fetching and modifying xows,etc Sometimes, it
is pxonounced asSequel We can also use it
to hand le oyqanized datq comprised of entities
Vayiables) and yelations between different entities
of the data

5lhat is difference between SQL and MySGL?


SCL MySOL
SOL is G Standayd MySQL is a database
languaqe which stands manaqement Sustem.
For Structured Quexy
Languaqe)based on the
Engiish Language
SOL fs the core Of the MysQL is an_RDBMS
elational datQbase LRelational Database
INhich is used for Management System)
accessing and managing Such As SQL Seyvey,
darabases Infoxmix etc.

ATULHOYmar urKEDIn)
clASSMAte
Date
Page

6 Alhen SOL appeared?


SCLExst appeayed in 1974 is one of the most
used lanqu ages for maintaining the relationa
database In_986, SQL became the standayd
Of the American National Stan dayds nstitute
ANSI) and ISo (Inteynational Oxgan'zation for
Standardization) in 19831
ATUL KUmeR LinKEDIN)
NOTES CGALLERY (TELELRAM).
1What îs q Self Join?
A Seif-oin iS q tupe of join that can be used
fo connect fo0 fableS As Q esult, if is Q UnaXy
xelationshîp. Each xOw of the table is a attach ed
to itself and al1 other ons of the same table
in a self-join As q esult a self-join is mostly
used to combine Qnd Compaxe_OWS_fYom the
Same data basetable.
8 What Qre the usaQes of SOLY
SOLiS_Yesponsible_for maintaining the yelational dqta
and the datg styuctu res present in the database
Some of Common usages are aiven belowN:
To execure queries aoajnst Q database
Toxetrieve data fyom a doatabase
To insexts yecords fn a database
To updgtes ecords fyom a database
To delete yecords fom a_data bas e.
To Cveate new databases
To cyegte neu tables în a database
To Create views in databa se
T6 pexfoYm conmplex operation s on the database
ATUL naaLunKEPIN) 3
elAsSMAte
Date
Page

G.hat axe Tables andFields?


lables A toble is an Orqanized cO11ection of
data stOxed in the foYm of yoNs and
Columns Colunmns can be cateQorized as
vextica1 and 0 S gs horizontal

Eields he columns in G table are called FieldSs


hile the xons can b e yefermed to 9 s
xecoyds.
ATUt KUTMAEtUNKEDx
NOTES CaALLEKYTELELR ANM).
10.List the diffevent tupes of yelationships in SOLY
Theye are different types of yelations In he
database
One-to-One t his is q Connection between two
tables in which egch xecoyd in one table
COYresponds to the maximum of one
Yecord in the othey

One-fo-Many and Many to:0ne This is the most


fyequent connection n hich a ecoyd in_one
toble is tinked to several yecoyds in another

Many to-Many-This is used when_definino a


Yelationship that yequires seveyai instances
On each side

Seif-RefeYencIng Relarionshlgslhena table has to


declare a connection ulth its elP this is
the method tO employ

AruL ki0m (LINKEDIN).

You might also like