Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

Σχετικά έγγραφα
Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

ΕΠΛ 342 Βάσεις εδοµένων

2 Composition. Invertible Mappings

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial

Αποθηκευμένες Διαδικασίες Stored Routines (Procedures & Functions)

Partial Trace and Partial Transpose

Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά.

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

derivation of the Laplacian from rectangular to spherical coordinates

Instruction Execution Times

The Simply Typed Lambda Calculus

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 5: Component Adaptation Environment (COPE)

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ. Βάσεις Δεδομένων (4 ο εξάμηνο) Εργαστήριο MySQL #2

Capacitors - Capacitance, Charge and Potential Difference

VBA ΣΤΟ WORD. 1. Συχνά, όταν ήθελα να δώσω ένα φυλλάδιο εργασίας με ασκήσεις στους μαθητές έκανα το εξής: Version ΗΜΙΤΕΛΗΣ!!!!

Calculating the propagation delay of coaxial cable

Dynamic types, Lambda calculus machines Section and Practice Problems Apr 21 22, 2016

Homework 3 Solutions

Potential Dividers. 46 minutes. 46 marks. Page 1 of 11

D Alembert s Solution to the Wave Equation

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ. ΕΠΛ342: Βάσεις Δεδομένων. Χειμερινό Εξάμηνο Φροντιστήριο 10 ΛΥΣΕΙΣ. Επερωτήσεις SQL

SOAP API. Table of Contents

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

PARTIAL NOTES for 6.1 Trigonometric Identities

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Inverse trigonometric functions & General Solution of Trigonometric Equations

Section 8.3 Trigonometric Equations

CYTA Cloud Server Set Up Instructions

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

[1] P Q. Fig. 3.1

ΓΡΑΜΜΙΚΟΣ & ΔΙΚΤΥΑΚΟΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ

Εγκατάσταση λογισμικού και αναβάθμιση συσκευής Device software installation and software upgrade

ΠΑΝΔΠΙΣΗΜΙΟ ΜΑΚΔΓΟΝΙΑ ΠΡΟΓΡΑΜΜΑ ΜΔΣΑΠΣΤΥΙΑΚΧΝ ΠΟΤΓΧΝ ΣΜΗΜΑΣΟ ΔΦΑΡΜΟΜΔΝΗ ΠΛΗΡΟΦΟΡΙΚΗ

Finite Field Problems: Solutions

ΕΙΣΑΓΩΓΗ ΣΤΟN ΠΡΟΓΡΑΜΜΑΤΙΣΜΟ ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΑΤΡΩΝ ΠΟΛΥΤΕΧΝΙΚΗ ΣΧΟΛΗ ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ Η/Υ ΚΑΙ ΠΛΗΡΟΦΟΡΙΚΗΣ

AME SAMPLE REPORT James R. Cole, Ph.D. Neuropsychology

Advanced Subsidiary Unit 1: Understanding and Written Response

department listing department name αχχουντσ ϕανε βαλικτ δδσϕηασδδη σδηφγ ασκϕηλκ τεχηνιχαλ αλαν ϕουν διξ τεχηνιχαλ ϕοην µαριανι

Section 8.2 Graphs of Polar Equations

Example Sheet 3 Solutions

Other Test Constructions: Likelihood Ratio & Bayes Tests

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

4.6 Autoregressive Moving Average Model ARMA(1,1)

6.3 Forecasting ARMA processes

Fractional Colorings and Zykov Products of graphs

Assalamu `alaikum wr. wb.

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

ΟΔΗΓΙΕΣ ΧΡΗΣΗΣ USE INSTRUCTIONS

Mean bond enthalpy Standard enthalpy of formation Bond N H N N N N H O O O

PL/SQL. Κώστας Στεφανίδης

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Math 6 SL Probability Distributions Practice Test Mark Scheme

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΑΤΡΩΝ - ΤΜΗΥΠ ΒΑΣΕΙΣ ΔΕΔΟΜΕΝΩΝ ΙI

(C) 2010 Pearson Education, Inc. All rights reserved.

Πώς μπορεί κανείς να έχει έναν διερμηνέα κατά την επίσκεψή του στον Οικογενειακό του Γιατρό στο Ίσλινγκτον Getting an interpreter when you visit your

MathCity.org Merging man and maths

ST5224: Advanced Statistical Theory II

Case 1: Original version of a bill available in only one language.

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

Bring Your Own Device (BYOD) Legal Challenges of the new Business Trend MINA ZOULOVITS LAWYER, PARNTER FILOTHEIDIS & PARTNERS LAW FIRM

5.4 The Poisson Distribution.

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

Solution Series 9. i=1 x i and i=1 x i.

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

Συντακτικές λειτουργίες

Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ

Second Order Partial Differential Equations

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

C.S. 430 Assignment 6, Sample Solutions

Section 1: Listening and responding. Presenter: Niki Farfara MGTAV VCE Seminar 7 August 2016

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ Ανώτατο Εκπαιδευτικό Ίδρυμα Πειραιά Τεχνολογικού Τομέα. Ξένη Ορολογία. Ενότητα 5 : Financial Ratios

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

ΚΕΡΑΜΟΠΟΥΛΟΣ ΕΥΚΛΕΙΔΗΣ

ΤΕΧΝΟΛΟΓΙΚΟ ΕΚΠΑΙΔΕΥΤΙΚΟ ΙΔΡΥΜΑ ΚΡΗΤΗΣ ΣΧΟΛΗ ΔΙΟΙΚΗΣΗΣ ΚΑΙ ΟΙΚΟΝΟΜΙΑΣ ΤΜΗΜΑ ΛΟΓΙΣΤΙΚΗΣ ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

«ΑΓΡΟΤΟΥΡΙΣΜΟΣ ΚΑΙ ΤΟΠΙΚΗ ΑΝΑΠΤΥΞΗ: Ο ΡΟΛΟΣ ΤΩΝ ΝΕΩΝ ΤΕΧΝΟΛΟΓΙΩΝ ΣΤΗΝ ΠΡΟΩΘΗΣΗ ΤΩΝ ΓΥΝΑΙΚΕΙΩΝ ΣΥΝΕΤΑΙΡΙΣΜΩΝ»

Lecture 2. Soundness and completeness of propositional logic

THICK FILM LEAD FREE CHIP RESISTORS

EE512: Error Control Coding

ΑΝΩΤΑΤΗ ΣΧΟΛΗ ΠΑΙ ΑΓΩΓΙΚΗΣ ΚΑΙ ΤΕΧΝΟΛΟΓΙΚΗΣ ΕΚΠΑΙ ΕΥΣΗΣ ΠΑΡΑΔΟΤΕΟ ΕΠΙΣΤΗΜΟΝΙΚΗ ΕΡΓΑΣΙΑ ΣΕ ΔΙΕΘΝΕΣ ΕΠΙΣΤΗΜΟΝΙΚΟ ΠΕΡΙΟΔΙΚΟ

If we restrict the domain of y = sin x to [ π, π ], the restrict function. y = sin x, π 2 x π 2

Numerical Analysis FMN011

ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

Section 9.2 Polar Equations and Graphs

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

If we restrict the domain of y = sin x to [ π 2, π 2

ALUMINUM ELECTROLYTIC CAPACITORS LKG

Statistical Inference I Locally most powerful tests

Approximation of distance between locations on earth given by latitude and longitude

How to register an account with the Hellenic Community of Sheffield.

Transcript:

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων Εξάμηνο 7 ο

Procedures and Functions Stored procedures and functions are named blocks of code that enable you to group and organize a series of SQL and PL/SQL statements. Both the source code and executable code are stored in the database. the code is in a centralized and accessible location. invoking the stored code is efficient. Stored procedures and functions promote reusability and maintainability. When validated, they can be used in any number of applications. If the requirements change, only the code needs to be updated. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

CREATE PROCEDURE Statement The CREATE clause enables you to create standalone procedures that are stored in an Oracle database. PL/SQL blocks start with BEGIN, optionally preceded by the declaration of local variables. PL/SQL blocks end with either "END" or "END procedure_name". The REPLACE option indicates that if the procedure exists, it is dropped and replaced with the new version created by the statement. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Create Procedure CREATE [OR REPLACE] PROCEDURE procedure_name [(parameter1 [mode] datatype1, parameter2 [mode] datatype2,...)] IS AS [local_variable_declarations; ] BEGIN -- actions; -- SQL statements -- PL/SQL statements END [procedure_name]; Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Example This procedure will take in the employee ID and the raise amount (expressed as a percentage, such as.06). Based on the raise amount, the salary value in the EMPLOYEES table is updated to the new salary. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Example This procedure will take in the employee ID and the raise amount (expressed as a percentage, such as.06). Based on the raise amount, the salary value in the EMPLOYEES table is updated to the new salary. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

CREATE FUNCTION Statement A function is a named PL/SQL block that can accept parameters, be invoked, and return a value. In general, you use a function to compute a value. You create new functions with the CREATE FUNCTION statement, which may declare a list of parameters and must define the actions to be performed by the standard PL/SQL block. Functions and procedures are structured alike. A function must return a value to the calling environment, whereas a procedure returns zero or more values to its calling environment through OUT parameters. Like a procedure, a function has a header, a declarative section, an executable section, and an optional exception-handling section. A function must have a RETURN clause in the header and at least one RETURN statement in the executable section. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Example Create Function Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Example : Create a function This new function will take in an employee Id and a increment amount as the parameters. The function will return the newly calculated salary amount for the employee Id provided. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Handling an exception Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Creating a package specification CREATE [OR REPLACE] PACKAGE package_name IS AS public type and variable declarations subprogram specifications END [package_name] Example CREATE OR REPLACE PACKAGE hr_pack IS PROCEDURE raise_salary (p_id IN employees.employee_id%type, p_percent IN NUMBER); FUNCTION get_sal (p_id IN employees.employee_id%type) RETURN NUMBER; END hr_pack; Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς

Reports create a tabular report to show a list of employees by manager and their salaries. change the report to a chart. Τμ. Ψηφιακών Συστημάτων, Παν. Πειραιώς