0% found this document useful (0 votes)
15 views13 pages

CSC 102 - Week1

Problem solving
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views13 pages

CSC 102 - Week1

Problem solving
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

CSC 102 – Introduction To Problem

Solving
(Group C)
Group C- Course Outline
• Database concepts
• Microsoft office applications
A. Database Concepts
What is a database?
• A collection of data organized for storage in a computer
memory and designed for easy access by authorized users.
The data may be in form of text, numbers or encoded graphics.

• A tool for collecting and organizing information.

• Databases can store information about people, products,


orders, or anything else.
A typical database is made up of the following:
• Tables
o Records
o fields

• Forms
• Queries
• Reports
Tables
• A database table stores data in rows and columns.
• A table contains one or more records (or rows of data)

• A database is very flexible in that the data is organized into


tables in such a way that redundancies don't occur.

– For example, when storing information about employees, each


employee should only need to be entered once in a table that is set up
just to hold employee data.
– Data about products will be stored in its own table, and data about
branch offices will be stored in another table.
– This process is called normalization.
Records
• Each row in a table is referred to as a record.
• A record is a meaningful and consistent way to combine information
about something.
• Records are where the individual pieces of information are stored.
• Each record consists of one or more fields.
Fields
A field is a single item of information and is represented by the columns in the
table.
For example, you might have a table named "Employees" where each record
(row) contains information about a different employee, and each field
(column) contains a different type of information, such as first name, last
name, address, and so on.
Fields are of specific data types, whether it's text, date or time, number, etc.
An example of a database table
fields

records
Forms
• Forms are sometimes referred to as "data entry screens."
• They are the interfaces used to work with data.
• Forms are used for entering, modifying, and viewing
records
• A database can be created without using forms by simply
editing your data in the table datasheets.
• However, most database users prefer to use forms for
viewing, entering, and editing data in the tables.
• Forms provide an easy-to-use format for working with the
data, and you can also add functional elements, such as
command buttons, to them.
• For example, you might have a form named "Customer
Form" in which you work with customer data.
• Forms also allow you to control how other users interact
with the data in the database. For example, you can
create a form that shows only certain fields and allows
only certain operations to be performed. This helps
protect data and to ensure that the data is entered
Queries
• Queries are the real workhorses in a database and can perform many
different functions.
• Their most common function is to retrieve specific data from the tables.
• Queries allow you to view data that is usually spread across several
tables in a single datasheet.
• Also, queries let you add criteria to "filter" the data down to just the
records you want.
• Queries often serve as the record source for forms and reports.
• Queries come in two basic varieties: select queries and action queries.
• A select query simply retrieves the data and makes it available for use.
You can view the results of the query on the screen, print it out, or copy it
to the clipboard. Or, you can use the output of the query as the record
source for a form or report.
• An action query, as the name implies, performs a task with the data.
Action queries can be used to create new tables, add data to existing
Reports
• Reports are used to summarize and present data in the tables.
• A report usually answers a specific question, such as "How
much money did we receive from each customer this year?" or
"What cities are our customers located in?"
• Each report can be formatted to present the information in the
most readable way possible.
• A report can be run at any time and will always reflect the
current data in the database.
• Reports are generally formatted to be printed out, but they can
also be viewed on the screen, exported to another program, or
sent as e-mail message.
Example of a Report
Practical Class
• Students should know how to create database
tables, how to query and how to generate reports

Class Assignment
• Create any table of choice, e.g.
• Table of Students showing matric number, name, age, level, and gender
• Table of items in a retail shop, showing Item name, price per unit, number in stock, etc
• Table of departments, showing department name, number of lecturers, number of
students, etc
• Populate the table with dummy data
• Create a query for the table
• Generate a report from your query
[email protected]

You might also like