Code Monkey home page Code Monkey logo

airline-database-system's Introduction

Purpose

The purpose of the project is to design a database management system on MS SQL with given schemas, constraints and triggers

Technologies

  • MS SQL
  • JDBC (Java API)
  • Java Swing (GUI)

Process

Step 1: The Language of Choice

For this project, I needed to pick two languages: Java and SQL. Java is a powerful object-oriented language for designing database systems with a user interface. It has a widget toolkit, Java Swing, provide graphic user interface (GUI) design and JDBC, a Java API, to manage connection to a database, issuing queries and commands, and handling result sets obtained from the database. On the other hand, SQL is used to communicate with a database and is the standard language for relational database management systems. SQL statements are used to perform tasks such as update data on a database, or retrieve data from a database. Microsoft SQL Server supports full functionalities to build a database management system from a scratch and that it can be integrated with Java. It was the choice to go.

Step 2: The Understanding of Relational Database

To keep things simple, a relational database is a type of database that stores and provides access to data points that are related to one another. It is based on the relational model, an intuitive, straightforward way of representing data in tables. In a relational database, each row in the table is a record with a unique ID called the key. The columns of the table hold attributes of the data, and each record usually has a value for each attribute, making it easy to establish the relationships among data points. With this in mind, I proceeded to the next step of my project - the implementation.

Step 3: The Implementation & Testing

Coding was fairly straight-forward. With Java Swing, I added functionalities or buttons to search flights, enter customer booking information, view flights on any given date and others. With a custom user interface, I tested several cases where a user connects to the database system via JDBC and queries flights or modifies (edit/add/delete) his/her flight reservation(s).

Step 4: Final Result & Reflection

As a result, I successfully developed a fully working airline database system and learned a lot about SQL and Java, and learned about query optimizations - how different data retrieval methods or queries can improve the overall processing time. Although this project relies on SFU's own MS SQL server to connect to the database system and run the executable .jar file, it introduced me to the fundamentals of the database management system which can be useful for my career in the future.

For More Details

Please contact me via [email protected] to gain full access of the program. This program requires to be run on Simon Frasuer University CSIL computer network and database system, therefore only java files are included. This repository only shows partial code for creating a .jar application integrated with MS SQL Server Management System.

Basic Requirement to Run the Program

  1. You need JDBC software installed for databse connection. (This is where you need authorization & private information)
  2. rs2xml.jar libarary for populating table, otherwise an error will liekly occur
  3. JSwing for interface.

airline-database-system's People

Contributors

dleedev365 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.