C Pointers

I found some great tutorials on C pointers. Attempt the tutorials below by coding the examples found within the tutorials.

https://www.programiz.com/c-programming/c-pointers

https://www.programiz.com/c-programming/c-pointers-arrays

https://www.programiz.com/c-programming/c-pointer-functions

(optional) https://www.programiz.com/c-programming/c-dynamic-memory-allocation

(optional) – https://www.programiz.com/c-programming/c-pointer-examples

Database Terminology in Context

In this post, we observe our first database created in our last tutorial and learn the terminology associated with it. See the video below and the notes that follow:

Terminology Summary

TermDefinition
RecordA single row in a database table. (also known as tuple). A record consists of 2 or more fields.  
FieldA single item of data in a record. It can be thought of as a column in a table. (also known as an attribute)
Data typeThe type of data that can be saved in a field. The database management system (DBMS) only allows the specified datatype for each field.  For example, The DBMS would not allow text data to be saved in a field that has a data type of “Date/Time”.  
Primary KeyA field that uniquely identifies each row in a table or entity. It is always present for each row, i.e. It is never allowed to be blank or empty.
Foreign keyThis is a field used to store primary key data from another table. This allows for tables to be related.  
Key (or Key field)Either a primary key or foreign key. Primary keys and foreign keys are called keys because they can be used to represent a record in a table.  
Composite Keywhen two or more keys are combined to form another.  
Composite Primary KeyWhen 2 Keys are combined to form a primary key.
Candidate KeyA key or composite key that can be reasonably assumed to uniquely identify a row in a table.  

Terminology With examples and explanation

Record – A single row in a database table. (also known as tuple). A record consists of 2 or more fields. E.g, a single row in our subject table.

Field – A single item of data in a record. It can be thought of as a  column in a table . (also known as an attribute) E.g  “First Name” in our student Table

Data type – The type of data that is allowed to be saved in a field. The database management system (DBMS) only allows the specified datatype for each field.  For example, The DBMS would not allow text data to be saved in a field that has a data type of “Date/Time”.

Primary Key  – A field that uniquely identifies each row in a table or entity. It is always present for each row, i.e It is never allowed to be blank or empty. E.g Student ID

Foreign key – This is a field used to store primary key data from another table. This allows for tables to be related. E.g Student ID in our enrolment table.

Key (or Key field) – Either a primary key or foreign key. Primary keys and foreign keys are called keys because they can be used to represent a record in a table. E.g any primary or secondary key found in the database tutorial.

Composite Key – when two or more keys are combined to form another. E.g (Student ID, Subject Code) from our Enrolment Table.

Composite Primary Key  – When 2 Keys are combined to form a primary key. For example, in our student table, we could use a students last name, first name and DOB combined to be the primary key for our table .(This is assuming that we never encounter two students with the same names and date of birth!)

Candidate Key  – A key or composite key that can be reasonably assumed to uniquely identify a row in a table. E.g (First Name, Last Name, DOB) in the student table.

© 2021  Vedesh Kungebeharry. All rights reserved. 

Introduction To Databases

Introduction

Definition: A database is a collection of related data stored in separate data structures, usually table structures. Data stored in databases contain a minimal amount of duplication.

Alternative Definition: A database is as store of data organized into related tables.

A database purpose is to store and manage information; and to be easily searchable to produce filtered information on the data by querying the database.

Facilities querying the database are provided by the Database Management System (DBMS).

For example, a school’s database can store all information about the school in different tables – Teacher information in a teacher table , Student information in a student table, subject information in a subject table.

Because the tables are related to each other , we can perform queries on the database to find:

The list of subjects for a particular student,

The number of students assigned to a subject,

The list of student assigned to a teacher,

…..etc.

Required reading

Information technology for CSEC , 3rd Edition, Howard Campbell , pages 222 to 225

Database Introduction Tutorial Video from earlier class (Thurs 7th Jan 2021)

The following content and skills were demonstrated in the class:

Skill/ContentTimestampLink
Database Definition00:30https://youtu.be/sxzuxKSK_I8?t=49
Purpose Of Databases02:17https://youtu.be/sxzuxKSK_I8?t=137
Creating a Database in Access03:39https://youtu.be/sxzuxKSK_I8?t=219
Creating and Saving tables05:25https://youtu.be/sxzuxKSK_I8?t=325
Table Structure in Design View07:34https://youtu.be/sxzuxKSK_I8?t=454
Toggling Design View08:01https://youtu.be/sxzuxKSK_I8?t=481
Primary Keys08:23https://youtu.be/sxzuxKSK_I8?t=505
Adding Table Fields (Columns)08:57https://youtu.be/sxzuxKSK_I8?t=537
Data Types: Date/Time10:28https://youtu.be/sxzuxKSK_I8?t=631
Adding and editing Data11:13https://youtu.be/sxzuxKSK_I8?t=674
Auto Number Primary Key14:29https://youtu.be/sxzuxKSK_I8?t=869
Uniqueness Of Primary Keys15:15https://youtu.be/sxzuxKSK_I8?t=915
Creating Subject table16:14https://youtu.be/sxzuxKSK_I8?t=974
Manual Primary Key17:57https://youtu.be/sxzuxKSK_I8?t=1078
Presence Check of PK19:27https://youtu.be/sxzuxKSK_I8?t=1167
PKs cannot be Duplicated20:30https://youtu.be/sxzuxKSK_I8?t=1230
Bridge Entities for Relationships and Joins22:09https://youtu.be/sxzuxKSK_I8?t=1329
Composite Primary Key23:07https://youtu.be/sxzuxKSK_I8?t=1387
Yes/No Boolean datatype25:41https://youtu.be/sxzuxKSK_I8?t=1541
Relationship Creation with Lookup Wizard27:11https://youtu.be/sxzuxKSK_I8?t=1631
Examining the lookup33:26https://youtu.be/sxzuxKSK_I8?t=2006
Creating 2nd Lookup and Relationship33:41https://youtu.be/sxzuxKSK_I8?t=2081
Linking Data to create New Information about entities39:58https://youtu.be/sxzuxKSK_I8?t=2398
Creating forms automatically from built relationships42:17https://youtu.be/sxzuxKSK_I8?t=2537
Conclusion44:02https://youtu.be/sxzuxKSK_I8?t=2642

Video

The file produced from the video above and an accompanying tutorial hando and can be found here:

https://drive.google.com/drive/folders/1RYNjWTlLJqayxCZPllZSYhmo1PoXjWrv?usp=drive_link

Updates to this post

Unknown Date: Added Class Video and link to database file

2026-05-10:

  • Added Chapters containing Skills in Video and Inserted Table.
  • Added section “Updates to this Post”
  • Removed Download Button

© 2021  Vedesh Kungebeharry. All rights reserved. 

Fillable forms – (Microsoft Word) – Live Class

Hello Students, this post contains a live capture of our class on fillable forms.

Please note:

  1. Not all form controls were demonstrated, the list box and checkbox controls were deliberately left out of the demonstration for your research and learning during homework.
  2. Homework: Information Technology for CSEC 3rd Edition , Howard Campbell – complete the tutorial found from pages 154-157 (this includes all controls that were omitted in class from part 1 above)
  3. Optional exercise – Use google forms to produce a form which captures the information from the tutorial from part 2 above.

© 2021  Vedesh Kungebeharry. All rights reserved.