BTD310 Course Outline

Course Code: BTD310
Course Name: SQL Database Design Using Oracle
Offered Date: Fall - 2017 | Other versions
Print Outline
Course Description:
This course covers the advanced principles of relational database design and SQL (Structured Query Language). The entire set of Oracle's SQL*Plus commands will be covered including the use of variables and anonymous blocks.
Credit Status: 1 credit (3 units)
Required for BSD - Bachelor of Technology (Software Development)
Prerequisite: BTD210
Mode of Instruction:
Modes: In-class lecture, in-class exercises, and hands-on activity
Hours per week: 4
Room configurations: Classroom (2 hours), and computer lab (2 hours)
Typical scheduling pattern: Fall term
Learning Outcomes:
  • Prepare the physical relational database schema on an Oracle database
  • Reorganize data in complex user views to 3rd normal form
  • Use SQL SELECT statement to retrieve data required by an application, including use of single row and group functions, nested queries and correlated subqueries
  • Compose advanced SQL statements to create and modify data in an Oracle database
  • Use SQL*Plus commands to efficiently create, edit and run SQL statements and to format SQL output
  • Use SQL Transaction Control Language statements of COMMIT to make database changes permanent and ROLLBACK to undo database changes
  • Use SQL Data Definition Language statements of CREATE, ALTER and DROP to create, modify and drop database objects including tables, views, sequences and indexes with all constraints required to maintain data and referential integrity
  • Use SQL Data Manipulation Language statements of INSERT, UPDATE and DELETE to add, change and delete application data from tables
  • Create a simple Oracle database objects (anonymous block, stored procedure and function)
  • Compose advanced SQL statements to retrieve data from an Oracle database
  • Use SQL Data Control Language statements of GRANT and REVOKE to permit and remove access to database objects
  • Use commands from SQLPLUS, Oracle's extension to the SQL language, to customize a session environment
  • Designing and creating an explicit cursors. Fetching data from database by using cursor and Controlling cursors with parameters.
  • Developing Subprograms by Using iSQL*Plus and invoking Stored Procedures and Functions.
  • Invoking user defined functions from SQL expressions.
  • Understanding the benefits of stored procedures and functions.
  • Creating a package specification and the package body and invoking package from program blocks.
  • Understanding trigger components and firing triggers from DML program blocks.
  • Create a simple GUI application with PowerBuilder (Or Oracle Forms) program
Topic Outline:
  • Logical and Physical Database Design Review - 5%
    • Review identification of entities, attributes, candidate and primary keys and normalization of application user views to 3NF
    • Merge 3NF relations obtained for each user view into a common set of relations for the entire application to produce logical schema
    • Identify required tables, sequences and indexes for physical schema for an application
    • Identify all primary keys, foreign keys, validations, mandatory and uniqueness constraints required to protect data integrity
  • SQL's Data Definition Language Statements - 10%
    • Create, modify and drop tables, views, sequences and indexes
    • Define primary key, foreign key, not null, unique and check constraints required to maintain integrity of application data
  • SQL's SELECT Statement - 10%
    • Create, test and walkthrough queries using ordering, single and group row functions, joins (inner, outer), subqueries and correlated subqueries
    • Implement relational operators (selection, projection, Cartesian Product, join, union, intersection and difference) in SQL
    • Create appropriate test data
  • SQL's Data Manipulation Language Statements - 10%
    • Create, test and walkthrough insert, update and delete statements, both simple and those including use of subqueries
  • SQL's Data Control Language Statements - 5%
    • Apply and test grant and revoke statements
  • SQL's Transaction Control Statements and Management Database Security - 10%
    • Review temporary versus permanent changes to data
    • Apply and test commit and rollback commands
    • Discuss need for transaction processing in a business application
    • Identify and implement transactions required by a business application
    • Manage Database security in DBA role by using Sybase Adaptive Server Anywhere 6.0
  • Declaring PL/SQL Variables and Writing Executable PL/SQL Statements - 10%
    • PL/SQL Block Structure, Executing Statements, PL/SQL Blocks and Block Types.
    • Declaring PL/SQL Variables .
    • Controlling PL/SQL Flow of Execution.
  • Writing Explicit Cursors and Advanced Explicit Cursor Concepts - 10%
    • Invoking Stored Procedures and Functions.
    • PL/SQL Program Construction.
  • Creating Procedures - 10%
    • Controlling, Declaring, Opening, Fetching and Closing the Cursor.
    • Cursors with Parameters and The FOR UPDATE Clause.
  • Creating Packages - 5%
    • Components of a Package.
    • Referencing Package Objects, Developing a Package Specification and Declaring Public Constructions.
  • Creating Database Triggers - 5%
    • Types of Triggers and Guidelines for Designing Triggers.
    •  Differentiating Between Database Triggers and Stored Procedures.
  • GUI Application - 10%
    •  Create a GUI application in PowerBuilder (Or Oracle Forms) with all the basic functionalities (Select, insert, update, and delete records from the database)
Prescribed Text(s):
Seneca Oracle11g notes for SQL and Seneca Oracle 11g notes for PL/SQL
Reference Material:
Database Systems: Design Implementation & Management - 9th Edition
By Carlos Corenel
Published by Course Technology
ISBN : 0-538-46968-4 
Promotion Policy:
  • Pass the weighted average of all assessments
  • Pass the final exam
  • Successfully complete all the assignments
  • Pass the weighted average of the exam, the tests and the quizzes

Grading Policy
A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecacollege.ca/academic-policy) or at Seneca's Registrar's Offices.


Assignments (3) 20%
Tests (2) 35%
Labs 20%
Final Exam 25%

Approved By:
Mary-Lynn Manton
Cheating and Plagiarism:
Each student should be aware of the College's policy regarding Cheating and Plagiarism. Seneca's Academic Policy will be strictly enforced.

To support academic honesty at Seneca College, all work submitted by students may be reviewed for authenticity and originality, utilizing software tools and third party services. Please visit the Academic Honesty site on http://library.senecacollege.ca for further information regarding cheating and plagiarism policies and procedures.
Discrimination and Harassment:
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecacollege.ca.
Accomodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Disabilities Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

Program Information