Skip to content

Script files from the tutorials from lecturer Chelli ft. comments for my own learning's sake

Notifications You must be signed in to change notification settings

Scandiking/DAT2K_tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University of South-Eastern Norway

Information Technology and Information Systems

Database 2 (DAT2000)

This repository consists of .sql script files from the Database 2 course.

This is an advanced course that requires that you have passed the course DAT1000 Database 1.

Literature: Connolly T. and Begg C. (2015) Database Systems: A Practical Approach to Design, Implementation, and Management. 6th. edition, Pearson Education.


Tutorial{#} are tasks to be done given out by the lecturer. They are unfortunately not fit for sharing due to copyrighted material, but comments will explain what task the query is for. Comments are also as always added for my own learning's sake.

  • Tutorial1.sql

    • Creating a table
    • Creating a PostgreSQL database
  • Tutorial2.sql

  • Tutorial3.sql

    • Getting information about tables
    • Primary Key and Foreign Key Information
    • Referential Integrity Constraints
    • Information about user-defined data types
    • Information about check constraints
  • Tutorial4.sql

    • Database physical storage in PostgreSQL
    • Tablespaces
    • Indexes in PostgreSQL
  • (Tutorial 5 and 6 is replaced with Cloud solutions and PostgreSQLV3.pdf and Exam DAT2000 2022.pdf)

    • However, in this tutorial, we will try one of the two free cloud-based database offerings mentioned in this blog, which is ElephantSQL. We try free package named “TINY TURTLE” ☺ and then create a new account or sign up with Google account to save time

    • ElephantSQL is shutting down. Therefore I have used the other option listed instead, Heroku.
    • Heroku is bought by Salesforce who is no longer providing any free tiers.
      • The point of the tutorial is anyway nothing but connecting the database to a server-based one and connecting to it trough PostgreSQL.
  • Exam DAT2000 2022.pdf is in progress...

  • [Tutorial7.sql]

    • Server installation, setup, and configuration
    • Client authentication
    • Database roles
    • Backup and recovery, and restoring database
    • Database maintenance
    • Monitoring database activity
    • Monitoring disk usage
    • Performance tuning
  • [Tutorial8.sql]

    • Now try more variations of database roles management in PostgreSQL by applying the exercise in this link

  • [Tutorial9.sql]

    • Basics
      • Creating function
    • Control structures
    • Exception handling
  • [Tutorial10.sql]

    • Extra features
      • Creating procedures
  • (Tutorial 11 and 12 is replaced with Trigger Exercise

  • Tutorial13.sql

    • Triggers in PostgreSQL
  • Tutorial14.sql

    • Managing triggers in PostgreSQL

  • Knowledge

    • key tasks in database administration and -security, such as authorization and access control, backup and recovery, replication and synchronization
    • Applicatoin and behavior of stored procedures and triggers
    • Transaction management, simultaneity and record locking in a multi-user-database
    • Physical storage methods for relational data
    • Purpose of indexes and denormalization, and how this can be accomplished
    • How the database system optimizes queries and executes them
    • Other, non-relational data-storage methods, e.g. object-oriented databases and NoSQL-databases
  • Skills

    • Execute basic administration and operation of a database system
    • Program stored procedures, triggers, and transaction management with a procedure language in a relational database management system (RDBMS)
    • Basic use of non-relational data storage and semi-structured data
  • General competencies

    • Be able to acquire updated knowledge within the knowledge and skill areas named above
    • Understand how databaes are included in application development and operation
    • Have experpience with working in a group
    • Be able to reflect on their own professional practice and improve it trough mentoring and guidance

About

Script files from the tutorials from lecturer Chelli ft. comments for my own learning's sake

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published