Compiled by: Anshul
Apna
College LPU
What is
DATABASE
Compiled by: Anshul
Apna
College LPU
To understand how a database
works, imagine you're
hosting a event
Compiled by: Anshul
Apna
College LPU
On the day of the Event, your guests
start to arrive and you need to keep
track of them all so that you can seat
them properly
You could write their names on pieces of
paper and store them in a filing cabinet
or box, but this would be inefficient and
hard to manage any changes
Compiled by: Anshul
Apna
College LPU
A better way to keep track of these
guests is to use a database
Apna
College LPU
Database
Client
Server
A database is like an electronic filing
system that stores data in an organized
manner so it can be quickly retrieved
Apna
College LPU
In our example, let's say we want to
store each guest's name, age and
dietary restrictions
Apna
College LPU
Column 1 Column 2 Column 3
Column 1 Column 2 Column 3 Column 1 Column 2 Column 3
We first create a database table with
individual columns for each piece of
information (name, age, dietary restrictions)
Apna
College LPU
Then we enter the data into the table by
creating a row for each guest
Apna
College LPU
Finally, when we want to retrieve information
about one particular guest, we use a query
language like SQL to search our database and
find the exact record that matches our criteria.
Apna
College LPU
<MY SQL>
This makes it easy to keep track of all our
guests without having to manually search
through hundreds of pieces of paper.
Apna
College LPU
What do You Think
About This Post?
Apna College LPU
1,785 followers
1h .
Like Comment Repost Send
Share More
& More

What is DataBase 01.pdf

  • 1.
  • 2.
    Compiled by: Anshul Apna CollegeLPU To understand how a database works, imagine you're hosting a event
  • 3.
    Compiled by: Anshul Apna CollegeLPU On the day of the Event, your guests start to arrive and you need to keep track of them all so that you can seat them properly
  • 4.
    You could writetheir names on pieces of paper and store them in a filing cabinet or box, but this would be inefficient and hard to manage any changes Compiled by: Anshul Apna College LPU
  • 5.
    A better wayto keep track of these guests is to use a database Apna College LPU Database Client Server
  • 6.
    A database islike an electronic filing system that stores data in an organized manner so it can be quickly retrieved Apna College LPU
  • 7.
    In our example,let's say we want to store each guest's name, age and dietary restrictions Apna College LPU
  • 8.
    Column 1 Column2 Column 3 Column 1 Column 2 Column 3 Column 1 Column 2 Column 3 We first create a database table with individual columns for each piece of information (name, age, dietary restrictions) Apna College LPU
  • 9.
    Then we enterthe data into the table by creating a row for each guest Apna College LPU
  • 10.
    Finally, when wewant to retrieve information about one particular guest, we use a query language like SQL to search our database and find the exact record that matches our criteria. Apna College LPU <MY SQL>
  • 11.
    This makes iteasy to keep track of all our guests without having to manually search through hundreds of pieces of paper. Apna College LPU
  • 12.
    What do YouThink About This Post? Apna College LPU 1,785 followers 1h . Like Comment Repost Send Share More & More