Lecture 1 Introduction
Lecture 1 Introduction
Programming
Instructor: Suhaila A. Margani
Course Objectives
Equip students with skills to create and manage database objects using Data
Definition Language (DDL).
Provide hands-on experience with tools like SQL Developer, SQL*Plus, and
MySQL command-line client.
Teach students how to create complex queries to extract data from multiple
tables.
Enable students to generate reports, sort and restrict data, and utilize SQL
functions for custom data extraction.
Course learning outcomes
Query, update, and manipulate data within relational databases using SQL.
Extract row and column data from tables using the SELECT statement.
Run complex queries across multiple tables and extract meaningful data.
Create and manage schema objects using SQL Data Definition Language
(DDL).
Course learning outcomes
Understand and apply SQL functions to generate custom reports and extract
data.
Execute data queries and perform data manipulation in both Oracle and
MySQL environments.
Course learning outcomes
Each row represents a record (or an individual data entry), and each
column represents a specific type of information (like a name, date, or
number).
2. Attributes
Describe properties or details of an entity (fields or columns in a table). For
example: employees might have attributes like employee_id,
employee_name, age, … etc.
3. Relationships
Defines how entities relate to each other. For example: an employee
works at a department.
Entity- Relationship Model- ERM
Entity- Relationship Model- ERM
ERM Conventions
Relating Multiple Tables
Each row of data in a table can be uniquely identified by a
primary key.
You can logically relate data from multiple tables using foreign
keys.
Relating multiple tables
Guidelines for Primary Keys and Foreign Keys:
Foreign keys are based on data values and are purely logical (not
physical) pointers.
A foreign key value must match an existing primary key value or unique
key value; otherwise, it must be null.