Year_8_Computing_Managing_Data
Year_8_Computing_Managing_Data
Learning Objectives
• Identify key features of models such as simulators, including their data requirements.
• Know how to use functions in spreadsheets to analyse data, including IF, MIN, MAX,
COUNT.
• Know how to create relational databases with two or more linked tables.
• Know how to create complex searches for data in databases using two or more criteria.
What is a spreadsheet?
A spreadsheet is a piece of software that allows the user to enter and to present data and
perform calculations.
A teacher wants to collect data about the marks their learners have gained in
recent tests. The different items of data that the teacher will need to gather for this
scenario :
• their class or teaching group
• the name of the test
• the mark achieved in the test
• the date of the test.
What is required for data to be suitable, for example:
• it should contain all the required data; for example - marks cannot be missing
• it does not contain any excess data; for example - choice of food for a class party is
unnecessary
• the data collected is limited to what is acceptable; for example, all the test marks need to
be given as a numeric value and not some as numbers and others as green, amber or red.
Formulas
In Microsoft Excel, a formula is an expression that operates on values in a range of cells.
These formulas return a result.
Excel formulas enable you to perform calculations such as addition, subtraction,
multiplication, and division and a lot more
A Formula alsways begins with an equal to(=) sign.
Example:
Formula used in above table =A2*B2
Functions
For example, instead of specifying each value to be summed like in the formula, you can use the
SUM function to add up a range of cells: =SUM(A2:A14)
SUM
The SUM function adds values. You can add individual values, cell references or ranges or a mix
of all three. For example:
• =SUM(A2:A10, C2:C10) Adds the values in cells A2:10, as well as cells C2:C10.
Average
Returns the average (arithmetic mean) of the arguments. For example, if the range A1:A20
contains numbers, the formula =AVERAGE(A1:A20) returns the average of those numbers.
The MAX and MIN formulas in Excel get the largest and smallest value in a set of numbers,
respectively. For our sample data set, the formulas will be as simple as:
=MAX(B2:B6)
=MIN(B2:B6)
COUNT
The COUNT function counts the number of cells that contain numbers.
COUNTA
The COUNTA function counts the number of cells that are not empty in a range.
COUNTIF
The COUNTIF function is purposed for counting cells that meet a certain criterion. Its syntax
requires 2 arguments, which are self-explanatory:
COUNTIF(range, criteria)
In the first argument, you define a range where you want to count cells. And in the second
parameter, you specify a condition that should be met.
For example, to count how many cells in range A2:A15 are "Apples", you use the following
COUNTIF formula:
=COUNTIF(A2:A15, "apples")
LEN
Whenever you want to know the number of characters in a certain cell, LEN is the function to
use:
LEN(text)
Wish to find out how many characters are in cell A2? Just type the below formula into another
cell:
=LEN(A2)
Please keep in mind that the Excel LEN function counts absolutely all characters including
spaces:
TODAY & NOW
To see the current date and time whenever you open your worksheet without having to manually
update it on a daily basis, use either:
The beauty of these functions is that they don't require any arguments at all, you type the
formulas exactly as written above.
IF FUNCTION
IF is one of logical functions that evaluates a certain condition and returns one value if the
condition is TRUE, and another value if the condition is FALSE.
As you see, IF takes a total of 3 arguments, but only the first one is obligatory, the other two are
optional.
Logical_test (required) - the condition to test. Can be evaluated as either TRUE or FALSE.
Value_if_true (optional) - the value to return when the logical test evaluates to TRUE, i.e. the
condition is met. If omitted, the value_if_false argument must be defined.
Value_if_false (optional) - the value to return when the logical test evaluates to FALSE, i.e. the
condition is not met. If omitted, the value_if_true argument must be set.
Relational database
A relational database stores data in more than one linked table, stored in a file. Relational
databases are designed so that the same data is not stored many times. The tables within a
relational database are linked with relationships (hence the name).
Key fields
Each table within a relational database will have a key field. The relationships linking the tables
use these key fields.
Primary key fields
Most tables will have a primary key field that holds unique data (no two records
are the same in this field) and is the field used to identify that record.
What is a database?
A database is an organised collection of data. A database program is software which stores and
retrieves data in a structured way. This includes the data that is stored and the links between the
data items.
Databases allow their users to enter, access, and analyze their data quickly and easily.
All databases store data using a system of files, records and fields:
• A field is a single item of data, such as a forename or date of birth. Each field has a field
name that is used to identify it within the database. Each field contains one type of data,
for example numbers, text or a date.
• A record is a collection of fields, for example, all the information about one person or one
item. These may contain different data types.
• A file (in database terms) is an organised collection of records, usually where all the
records are organised so that they can be stored together. A file can have one or more
tables within it.
Queries are a way of searching for and compiling data from one or more tables.
When you build a query in Access, you are defining specific search conditions to find exactly
the data you want.
Queries are far more powerful than the simple searches you might carry out within a table. While
a search would be able to help you find the name of one customer at your business, you could
run a query to find the name and phone number of every customer who has made a purchase
within the past week.
You can search for data in Access using a query. This allows you to select a subset of the data
stored in your table.
Each query is created, saved and can be used again later.
If new data is added to the table, when you open a query again it will select the subset from all
the data, including the new data.
Example :
o Social networking sites: Facebook, Google, LinkedIn all these sites generates huge
amount of data on a day to day basis as they have billions of users worldwide.
o E-commerce site: Sites like Amazon, Flipkart, Alibaba generates huge amount of logs
from which users buying trends can be traced.
o Weather Station: All the weather station and satellite gives very huge data which are
stored and manipulated to forecast weather.
o Telecom company: Telecom giants like Airtel, Vodafone study the user trends and
accordingly publish their plans and for this they store the data of its million users.
o Share Market: Stock exchange across the world generates huge amount of data through
its daily transaction.