SQL Database
SQL Database
Database is a collection of related data and data is a collection of facts and figures that can be
processed to produce information.
Types of Data:
1) .Relational Database(SQL):
Store data in objects called Tables.
They have consist of rows and coloums
Fixed data structure.
They have vertically scalable.
Support complex Queries.
Normalized.
2) Non-Relational Databse(NOSQL)
Store data in any from.
For example key-Value Paris,Graphs,Document(JSON,XML etc,)
Cannot be scaled horizontally.
Rational database ma data aps ma connected hota ha with the help of tables or ya tables
relationship ka zarie aps ma contected hota Normal data base ma asa ni hota hota ha as ma
data primary keys or foreign keys ka zare aps ma contected hota ha
Ya sara database ak ho query language per base karta hain hain jo SQL ha structured Query
language ha
SQL:
Primary keys hum kasi bi chez ko uniquely identify use krna ka li use kata hain.
Relationship in Tables/Database:
IMportant: Employe wala table ma employee ak primary key ha jo ka unique ha or dosra table
EmployeeSalry wala ha jo ka jo ka employees wala table ki primary keys use kr rha hain on keys ko
hum foroeign keys kata haein.
Means ak table ki primary keys dosra table ma use krna wala table ki keys foreign keys kata hain.
Ak employee ka double ya as ziada bi table ho sakta hein as ka alag sa table bana ga ku ka agar ak
employee ka 4 number howa tu baku ka na howa tu fer table tu karab ho j aga or ya normalizaiton ka
rule ka kalaf ho ga as la ak or table bana dia ga
Database Queries
SQL database non sql database ha jo ka
Select this command and add an other table in the database from the outside.
Now you have to see that PublishedYear has data type has int now after change
with the varchar string.
);