×
DATABASE MANAGEMENT

NOVEMBER/DECEMBER 2017
LEVEL: TWO

SUBJECT: DATABASE MANAGEMENT

SECTION A
Answer all the questions
  1. Dasign View
  2. Datashet View
  3. Form View
  4. Print Preview
  5. Layout Preview
To do this
  1. Open the database file Exclusive
  2. With the database file open, go to the "File" tab and click on "Info."
  3. Click on the "Encrypt with Password" option.
  4. Enter a password in the "Password" field and click on "OK."
  5. Confirm the password and click on "OK" again.
  6. Click on save on the quick access toolbar to save changes
The three layouts of a report in MS Access are:
  1. Columnar Layout: This layout displays the report data in a columnar format, with each record appearing as a separate column.
  2. Tabular Layout: This layout presents the report data in a table-like format, with records arranged in rows and fields in columns.
  3. Justified Layout: This layout aligns the fields within a record vertically, providing a compact and organized view of the data.
  1. TData Retrieval:You can use SQL to query the database and retrieve specific records based on criteria.
    For example:
    SELECT * FROM Customers WHERE Country='USA';
  2. Data Manipulation:SQL allows you to insert, update, and delete data in the database.
    For example:
    INSERT INTO Orders (OrderDate, CustomerID)
    VALUES ('2023-06-22', 123);
    UPDATE Products SET Price=10.99 WHERE ProductID=456;
    DELETE FROM Customers WHERE CustomerID=789;
  3. Data Definition: SQL can be used to create and modify database objects such as tables, indexes, and views.
    For example:
    CREATE TABLE Employees (EmployeeID INT, FirstName TEXT, LastName TEXT);
    ALTER TABLE Customers ADD COLUMN Email TEXT;
    DROP TABLE Orders;
Splash screens in MS Access are introductory screens that appear when a database application is launched.

They serve several purposes, including:

  1. Providing a professional and branded opening for the application.
  2. Displaying important information or instructions to the users.
  3. Indicating the progress of loading the database or performing initialization tasks.
  4. Creating a visually appealing and engaging experience for the users before they access the main functionality of the application.
Action queries in MS Access are SQL queries that perform data manipulation operations, such as inserting, updating, or deleting records in a database. These queries directly modify the data in tables based on specified criteria.
There are Five types of Action queries, namely and example in SQL
  1. Insert Query: Adds new records to a table.
    For example:
    INSERT INTO Customers (FirstName, LastName, Email)
    VALUES ('Prince', 'Armstrong', 'cos-t2023@gmail.com');
  2. Update Query: Modifies existing records in a table.
    For example:
    UPDATE Employees SET Salary = Salary * 1.1 WHERE Department = 'IT';
  3. Delete Query: Removes records from a table based on specific conditions.
    For example:
    DELETE FROM Orders WHERE OrderDate < #2022-01-01#;
  4. Append Query:Appends records from one table to another.
    For example,
    appending selected customers from one table to another:
    INSERT INTO NewCustomers (FirstName, LastName, Email)
    SELECT FirstName, LastName, Email FROM OldCustomers WHERE Country = 'GHANA';
  5. Make-Table Query:Creates a new table from selected records of an existing table. For example:
    For example:
    SELECT * INTO NewTable FROM OldTable WHERE Quantity > 100;
A unique, sequential number that is automatically incremented by one, whenever a new record is added to a table.

For example:
When a new record is added to the "Employees" table, MS Access automatically assigns a unique EmployeeID to the record.

Five commonly used data types in MS Access are:
  1. Text: Used to store alphanumeric characters and text strings, such as names or descriptions.
  2. Number: Used to store numeric values, including integers, decimals, or floating-point numbers.
  3. Date/Time: Used to store dates and times. MS Access provides various date and time formats.
  4. Yes/No: Used to store Boolean values, representing true/false or yes/no choices.
  5. Memo: Used to store large amounts of text or long descriptions, allowing for more extensive content than the Text data type.
DBMS stands for Database Management System. It is software that enables users to manage databases, including creating, modifying, organizing, and retrieving data.

DBMS provides a centralized platform for storing and manipulating data efficiently and securely.



SECTION B (PRACTICAL)

1. Create a table in MS Access and use it to enter the records below:

INDEX NAME AGE TOWN
1001 18
1002 15
1003 20
1004 16
1005 19
1006 17
1007 16
1008 15
1009 18
1010 25
1011 26
  1. Create a form for the table above.
  2. Use the form to enter the records for the table above. Fill the name the town Columns with your own imaginations.
  3. Generate a report for the table with your name and index number as the Report tittle. The report should be tabula and a landscape sorted by the age Column in descending order.
  4. Print the report and the form.