ICT1521- Introduction to
Databases
Online facilitation class
E-tutor
Dr KN Ohei
A Guide to S Q L,
Tenth Edition
Chapter 1
Introduction
✓ KimTay Pet Supplies
✓ StayWell Student Accommodation
Databases
What is Database?
✓ A structure containing categories of
information and relationships between
these categories
Examples of categories
Overview of
Chapter 1
✓ Sales representative customers etc.
Required Data
Required Data about Sales Rep,
Customer, Item, Invoice, Office and
Owner
Database Concepts
✓
Entity
✓ Attribute
✓ Relationship
✓ Functional dependency
✓ Primary key
Overview of Chapter 2
Database Design
Fundamentals
✓ entity-relationship diagram to represent the
design of a database
Creating Tables
Overview of
Chapter 3 and 4
Single-Table Queries
Creating Tables
What is SOL?
Structured Query Language (S Q L)
• One of the most popular and widely used languages for retrieving and
manipulating database data
✓ Create tables
Chapter 3
Concepts
✓ Create and run SQL commands
✓ Create and activate a database
✓ Identify and use data types to define
columns in tables
✓ Understand and use nulls
✓ Add rows to tables
✓ View table data
✓ Correct errors in a table
✓ Save SQL commands to a file
✓ Describe a table’s layout using SQL
Single-Table Queries
What is a query?
Question that is represented in a particular way that the Database
Management System (DBMS) can understand
How do you
implement a
query in SQL?
You can query a Table using the following
statement:
✓ SELECT-FROM-WHERE statement
✓ Basic form of SELECT command
✓ SELECT clause
✓ Portion of the command that follows the word
SELECT • Columns to be included in the
query results
✓ FROM clause
✓ Portion of the command that follows the word
SELECT • Name of the table containing data
to be queried
✓ WHERE clause
✓ Conditions to be applied to data retrieved
✓ Optional