Established 2026  ·  Free Educational Resources for All

Computer · Networks & Data

Networks and Databases: Sharing and Storing Data

A network carries data and a database stores it. Learn how devices connect, how data travels in packets, how tables and keys organise information, and how both work together every time you use a website.

EDUSAMBAM Editorial Team | 22 min read | Computer
🔊 LISTEN TO THIS ARTICLE
SAVE YOUR EYES • IMPROVE YOUR LISTENING
Listen to the article instead of relying only on continuous screen reading.
Ready to read the article.

When you send a message, watch a video, pay for something online or check your marks on a school website, two invisible systems are working together. A network carries the data from one place to another, and a database stores the data in an organised way so that it can be found, changed and protected. Almost every modern service depends on both. This guide explains networks first, then databases, and finally shows how the two work together every time you use an app or a website. Technical words are explained as they appear.

Key Takeaways

A network connects devices so they can share data, using addresses, packets and rules called protocols. A database stores data in tables of records, linked by keys, and is searched with a language such as SQL. When you use a website, your device (the client) talks across a network to a server, and the server asks a database for the data you need. Both must be protected with passwords, updates, encryption and backups.

1.Part One: Computer Networks

A computer network is a group of devices, such as computers, phones, printers and servers, that are connected so they can share data and resources. Networks let people share files and printers, send messages, use the same internet connection, and store information in one central place. Without networks, every computer would work alone.

2.Types of Network by Size

TypeArea coveredExample
PAN
(Personal Area Network)
A few metres around one personA phone connected to wireless earphones
LAN
(Local Area Network)
One building or a small group of buildingsA home, a school or an office network
WLAN
(Wireless LAN)
A LAN that uses radio signals (Wi-Fi) instead of cablesThe Wi-Fi in a library
MAN
(Metropolitan Area Network)
A town or cityA city council's connected offices
WAN
(Wide Area Network)
Very large areas, even across countriesA bank linking branches in many cities

The internet is the largest WAN: a network of networks, connected all over the world. You can read more about it in our article What Is the Internet, Really?

3.The Parts of a Network

PartWhat it does
ClientA device that asks for a service, such as your phone or laptop
ServerA powerful computer that provides a service, such as storing files or hosting a website
Network interface card (NIC)The part inside a device that lets it connect to a network, by cable or wirelessly
SwitchConnects the devices inside one local network and sends data only to the device that needs it
RouterConnects different networks, such as your home network and the internet, and decides where data should go
ModemConverts signals so that your network can use the line from your internet service provider
Wireless access pointLets devices connect to the network using Wi-Fi

In most homes, the modem, router and wireless access point are combined in one box, which people usually call "the router". It is still helpful to know the three jobs separately.

Cables and wireless

Ethernet cables use copper wires and are common inside buildings. Fibre-optic cables send data as pulses of light through thin glass threads, and they can carry very large amounts of data over long distances. Wi-Fi sends data by radio waves, which is convenient but usually slower and less stable than a cable, and weaker through thick walls.

4.Network Layouts (Topologies)

A topology is the way the devices of a network are arranged and connected.

TopologyHow it is arrangedAdvantage and disadvantage
StarEvery device connects to a central switchPlus: one broken cable affects only one device, and it is easy to add devices. Minus: if the central switch fails, the whole network stops.
BusAll devices share one main cablePlus: uses little cable. Minus: a fault in the main cable can stop everything.
RingEach device connects to two neighbours, forming a circlePlus: orderly data flow. Minus: a single break can disrupt the ring.
MeshDevices have many connections to each otherPlus: very reliable, with several routes. Minus: expensive and complex.

Most modern local networks use the star layout, with a switch or wireless access point at the centre.

5.Client-Server and Peer-to-Peer

In a client-server network, clients ask a central server for services, such as files, email or web pages. This makes it easy to manage security and backups in one place. Schools, companies and most websites work this way. In a peer-to-peer network, every device can share files directly with the others, with no central server. It is cheap and simple for a few computers, but it is harder to manage and protect when it grows.

6.Addresses and Names

For data to arrive at the right place, every device needs an address.

7.How Data Travels: Packets and Protocols

Data is not sent as one large piece. It is divided into small units called packets. Each packet has a header (the destination and source addresses, and a number showing its order) and the payload (a part of the real data). The packets may travel by different routes through routers, and the receiving device puts them back in the correct order. This is like posting a long letter as several numbered envelopes: if one envelope is lost, only that one needs to be sent again.

For this to work, all devices must follow the same rules, called protocols. A protocol is an agreed set of rules for communication.

ProtocolUsed for
TCP/IPThe basic rules for addressing and delivering packets across the internet
HTTP and HTTPSLoading web pages; HTTPS adds encryption so others cannot read the data
SMTP and IMAPSending and receiving email
FTPTransferring files between computers
DNSFinding the IP address that belongs to a domain name

Encryption means scrambling data so that only the person with the right key can read it. When a web address starts with "https" and shows a padlock, the connection between your device and the site is encrypted.

8.Speed: Bandwidth, Bits and Latency

Bandwidth is the maximum amount of data that a connection can carry in a given time. It is measured in bits per second, such as megabits per second (Mbps). A bit is the smallest unit of data, and 8 bits make 1 byte. Files are usually measured in bytes, such as megabytes (MB), so you must convert before comparing.

Worked example

How long does it take to download a 500 MB file on a 100 Mbps connection, in ideal conditions?

Step 1: Convert bytes to bits: 500 MB × 8 = 4,000 megabits.

Step 2: Divide by the speed: 4,000 ÷ 100 = 40 seconds.

Notice that 100 Mbps equals 100 ÷ 8 = 12.5 megabytes per second. Real speeds are usually lower because many devices share the connection and signals weaken with distance.

Latency is the delay before data starts to arrive, measured in milliseconds (ms). Low latency matters for video calls and online games, even when bandwidth is high. A connection can have high bandwidth and still feel slow if the latency is high.

9.Keeping a Network Safe

Our article on cybersecurity basics explains threats such as phishing and malware, and good habits for passwords.

10.Basic Network Troubleshooting

When a connection fails, a calm step-by-step check solves most problems:

  1. Check whether only your device is affected, or other devices too.
  2. Check that Wi-Fi is turned on, or that the cable is plugged in firmly.
  3. Restart the device, and if other devices are also affected, restart the router.
  4. Move closer to the router, because walls and distance weaken Wi-Fi.
  5. Check for a service message from your internet provider.
  6. If the problem remains, contact your provider or a teacher or technician.

11.Part Two: Databases

A database is an organised collection of data, stored so that it can be searched, updated and protected easily. A database management system (DBMS) is the software that controls the database, for example by adding data, finding it and deciding who may see it. School records, bank accounts, hospital systems, online shops and library catalogues all use databases.

A spreadsheet (see our guide to spreadsheets and documents) is excellent for small lists and calculations. A database is better when data is large, many people use it at once, the data is linked in complex ways, or accuracy and security are critical.

12.Tables, Records, Fields and Keys

Most databases are relational: they store data in tables that are linked to each other.

TermMeaningExample
TableA set of data about one kind of thingStudents
FieldA column: one kind of detailName
RecordA row: all the details of one itemThe row for one student
Primary keyA field whose value is unique for every recordStudentID
Foreign keyA field that refers to the primary key of another tableClassID in the Students table

Suppose a school stores the teacher of each class. If every student's record repeated the teacher's name, a change of teacher would need hundreds of edits, and mistakes would appear. A better design uses two tables, linked by a key.

StudentIDNameClassID
1Alex8A
2Bo8B
3Casey8A
ClassIDTeacher
8AMs Green
8BMr Singh

Here StudentID and ClassID (in the second table) are primary keys, and ClassID in the Students table is a foreign key. Each teacher is stored once, and if the teacher of 8A changes, only one record needs editing. Avoiding repeated data like this is called reducing redundancy. This relationship, where one class has many students, is called a one-to-many relationship.

13.Keeping Data Correct

A database is only useful if the data is accurate. Designers use several tools:

Validation checks that data is sensible, but it cannot check that it is true. A person can still type the wrong, but valid, number.

14.Asking Questions with SQL

SQL (Structured Query Language, often pronounced "S-Q-L" or "sequel") is the standard language for working with relational databases. A query is a question or instruction that you send to the database. Here is a small table, called Students, to practise with.

IDNameClassMarks
1Alex8A78
2Bo8B64
3Casey8A91
4Dana8B55
5Eli8A70
SQL commandMeaning
SELECTChoose which fields to show
FROMName the table
WHEREKeep only the records that meet a condition
ORDER BYSort the results
INSERT, UPDATE, DELETEAdd, change or remove records
COUNT, AVG, MAX, MIN, SUMCalculate on a group of records
Worked queries

1. Names of students in class 8A, highest marks first.

SELECT Name FROM Students WHERE Class = '8A' ORDER BY Marks DESC;

Result: Casey (91), Alex (78), Eli (70).

2. The average marks of class 8A.

SELECT AVG(Marks) FROM Students WHERE Class = '8A';

Result: (78 + 91 + 70) ÷ 3 = 239 ÷ 3 = 79.67 (about 79.7).

3. How many students scored 60 or more?

SELECT COUNT(*) FROM Students WHERE Marks >= 60;

Result: Alex (78), Bo (64), Casey (91) and Eli (70) qualify, so the answer is 4.

Notice how SQL reads almost like English: choose these fields, from this table, where this condition is true. SQL works with the same ideas as the spreadsheet functions you may know, such as AVERAGE and COUNT, but it can handle far more data and many linked tables.

15.Other Kinds of Database

Relational databases, such as MySQL, PostgreSQL and SQLite, are very common, but not the only kind. NoSQL databases store data in other forms, for example as flexible documents or as simple key-and-value pairs. They are often used when data does not fit neatly into tables or when a system must handle huge amounts of changing data. The right choice depends on the job: relational databases are excellent when data is structured and accuracy is critical, such as in banking and school records.

16.Networks and Databases Working Together

Every time you use a website or an app, networks and databases cooperate. Consider ordering a book from an online shop:

  1. Your phone (the client) sends a request across the network, first to your router and then across the internet. DNS has already found the shop's server address.
  2. The shop's web server receives your request, in packets, over a protocol such as HTTPS.
  3. The server asks a database for the book's price, description and stock.
  4. The database sends the data back to the server, which builds the page.
  5. When you buy, the server writes a new record in the orders table and updates the stock.
  6. The page travels back across the network to your phone.

Often the web server and the database are on computers in a data centre run by a cloud company. Our article on cloud computing explains how this works.

17.Protecting Data

Databases often hold personal information, such as names, addresses and payment details, so protecting them is a serious responsibility. Many countries have laws about how personal data must be collected, stored and shared.

As a user, share personal data only when it is necessary, use different strong passwords for different services, and read what a service says it will do with your information. For more, see Digital Footprint and Online Privacy.

18.Common Misunderstandings

MisunderstandingReality
Wi-Fi and the internet are the sameWi-Fi connects your device to a local network; the router then links that network to the internet
A modem and a router are the sameThe modem connects to the provider's line; the router directs data between networks. They are often combined in one box
Mbps and MBps are the sameOne megabyte equals 8 megabits, so 100 Mbps is about 12.5 MB per second
More Wi-Fi bars always mean fast internetBars show signal strength, not the speed of your internet plan
A database is just a big spreadsheetA database links tables, controls access and handles many users safely
Deleting a file removes all riskCopies may exist in backups and other systems

19.Three Practice Projects

  1. Draw your home network. Draw the router and every device that connects to it, label which use Wi-Fi and which use cables, and name the topology you see.
  2. Design a small database. Choose a topic, such as a library or a shop. Plan two tables, write the fields, choose a primary key for each, and mark the foreign key. You can build it in a spreadsheet using two sheets.
  3. Practise SQL. Use a free online SQL practice website to write the three queries in this article on your own table, and then invent three more.

20.Your Networks and Databases Checklist

Key Terms

TermMeaning
NetworkDevices connected so they can share data and resources
ProtocolAn agreed set of rules for communication
PacketA small unit of data sent across a network
IP addressA number that identifies a device on a network
DNSThe system that turns domain names into IP addresses
BandwidthThe maximum amount of data a connection can carry in a given time
LatencyThe delay before data starts to arrive
DatabaseAn organised collection of data
Primary keyA field that uniquely identifies each record in a table
Foreign keyA field that refers to the primary key of another table
SQLThe standard language for working with relational databases
RedundancyUnnecessary repetition of the same data

A Closing Thought

Networks move data, and databases keep it organised, so together they form the foundation of almost everything you do online. You do not need to be a technician to understand them. If you can picture packets travelling between a client and a server, and tables linked by keys, you already understand the main ideas. Try one of the practice projects, and the next time a page loads, think of the many steps behind it: a name found, a path chosen, a question asked of a database, and an answer sent back in a fraction of a second.

Further Reading
Test Your Understanding

Practice Quiz

14 questions. Select an answer for each, then submit to see your score instantly.

0 of 14 answered
0/14
You scored 0%
Keep practicing
1.Which device connects different networks, such as your home network and the internet, and directs data between them?
2.What does LAN stand for?
3.In which topology does every device connect to a central switch?
4.What does DNS do?
5.Data sent across a network is divided into small units called:
6.How does HTTPS differ from HTTP?
7.How long does a 500 MB file take to download at 100 Mbps in ideal conditions?
8.In a database table, what is a single row called?
9.What is a primary key?
10.Which SQL command is used to retrieve data from a table?
11.What is a foreign key?
12.Which statement describes a client-server network?
13.Why is a relational design with linked tables better than repeating the same data in many records?
14.Which of these helps protect a Wi-Fi network?
← Gateway