CSC 102 - Week1
CSC 102 - Week1
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.
• Forms
• Queries
• Reports
Tables
• A database table stores data in rows and columns.
• A table contains one or more records (or rows of data)
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]