DBS301 - Database Design II and SQL Using Oracle

Outline info
Semester
School
Last revision date 2024-01-29 00:28:00.282
Last review date 2024-04-01 00:15:05.456


Subject Title
Database Design II and SQL Using Oracle

Subject Description
This subject continues the study of database design and SQL begun in DBS201. Students will learn the entire set of SQL statements using Oracle's DBMS. Students will also learn Oracle's SQL *Plus commands. Students will work in teams to prepare and implement the logical and physical database schema for a business application requiring 12-18 tables including all necessary contraints to protect the integrity of the data.

Credit Status
1 credit (3 units)
Required for CPA - Computer Programming and Analysis (Ontario College Advanced Diploma)
Required for CPD - Computer Programmer (Ontario College Diploma)

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

1. Identify all constraints required to maintain data integrity for a business application

2. Work effectively as a member of a team to analyse data requirements, prepare an Entity Relationship Diagram, normalize application user views and prepare a logical database schema for a business application requiring more than 12 tables

3. Identify use of necessary indexes, views and sequences for an application

4. Implement, maintain and retrieve data using an Oracle database for a complex business application

5. Use SQL's 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

6. Use SQL*Plus commands to efficiently create, edit and run SQL statements and to format SQL output

7. Use SQL's Data Manipulation Language statements of INSERT, UPDATE and DELETE to add, change and delete application data from tables

8. Use SQL's Transaction Control Language statements of COMMIT to make database changes permanent and ROLLBACK to undo database changes

9. Use SQL's Data Control Language statements of GRANT and REVOKE to permit and remove access to database objects

10. Use commands from SQL*Plus, Oracle's extension to the SQL language, to customize a session environment

11. Use iSQL*Plus to create and run SQL statements

12. Use SQL's SELECT statement to retrieve data required by an application, including use of single row and group functions, nested queries and correlated sub-queries

Essential Employability Skills
    •  Execute mathematical operations accurately.

    •  Apply a systematic approach to solve problems.

    •  Use a variety of thinking skills to anticipate and solve problems.

    •  Locate, select, organize, and document information using appropriate technology and information systems.

    •  Analyze, evaluate, and apply relevant information from a variety of sources.

    •  Manage the use of time and other resources to complete projects.

    •  Take responsibility for one's own actions, decisions, and consequences.

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

Topic Outline

  • Logical and Physical Database Design - 15%
    •         review identification of entities, attributes (mandatory or optional), candidate and primary keys
    •         use RAD method towards 3NF by analyzing a Business Narrative provided by Database/System analyst
    •         produce logical schema in the form of an ERD
    •         identify required tables, sequences and indexes for physical schema for an application
    •         identify all primary keys, foreign keys, validations, and unique constraints required to protect data integrity
  • SQL's Data Definition Language Statements - 20%
    •         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
  • Oracle's Data Dictionary - 5%
    •         Query data dictionary using USER_OBJECTS, USER_TABLES, USER_TAB_COLUMNS, USER_INDEXES, USER_SEQUENCES, USER_VIEWS
    •         Discuss why a commit is automatically performed after any change to data dictionary information
  • SQL's SELECT Statement - 30%
    •         Create, test and walkthrough queries using ordering, single and group row functions, joins (inner, outer), and 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 - 15%
    •         Create, test and walkthrough insert, update and delete statements, both simple and those including use of subqueries
  • SQL's Transaction Control Statements - 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
  • Oracle SQL*Plus Commands - 5%
    •         Customize a session environment using SET command
    •         Use the DESCRIBE, SPOOL, START, @ commands
    •         Use Editing commands

Mode of Instruction
3 hours interactive lecture per week.
1 hour lab time per week.

Prescribed Texts

  • Oracle 11g Notes - SQL (available at the seneca bookstore with Yellow cover)

Reference Material

  • Oracle  SQL by Example –4TH Edition by Alice Rischert, The Prentice Hall, Pearson Education

Required Supplies
None

Student Progression and Promotion Policy
To obtain a credit in this subject, a student must:

  •     Achieve a grade of 50% or better on the final exam
  •     Satisfactorily complete all assignments
  •     Achieve a weighted average of 50% or better for the tests and final exam
  •     Achieve a grade of 50% or better on the overall course


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

Labs 5%
Assignments (minimum of 3) 20%
Tests (minimum of 2) 40%
Final Exam 35%

Prescribed Equipment
None

Approved by: Mary-Lynn Manton