CALA - C Comps U6
CALA - C Comps U6
CALA COMPONENT: C
NAME OF SCHOOL: FIRST CLASS ACADEMY DISTRICT: MUTARE
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
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
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:
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
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
- 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.
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
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
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.
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!