BTD310 - SQL Database Design Using Oracle

Outline info
Semester
School
Last revision date 2023-05-29 00:38:20.25
Last review date 2023-07-31 00:15:09.464


Subject Title
SQL Database Design Using Oracle

Subject 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)

Learning Outcomes
Upon successful completion of this subject the student will be able to:

  • 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

Academic Integrity
Seneca upholds a learning community that values academic integrity, honesty, fairness, trust, respect, responsibility and courage. These values enhance Seneca's commitment to deliver high-quality education and teaching excellence, while supporting a positive learning environment. Ensure that you are aware of Seneca's Academic Integrity Policy which can be found at: http://www.senecapolytechnic.ca/about/policies/academic-integrity-policy.html Review section 2 of the policy for details regarding approaches to supporting integrity. Section 2.3 and Appendix B of the policy describe various sanctions that can be applied, if there is suspected academic misconduct (e.g., contract cheating, cheating, falsification, impersonation or plagiarism).

Please visit the Academic Integrity website http://open2.senecac.on.ca/sites/academic-integrity/for-students to understand and learn more about how to prepare and submit work so that it supports academic integrity, and to avoid academic misconduct.

Discrimination/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@senecapolytechnic.ca.

Accommodation 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 Accessibility Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

Camera Use and Recordings - Synchronous (Live) Classes
Synchronous (live) classes may be delivered in person, in a Flexible Learning space, or online through a Seneca web conferencing platform such as MS Teams or Zoom. Flexible Learning spaces are equipped with cameras, microphones, monitors and speakers that capture and stream instructor and student interactions, providing an in-person experience for students choosing to study online.

Students joining a live class online may be required to have a working camera in order to participate, or for certain activities (e.g. group work, assessments), and high-speed broadband access (e.g. Cable, DSL) is highly recommended. In the event students encounter circumstances that impact their ability to join the platform with their camera on, they should reach out to the professor to discuss. Live classes may be recorded and made available to students to support access to course content and promote student learning and success.

By attending live classes, students are consenting to the collection and use of their personal information for the purposes of administering the class and associated coursework. To learn more about Seneca's privacy practices, visit Privacy Notice.

Prerequisite(s)
BTD210

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
    • Query data dictionary using USER_OBJECTS, USER_TABLES, USER_TAB_COLUMNS, USER_INDEXES, USER_SEQUENCES, USER_VIEWS
  • 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)

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

Prescribed Texts
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 

Required Supplies
None

Student Progression and 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

http://www.senecapolytechnic.ca/about/policies/student-progression-and-promotion-policy.html

Grading Policyhttp://www.senecapolytechnic.ca/about/policies/grading-policy.html

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)
OR
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecapolytechnic.ca/about/policies/academics-and-student-services.html) or at Seneca's Registrar's Offices. (https://www.senecapolytechnic.ca/registrar.html).

Modes of Evaluation

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

Approved by: Mary-Lynn Manton