641 Week 7 Outline Posted on 10/11/2025) by Liping Liu
(641 Week 7 Outline) Warm-Up Queries:
Find the employment year of each employee
Find the departments in Dallas
Find the salesmen who were hired after 1980
--Find menagers whose name ends with M
select enamefrom empwhere job = 'MANAGER' and ename like '%M';
--Give salesman 100 commission
update empset comm = comm + 100where job = 'SALESMAN';
--handle missing values
upate empset comm = 0where comm is null;
select 12*sal + commfrom empgroup by empno;
--use nvl(comm, 0)
update empset comm = nvl(comm, 0) + 100where job = 'SALESMAN';
Lecture 1: Intermediate SQL Programming: Join
implicit join (outer and inner), Explicit Join: inner join, left join, right join, full outer join (or cross join)
Find all the employees located in Dallas
Find all employees and their associated departments
Find all departments and their associated employees
Explicit Joins
Just like + operation in arithmetics to combine two tables, may be used in parentheses for nested combination of more than two tables
Syntax: TableA join TableB on (criterion to join)
three explicit Join types: left, right, inner
Equivalent to implicit joins (e... more >>
Oracle Client Setup and Account Admin Posted on 10/5/2025) by Liping Liu
(Oracle Client Setup and Account Admin) Oracle Data Access Component for Database Programming
If you need to connect to Oracle in Visual Studio to program Oracle databases, you just need to download Oracle... more >>
324: Review I for Database Management Posted on 9/16/2025) by Liping Liu
(324: Review I for Database Management) Concepts:
Databases
DBMS
Logical Data Models
Hierarchical Models
Network Models
Relational Models
Primary key
Foreign Key
Referential Integrity Rules
Entities
Relationships
Mapping Cardinality
Optionality
Attributes
Composite Attributes
Multi-valued Attributes
Relations
Relational Models
Recursive Relationships
Weak Entities
Super and Sub Entities
Gerund
SQL
Constraints
Oracle Meta Tables
Oracle Data Types
Skills and Techniques:
Conceptual Data Modeling (Entity-Relationship Diagramming) from the understanding of business objects and their relationships or from forms, reports, tables, and other data carrier to understand data requirements... more >>
641 Week 4 Outline Posted on 9/15/2025) by Liping Liu
(641 Week 4 Outline) Review of Forward Engineering Rules
Where do you create foreign keys for 1:m relationships? Are FK values required?
Where do you create foreign keys for m:m relationships? Are FK values required?
Where do you create foreign keys for 1:1 relationships? Are FK values required?
How do you transform weak entities and associative entities?
Lecture 1: Grammatical Analysis for Business Data Modeling: nouns for objects or attributes and verbs for relationships
Modeling Exercise 1: Insure-A-Person Inc... more >>
324 Week 4 Outline Posted on 9/15/2025) by Liping Liu
(324 Week 4 Outline) Review Questions:
How to handle multi-valued attributes
How to handle data on relationships
ERD ==> Relational Model Rules (L1:m, 1:1, m:m)
Course and Sections (why splits), Course and Prerequisites (Two entities or one?), Grade (where to store it), minimum grade required for prerequisites
Lecture 1: Advanced Data Modeling (Continue)
4) What about entities that are different but similar? (Chapter 3 of LIU)
Super and sub type entities: How to handle different types of entities that have many attributes in common, e... more >>
Intall ROracle Package for Windows and Mac OS Posted on 9/8/2025) by Liping Liu
(Intall ROracle Package for Windows and Mac OS) Since ROracle package comes as a source code, its installation requires compilation. The installation is further complicated due to requiring Oracle client. Also, for Mac OS, fix_oralib... more >>
324 Week 3 Outline Posted on 9/7/2025) by Liping Liu
(324 Week 3 Outline) Review on Business Data Modeling:
How do you handle composite attributes?
Verb describing relationships and Need to Track Related Records
data on actions may be recorded and so to turn action verbs into objects
Customer buys products
Student reserve books
Orders contains products, direct or indirect relationships?
Employees balance inventories, direct or indirect relationships?
Employee manage accounts
Doctors prescribe tests
Professors teach students
Customers wish-list products
Customers rate Products
Professors advise Students
Patrons checkout Books
Lecture 1: Advanced Entities and Relationships
1) What if relationships have data or attributes? (Chapter 3 of LIU)
Associative Entities or Gerunds: where to keep students grades, Where do you store data on whether a payment is late or not? Bank employees may set up or modify accounts... more >>
641 Week 3 Outline Posted on 9/7/2025) by Liping Liu
(641 Week 3 Outline) Review: Course and Sections (why splits), Course and Prerequisites (Two entities or one?), Grade (where to store it), minimum grade required for prerequisites
Lecture 1: Forward Engineering: ERD to Relational Model: (Remember these rules, Chapter 6 of LIU)
Each entity set is converted into a table with its attributes as the columns of the table
Depending on the mapping cardinality, you modify the tables to make them related
If the relationship is 1:m or m:1, you put the primary key of the table for one-side entity set into the table for the many-side entity set
If the relationship is m:m, you build a junction table which has the primary keys of both entity sets as columns
If the relationship is 1:1, you can put the primary key of one entity set into the table for another entity set... more >>
324 Week 2 Outline Posted on 9/3/2025) by Liping Liu
(324 Week 2 Outline) Review:
Homework Question to Review
Database Concepts:
A record is an array of observations on one entity: Entity (ERD) <—> Record (RM)
Attributes are properties or dimensions of entities (business objects) to be observed, but attributes must be relevant, singled valued, and non-foreign... more >>