0% found this document useful (0 votes)
22 views

CALA - C Comps U6

The document provides guidance for a Computer Science practical assignment on databases for Form 6 students. It outlines topics to research on data types, identifies files used at an organization to store data manually, and provides instructions on creating database tables and queries using SQL.

Uploaded by

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

CALA - C Comps U6

The document provides guidance for a Computer Science practical assignment on databases for Form 6 students. It outlines topics to research on data types, identifies files used at an organization to store data manually, and provides instructions on creating database tables and queries using SQL.

Uploaded by

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

TEACHER CALA GUIDE

CALA COMPONENT: C
NAME OF SCHOOL: FIRST CLASS ACADEMY DISTRICT: MUTARE

LEARNING AREA: COMPUTER SCIENCE LEVEL: FORM 6 CALA TYPE: PRACTICAL

SYLLABUS TOPIC: DATABASES (National syllabus 8.8 page 12)

SUB TOPICS: STRUCTURED QUERY LANGUAGE (DDL and DML)

COMPETENCIES/SKILLS: - Researching, Problem solving and Practical Skills

CALA CONTEXT/BACKGROUND:

People in your community are using manual methods (pen and paper) to store records and associated data. They
are not even aware of the existence of database software packages that can be used to ease the problems
associated with manual data storage.

DIMENSION/CRITERIA TO BE ASSESSED

- Ability to identify and explain use of different data types.


- Ability to decide and use different fields in files.
- Ability to write/code SQL commands.

Part A

a) Identify a relational database software of your choice and research on any five data types it uses giving an
example of the data that it can hold. [10]
b) Using any organization of your choice in your community (school, church, club etc.), identify a particular
area that uses manual files to store data. Select any two manual files that they use. State the name of the
files and any five important fields in the files. [10]

Part B

Using SQL commands

a) Create the database and the two tables identified above that can be used to store the selected list of
records. Remember to include primary keys and foreign keys to link the tables. [10]
b) Populate each table with any one record of your choice. [6]
c) Use any one table to search for a record of your choice. [4]
Submit your SQL commands and sample runs together with your findings presented as hard copy on a
word document.

ASSESSMENT OBJECTIVES:

By the end of the CALA the learner must be able to:

 Identify fields used in different manual files.


 Explain five data types used in relational databases.
 Create meaningful SQL commands to perform different actions.

DIMENSION/ASSESSMENT CRITERIA

- Evidence of research.
- Ability to write SQL codes/statements.
- Demonstration of skills.
LEARNER CALA GUIDE
CALA COMPONENT: C
NAME OF SCHOOL: FIRST CLASS ACADEMY DISTRICT: MUTARE

LEARNING AREA: COMPUTER SCIENCE LEVEL: FORM 6

CALA TYPE: PRACTICAL

SYLLABUS TOPIC: DATABASES (National syllabus 8.8 page 12)

SUB TOPICS: STRUCTURED QUERY LANGUAGE (DDL and DML)

COMPETENCIES/SKILLS: - Researching, Problem solving and Practical Skills

CALA CONTEXT/BACKGROUND:

People in your community are using manual methods (pen and paper) to store records and associated data. They
are not even aware of the existence of database software packages that can be used to ease the problems
associated with manual data storage.

CALA DESCRIPTION

Part A

- Identify a relational database software of your choice and research on any five data types used giving an
example of the data that it can hold. [10]
- Using any organization of your choice in your community (school, church, club etc.), identify a particular
area that uses manual files to store data. Select any two manual files that they use. State the name of the
files and any five important fields in the files. [10]

Part B

Using SQL commands

- Create the database and the two tables identified above that can be used to store the selected list of
records. Include primary keys and foreign keys to link the tables. [10]
- Populate each table with any one record of your choice. [6]
- Use any one table to search for a record of your choice. [4]
- Submit your commands together with your findings presented as hard copy on a word document.

HOW YOU WILL BE ASSESSED

 Listing and explaining any five data types used in relational databases.
 Identify fields used in different manual files.
 Creating meaningful SQL commands to perform different actions.

CALA TIP

- You may use the internet for researching.


ACHIEVEMENT STANDARD
SCHOOL NAME : FIRST CLASS ACADEMY
NAME : __________________________ ____________________ ___________________________________
COMPONENT :C
DATE OF SUBMISSION : _____/_____2023 LEARNING AREA : COMPUTER SCIENCE LEVEL : FORM 6
TITLE : SQL COMMANDS

DIMENSIONS/ EXCELLENT MARK GOOD MARK SATISFACTORY MARK UNSATISFACTORY MARK INADEQUATE MARK TOTAL
CRITERIA
10 9-10 7-8 5-6 3-4 0-2
Data types Clearly stated 5 Partially stated 4 Partially stated 3 data 2 stated data 1 or 0 stated
used in data types and data types and types and examples types and data types and
databases examples examples examples examples

10 9-10 7-8 5-6 3-4 0-2


Manual files Clearly outlined Partially outlined 4 Partially outlined 3 ways Insufficient ways One or zero
used to store 5 correct ways of ways of managing e- of managing e-waste. of managing e- ways of
data managing e- waste. waste. managing e-
waste waste outlined.
10 9-10 7-8 5-6 3-4 0-2
Tables Two tables Two tables partially One table created One table Part of one
creation created correctly created correctly and correctly and data types partially created table partially
and data types data types correctly and created correctly
data types
6 5-6 4 3 2 0-1
Inserting Two records Two records inserted One record inserted One record Part of record
data inserted partially correct in correctly in one table inserted partially inserted
correctly in two two tables correctly in one correctly.
tables table
4 4 3 2 1 0
Searching Correct search Correct search with Partly correct search with Partly correct Wrong search.
data with two one condition one condition search with no
conditions condition
TOTAL
Identify a relational database software of your choice and research on any five data types it uses
giving an example of the data that it can hold.

Copilot
Certainly! Let’s explore relational database software and some common data types they use. Here are five popular relational
database management systems (RDBMS) along with examples of data they can hold:
1.
MySQL:
2.
1. Data Types:
1. INTEGER: Used for whole numbers (e.g., employee IDs, order numbers).
2. VARCHAR: Stores variable-length character strings (e.g., customer names, product descriptions).
3. DATE: Stores dates (e.g., birthdates, order dates).
4. DECIMAL: Holds fixed-point decimal numbers (e.g., prices, quantities).
5. BOOLEAN: Represents true/false values (e.g., active/inactive status).
2. Example Data:
1. An employees table with columns: employee_id, first_name, last_name, hire_date, and is_active.
3.
Oracle Database:
4.
1. Data Types:
1. NUMBER: Stores numeric values (e.g., salary, product weight).
2. CHAR: Fixed-length character strings (e.g., country codes).
3. TIMESTAMP: Stores date and time information (e.g., log timestamps).
4. CLOB: Large character objects (e.g., lengthy descriptions).
5. BLOB: Binary large objects (e.g., images, documents).
2. Example Data:
1. A products table with columns: product_id, product_name, price, description, and product_image.
5.
Microsoft SQL Server:
6.
1. Data Types:
1. BIGINT: Large integer values (e.g., order IDs).
2. NVARCHAR: Stores Unicode character strings (e.g., customer addresses).
3. DATETIME: Represents date and time (e.g., appointment schedules).
4. MONEY: Handles currency values (e.g., total sales).
5. BIT: Represents binary data (e.g., true/false flags).
2. Example Data:
1. A orders table with columns: order_id, customer_id, order_date, total_amount, and is_paid.
7.
PostgreSQL:
8.
1. Data Types:
1. SERIAL: Auto-incrementing integer (e.g., primary keys).
2. TEXT: Stores unlimited-length character strings (e.g., comments).
3. TIMESTAMPTZ: Stores timestamp with time zone (e.g., event timestamps).
4. NUMERIC: Arbitrary precision decimal (e.g., scientific measurements).
5. BOOLEAN: Represents true/false values (e.g., subscription status).
2. Example Data:
1. A comments table with columns: comment_id, user_id, comment_text, timestamp, and is_approved.
9.
SQLite:
10.
1. Data Types:
1. INTEGER: Similar to MySQL’s INTEGER (e.g., product IDs).
2. TEXT: Stores text data (e.g., notes, messages).
3. REAL: Represents floating-point numbers (e.g., temperature readings).
4. BLOB: Handles binary data (e.g., profile pictures).
5. BOOLEAN: Represents true/false values (e.g., user preferences).
2. Example Data:
1. A notes table with columns: note_id, user_id, note_text, creation_date, and is_public.

These examples demonstrate how different RDBMS handle various data types within their tables. Remember that each system
may have additional data types and specific features. If you’d like more details or have further questions, feel free to ask! 😊
For more information on relational databases, you can explore resources like the IBM article1. 🌐
Learn more
1ibm.com2appmaster.io3devart.com4knack.com5phoenixnap.com

You

Using any organization of your choice in your community (school, church, club etc.), identify a
particular area that uses manual files to store data. Select any two manual files that they use. State
the name of the files and any five important fields in the files.

Copilot
Certainly! Let’s explore two examples of manual files used in different types of organizations:
1.
School Records Manual:
2.
3. Purpose: Schools maintain records to track student information, academic progress, and administrative details.
4. Manual Files:
1. Student Attendance Register:
1. Important Fields:
1. Student Name
2. Date
3. Class/Grade
4. Absence Reason (if applicable)
5. Teacher’s Signature
2. Student Cumulative File:
1. Important Fields:
1. Student ID
2. Personal Details (e.g., address, contact information)
3. Academic History (grades, courses taken)
4. Health Records (vaccination history, allergies)
5. Discipline Records
3.
Church Records Manual:
4.
5. Purpose: Churches maintain records related to membership, finances, events, and pastoral care.
6. Manual Files:
1. Membership Roll Book:
1. Important Fields:
1. Member Name
2. Date of Baptism/Confirmation
3. Address
4. Contact Information
5. Membership Status (active, inactive, visitor)
2. Financial Ledger:
1. Important Fields:
1. Date of Transaction
2. Description (e.g., tithes, offerings, expenses)
3. Amount
4. Account (e.g., General Fund, Building Fund)
5. Treasurer’s Signature

Remember that these manual files are essential for maintaining accurate records within schools and churches. They help track
important information and ensure smooth operations. 😊
For more information on church records management, you can explore resources like the Southern Baptist Historical Library
& Archives article1. Additionally, if you have any specific questions or need further assistance, feel free to ask! 📚🏫⛪
Copilot
Certainly! Let’s break down the tasks step by step:
1.
Create the Database and Tables:
2.
1. I’ll create a database called “FarmRecords” with two tables: “Farmers” and “TruckHireRecords.”
2. The “Farmers” table will store information about farmers, and the “TruckHireRecords” table will store truck hire details.
3. We’ll use primary keys and foreign keys to link the tables.
3.
Populate Tables with Sample Data:
4.
1. I’ll insert one record into each table.
5.
Search for a Record:
6.
1. I’ll demonstrate how to search for a specific farmer’s truck hire record.

Here are the SQL commands:


SQL
-- Create the databaseCREATE DATABASE FarmRecords;
-- Use the FarmRecords database
USE FarmRecords;
-- Create the Farmers tableCREATE TABLE Farmers (
FarmerID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
ContactNumber VARCHAR(20)
);
-- Create the TruckHireRecords tableCREATE TABLE TruckHireRecords (
RecordID INT PRIMARY KEY,
FarmerID INT,
HireDate DATE,
TruckType VARCHAR(20),
DistanceKm DECIMAL(10, 2),
FOREIGN KEY (FarmerID) REFERENCES Farmers(FarmerID)
);
-- Insert sample data into Farmers tableINSERT INTO Farmers (FarmerID, FirstName, LastName,
ContactNumber)VALUES (1, 'John', 'Smith', '123-456-7890');
-- Insert sample data into TruckHireRecords tableINSERT INTO TruckHireRecords (RecordID, FarmerID,
HireDate, TruckType, DistanceKm)VALUES (101, 1, '2024-05-10', 'Medium Truck', 150);
-- Search for John Smith's truck hire recordSELECT *FROM TruckHireRecordsWHERE FarmerID = 1;
AI-generated code. Review and use carefully. More info on FAQ.

Findings:
 Farmer John Smith hired a medium truck for a distance of 150 kilometers on May 10, 2024.

Please note that you can replace the sample data with actual information relevant to your organization. Feel free to adjust the
table structures and data as needed. 😊
For a hard copy, you can copy the above commands into a Word document and format it appropriately. If you have any further
requests or questions, feel free to ask!

You might also like