Code Monkey home page Code Monkey logo

plsql-db2-assignment-scripts's Introduction

1. task - SP
	- SP_INSERT_CHARGER_STATIONS
	- check / exception handling
		- data exist with same values
		- invalid foreign key (not exist)
	return: number of row with the same foreign key
	
=========================================================

2. task - SP
	-sp: SP_GET_EMPLOYEES_BY_PETROL_STATION_NAME
		- input: ps_name (petrol_station table)
	- check / exception handling
		- if exist any row with the given parameter value ->> if not: custom em, then break
		- 1: get pk of this record where ps_name is equal with the parameter
			2: check if exists any row with this foreign key in the connected table ->> if not: c. em. then break
	return: all employee with this foreign key, formatted display , + one aggregated column | (count emp)

=========================================================

3. task - STORED FUNCTION
	- return with numbers if specified condition met
=========================================================

4. task - TRIGGER
	- test petrol_station_histories
	- add trigger to petrol_stations --> insert record if any crud action is executed
	
=========================================================
5. task - VIEW + 2 TRIGGER
=========================================================

		alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';

plsql-db2-assignment-scripts's People

Contributors

attiladekany avatar

Watchers

James Cloos 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.