RDBMS Using Oracle. Lecture week 5. Lecture Overview

Size: px
Start display at page:

Download "RDBMS Using Oracle. Lecture week 5. Lecture Overview"

Transcription

1 RDBMS Using Oracle Lecture week 5 CASE Expression Group Functions Lecture Overview AVG MAX MIN SUM COUNT Etc Working with Date Decode Function INSERT, UPDATE and DELETE commands Commit and Rollback, Alter Table Command

2 CASE Expression CASE Expression is new to Oracle9i and can be used to drive IF THEN ELSE logic in SQL. Syntax CASE Expression WHEN <compare value> THEN <return value>.. [ELSE <return value>..] END The CASE expression begins with CASE keyword and end with keyword END. The ELSE clause is optional, the WHEN clause can be repeated 128 times. select SAL, CASE WHEN SAL < 1000 then 'LOW WHEN SAL < 2000 then 'MID WHEN SAL < 3000 then 'HIGH ELSE ' VERY HIGH END from emp SAL CASE LOW 1600 MID 1250 MID 2975 HIGH 1250 MID 2850 HIGH 2450 HIGH 3000 VERY HIGH 5000 VERY HIGH You can use any of the following =!= <> < <= > >= IN

3 Practice Show names and marks by writing a SQL query on bit4_results and show LOW for marks less then 5, MID for marks less then 7 but more then 4.99, and HIGH for all above and equal to 7. NOTE:- bit4_results is stored in my login i.e. kamran and you all have select access on it. CASE Expression Another way to apply CASE in SQL Select deptno, CASE deptno WHEN 10 THEN SALES WHEN 20 THEN ACCOUNTS WHEN 30 THEN ADMIN ELSE OTHER END from emp; DEPTNO CASEDEPT ACCOUNTS 30 ADMIN 10 SALES

4 <CASE> Other Example select SAL, CASE WHEN SAL in (100, 200, 300, 400, 500) then 'LOW' WHEN SAL =< 2000 then 'MID' WHEN SAL =< 3000 then 'HIGH' ELSE ' VERY HIGH' END from emp; You can use any of the following =!= <> < <= > >= IN Group Functions

5 Group Functions There are many Group Functions available in SQL. By using these functions we can Find Average Count number of records Find maximum value stored in any column Find minimum value stored in any column Sum of values stored in columns etc Average Function Suppose you want to find the average salary of all employees (table is emp) SQL> select avg(sal) ) from emp; SQL> select sal from emp; SQL> select avg(sal) from emp; AVG(SAL) SAL rows selected.

6 Suppose you want to find the average salary of clerks (table is emp) D I F F E R E N C E SQL> select avg(sal) from emp where job = 'CLERK'; AVG(SAL) SQL> select avg(sal), avg(distinct sal) from emp; AVG(SAL) AVG(DISTINCT SAL) SUM Function By using SUM function we can find total of any numeric column.

7 SUM Function To find total of SAL column of emp table SQL> select sum(sal) from emp; SUM(SAL) SUM can different according to available SALARY column To find total salary and total commission of employees who are CLERKS SQL> select sum(sal), sum (comm) from emp where job = 'CLERK'; SUM(SAL) SUM(COMM) SUM Function SQL> select sal, comm from emp where job = 'CLERK'; SAL COMM

8 Finding Highest Value To find highest salary MAX function is used For example: SQL> select max(sal) from emp; MAX(SAL) SQL> select sal from emp; SAL Finding lowest Value To find lowest salary MIN function is used Example: SQL> select min(sal) from emp; MIN(SAL) SQL> select sal from emp; SAL

9 Write a query to find the highest and lowest salaries, and the difference between them? Maximum Salary Minimum Salary Difference SQL> select max(sal), min(sal), max(sal) - min(sal) from emp; MAX(SAL) MIN(SAL) MAX(SAL)-MIN(SAL) Display & Working with DATE values Date values normally follow standard format (DD-MON MON-YY) e.g 12- JAN- 82.

10 Following query will display Employee s HIREDATE in standard format. SQL> select ENAME, HIREDATE from emp; ENAME HIREDATE SMITH 17-DEC-80 ALLEN 20-FEB-81 WARD 22-FEB-81 JONES 02-APR-81 MARTIN 28-SEP-81 BLAKE 01-MAY-81 CLARK 09-JUN-81 We can specify any different format by using TO_CHAR() function. To display employee s hire dates in a format like 01/15/83, enter: SQL> select ENAME, To_CHAR (HIREDATE, 'MM/DD/YY') as MY_DATE from emp ENAME MY_DATE SMITH 12/17/80 ALLEN 02/20/81 WARD 02/22/81 JONES 04/02/81 MARTIN 09/28/81 BLAKE 05/01/81

11 SQL> select ENAME, To_CHAR (HIREDATE, 'DD/MM/YYYY') MY_DATE from emp ENAME MY_DATE SMITH 17/12/1980 ALLEN 20/02/1981 WARD 22/02/1981 JONES 02/04/1981 MARTIN 28/09/1981 BLAKE 01/05/1981 CLARK 09/06/1981 SQL> select ENAME, To_CHAR (HIREDATE, 'Month DD,YYYY') as MY_DATE from emp; ENAME MY_DATE SMITH December 17,1980 ALLEN February 20,1981 WARD February 22,1981 JONES April 02,1981 MARTIN September 28,1981 BLAKE May 01,1981

12 We can also extract YEAR from any date value by using TO_CHAR function SQL> select hiredate, to_char (hiredate, 'YYYY') as year emp; HIREDATE YEAR DEC FEB FEB APR SEP SQL>select ENAME, To_CHAR (HIREDATE, 'Month DD,YYYY HH:MI PM') as MY_DATE from emp ENAME MY_DATE SMITH December 17, :00 AM ALLEN February 20, :00 AM WARD February 22, :00 AM JONES April 02, :00 AM

13 DECODE Function DECODE Function works in a way as a CASE statement or as a SWITCH statement in C/C++ programming language. Suppose we want to display character A instead of deptno 10 in emp table and we want to display B instead of deptno 20 and for all other deptno we want to display character C or word Other. SQL> select ename, deptno, decode(deptno, 10, 'A', 20, 'B', 'Other') from emp; ENAME DEPTNO DECODE SMITH 20 B ALLEN 30 Other WARD 30 Other JONES 20 B MARTIN 30 Other BLAKE 30 Other CLARK 10 A SQL> select ename, deptno from emp; ENAME DEPTNO SMITH 20 ALLEN 30 WARD 30 JONES 20 MARTIN 30 BLAKE 30 CLARK 10

14 SQL> select ename, deptno, decode(deptno, 10, This is 10', 20, 'B', C') from emp; ENAME DEPTNO DECODE SMITH 20 B ALLEN 30 C WARD 30 C JONES 20 B MARTIN 30 C BLAKE 30 C CLARK 10 This is 10 RDBMS Inserting, Updating & Deleting rows in a table Commit and Rollback Alter table Structure

15 Inserting a row into a table The INSERT Command The insert command inserts one or more rows in a table. Its format is INSERT INTO table-name VALUES (a list of data values) ;

16 EMP TABLE Name Type EMPNO NUMBER(4) ENAME VARCHAR2(10) JOB VARCHAR2(9) MGR NUMBER(4) HIREDATE DATE SAL NUMBER(7,2) COMM NUMBER(7,2) DEPTNO NUMBER(2) INSERT a row in EMP table INSERT INTO EMP Values (4567, Ali, MANAGER, 7963, 7-APR-80, 1000, 500, 30); If column names are not mentioned with table name then value are required to be provide in the same sequence as defined in table. SQL> Select * from emp where ename = Ali ; Insert following records in EMP table EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO GEO SALESMAN FEB TANG MANAGER FEB

17 INSERTING few columns INSERT INTO EMP (EMPNO, ENAME, JOB, EPTNO, SAL) VALUES (1234, LEO, MANAGER, 10, 700); NULL values will be entered automatically in remaining columns. COMMIT & ROLLBACK INSERT INTO EMP (EMPNO, ENAME, JOB, DEPTNO, SAL) VALUES (123, JON, CLERK, 30, 500); 1 row created. SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL DEPTNO JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN JON CLERK

18 SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL DEPTNO JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN JON CLERK SQL> ROLLBACK; SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL DEPTNO JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN SQL> INSERT INTO EMP(EMPNO, ENAME,JOB, DEPTNO, SAL) VALUES (123, 'JON', 'CLERK', 30, 500) 1 row created. SQL> commit; Commit complete. After entering COMMIT, changes will be saved permanently.

19 SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL DEPTNO JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN JON CLERK SQL> ROLLBACK; SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL DEPTNO JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN JON CLERK Updating Fields in a table

20 UPDATE command The UPDATE command consists of an UPDATE clause followed by a SET clause and an optional WHERE clause. << Syntax >> UPDATE table-name SET field 1 = value, field 2 = value,.. WHERE logical expression ; UPDATE command UPDATE emp SET sal = 1200 WHERE ename = SMITH ; This update command will update salary of SMITH in emp table.

21 UPDATE command UPDATE emp SET sal = 1500, comm = comm * 2 WHERE job = MANAGER ; This update command will update salary and comm of all managers. What this update command will do??? UPDATE emp SET sal = 1500; It will update the salary column of all rows to 1500 (Table is EMP). // So try to avoid writing these kind of SQL commands

22 Give a 15% salary increment to all managers of emp table. UPDATE emp SET sal = sal * 1.15 Where job = MANAGER ; Try This : - Give a 15% salary increment to all CLERKS and ANALYSTS of emp table. UPDATE emp SET sal = sal * 1.15 Where (job = ANALYST or job = CLERK );

23 Deleting Records From a Table DELETE command DELETE command contains a FROM clause followed by an optional WHERE clause: DELETE from table-name WHERE logical-expression expression;

24 DELETE command Suppose we want to delete the record of SMITH from emp table, for that we will write following SQL DELETE command. DELETE from EMP Where ename = SMITH ; SQL> DELETE from EMP; This statement will remove all records from emp table. STOP! Enter ROLLBACK to undo if you have deleted all records from a table. ( SQL> rollback; )

25 DELETE command Try This Delete record from emp table, whose deptno is 10 and hiredate is 09-JUN JUN-81. MODIFYING TABLE

26 Changing a column s width CREATE TABLE TEST ( ID NUMBER(2), NAME VARCHAR(14) ); SQL> desc test; Name Null? Type ID NUMBER(2) NAME VARCHAR2(14) Changing a column s width To allow ID column of TEST table to accept numbers with upto nine digits SQL> ALTER TABLE TEST MODIFY (ID NUMBER (9) );

27 Changing a column s width SQL> ALTER TABLE TEST MODIFY (ID NUMBER (9) ) ; Table altered. SQL> desc test; Name Null? Type ID NUMBER(9) NAME VARCHAR2(14) Changing a column s width To allow ID column of TEST table to accept numbers with 2 decimal places. SQL> ALTER TABLE TEST MODIFY (ID NUMBER (9, 2) ); SQL>Insert into test values ( , HELLO );

28 Changing Data-type type SQL> ALTER TABLE TEST MODIFY (ID varchar (6) ); Table altered. SQL> desc test; Name Null? Type ID VARCHAR (6) NAME VARCHAR (14) Rules about changing a column width/data-type type etc We can always increase a column width or change its number of decimal places. We can decrease a column s width or change its data type only if the column is empty. You can change a column from NOT NULL to NULL by adding the NULL word to the end of column specification.. MODIFY ( ID NUMBER(9) NULL) ;

29 Rules about changing a column width/data-type type etc You can change a column from NULL to NOT NULL only if there are no null values in the column. Adding a Column

30 Adding a Column To add a new column into any existing table we will follow following procedure. Suppose we want to add address column in TEST table (See TEST table on previous slides). SQL> desc test; Name Null? Type ID NUMBER (9) NAME VARCHAR (14) Adding a Column SQL> ALTER TABLE TEST ADD (address varchar(20) ); Table altered. SQL> desc test; Name Null? Type ID NUMBER (9) NAME VARCHAR(14) ADDRESS VARCHAR(20)

31 Thanks

CH-15 SIMPLE QUERY AND GROUPING

CH-15 SIMPLE QUERY AND GROUPING SQL SELECT STATEMENT. ASHOK GARG CH-15 SIMPLE QUERY AND GROUPING The SELECT statement is used to retrieve information from a table. Syntax: SELECT FROM [WHERE ] [GROUP

More information

ABSTRACT INTRODUCTION IMPORTANT CONCEPTS. John Jay King, King Training Resources

ABSTRACT INTRODUCTION IMPORTANT CONCEPTS. John Jay King, King Training Resources ANALYZE THIS! USING ORACLE8I ANALYTIC FUNCTIONS John Jay King, King Training Resources ABSTRACT Oracle 8.1.6 introduced new Analytic functions allowing complex statistical calculations to be accomplished

More information

Spool Generated For Class of Oracle By Satish K Yellanki

Spool Generated For Class of Oracle By Satish K Yellanki SQL> CREATE VIEW Employees 3 SELECT 4 Empno "ID Number", 5 Ename Name, 6 Sal "Basic Salary", 7 Job Designation 8 FROM Emp; SQL> SELECT 2 Empno "ID Number", 3 Ename Name, 4 Sal "Basic Salary", 5 Job Designation

More information

Relational Normalization Theory. Dr. Philip Cannata

Relational Normalization Theory. Dr. Philip Cannata Relational Normalization Theory Dr. Philip Cannata 1 Designing Databases Using Normalization On No!!! There s another way to design a good set of tables besides Conceptual and Logical Modeling. Normalization

More information

5/10/2018. Connor McDonald

5/10/2018. Connor McDonald 1 Connor McDonald 1 3 4 2 connor-mcdonald.com 5 asktom.oracle.com 6 3 why talk about SQL? # 1 7 after all... 8 4 9 NoSQL non relational 10 5 why talk about SQL? # 2 11 SQL invented "cool" 12 6 MICROSERVICES

More information

Semester 1 Session 3. Database design

Semester 1 Session 3. Database design IRU SEMESTER 2 January 2010 Semester 1 Session 3 Database design Objectives To be able to begin the design of a relational database by Writing a mission statement for the project Specifying the mission

More information

PATANJALI RISHIKUL, PRAYAGRAJ

PATANJALI RISHIKUL, PRAYAGRAJ (a) (b) (c) (d) (e) (f) (g) (h) PATANJALI RISHIKUL, PRAYAGRAJ Assignment # 1 1. Create a database called MyOffice 2. Open database 3. Given the following EMPLOYEE relation, answer the questions. TABLE

More information

SQL and PL/SQL. Connor McDonald 7/17/2018. The meanest, fastest thing out there. Connor McDonald

SQL and PL/SQL. Connor McDonald 7/17/2018. The meanest, fastest thing out there. Connor McDonald SQL and PL/SQL The meanest, fastest thing out there Connor McDonald 1 Copyright 2017, Oracle and/or its affiliates. All rights reserved. Connor McDonald 1 3 4 2 Typical speaker ego slide blog connor-mcdonald.com

More information

nuijten.blogspot.com

nuijten.blogspot.com nuijten.blogspot.com 4 Years 2009 2013 R1 Multitenant Architecture 2009 2013 R1 In Memory Option 2013 2014 R1 12.1.0.2 but what s in it for the Database Developer? Increased Size Limit SQL> create table

More information

Analytic Functions 101

Analytic Functions 101 Analytic Functions 101 Kim Berg Hansen KiBeHa Middelfart, Denmark Keywords: SQL, analytics Introduction The company I have worked at since 2000 as developer/architect is a major Danish retail company called

More information

SQL. Connor McDonald 8/13/2018. The meanest, fastest thing out there. Connor McDonald

SQL. Connor McDonald 8/13/2018. The meanest, fastest thing out there. Connor McDonald SQL The meanest, fastest thing out there Connor McDonald 1 Copyright 2017, Oracle and/or its affiliates. All rights reserved. Connor McDonald 1 3 4 2 Typical speaker ego slide blog connor-mcdonald.com

More information

a allapex SQL Model Clause: a Gentle introduction That s a lie! Alex Nuijten

a allapex SQL Model Clause: a Gentle introduction That s a lie! Alex Nuijten a allapex SQL Model Clause: a Gentle introduction That s a lie! Alex Nuijten a allapex @alexnuijten nuijten.blogspot.com Agenda 2003 Just like Analytic Functions Multidimensional Array from Query Results

More information

SQL and PL/SQL. Connor McDonald 4/24/2018. The meanest, fastest thing out there. Connor McDonald

SQL and PL/SQL. Connor McDonald 4/24/2018. The meanest, fastest thing out there. Connor McDonald SQL and PL/SQL The meanest, fastest thing out there Connor McDonald 1 Copyright 2017, Oracle and/or its affiliates. All rights reserved. Connor McDonald 1 3 4 2 Typical speaker ego slide blog connor-mcdonald.com

More information

allapex SQL Model Clause: Gentle introduction That s a lie! Alex Nuijten a allapex nuijten.blogspot.com

allapex SQL Model Clause: Gentle introduction That s a lie! Alex Nuijten a allapex nuijten.blogspot.com a allapex SQL Model Clause: a Gentle introduction That s a lie! Alex Nuijten a allapex! @alexnuijten nuijten.blogspot.com 500+ Technical Experts Helping Peers Globally Agenda 3 Membership Tiers Oracle

More information

Spool Generated For Class of Oracle By Satish K Yellanki

Spool Generated For Class of Oracle By Satish K Yellanki SQL> SELECT MGR, COUNT(*) 2 FROM Emp 3 GROUP BY MGR; MGR COUNT(*) ---------- ---------- 7566 2 7698 5 7782 1 7788 1 7839 3 7902 1 1 7 rows selected. SQL> DECLARE 2 V_Ename Emp.Ename%TYPE; 3 V_Job Emp.Job%TYPE;

More information

CS Reading Packet: "Simple Reports - Part 2"

CS Reading Packet: Simple Reports - Part 2 CS 325 - Reading Packet: "Simple Reports - Part 2" p. 1 CS 325 - Reading Packet: "Simple Reports - Part 2" Sources: * Oracle9i Programming: A Primer, Rajshekhar Sunderraman, Addison Wesley. * Classic Oracle

More information

Oracle MOOC: SQL Fundamentals

Oracle MOOC: SQL Fundamentals Week 2 Homework for Lesson 2 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is

More information

a allapex Regular Expressions Alex Nuijten

a allapex Regular Expressions Alex Nuijten a allapex Regular Expressions say what? Alex Nuijten a allapex @alexnuijten nuijten.blogspot.com https://flic.kr/p/q3mcj5 Matt Brown create table t (name varchar2(25)) / insert into t (name) values ('BLAKE');

More information

Anthony Carrick INFS7903 Assignment

Anthony Carrick INFS7903 Assignment INFS7903 Assignment Contents Task 1: Constraints... 2 1a - SQL to show all constraints:... 2 1b Implement the missing constraints... 2 Result (of rerunning the sql in 1a):... 3 Task 2: Triggers... 4 2a

More information

2/5/2019. Connor McDonald. Copyright 2018, Oracle and/or its affiliates. All rights reserved.

2/5/2019. Connor McDonald. Copyright 2018, Oracle and/or its affiliates. All rights reserved. Connor McDonald Copyright 2018, Oracle and/or its affiliates. All rights reserved. 1 2 2 1 3 3 mi dispiace non parlo italiano :-( Copyright 2018, Oracle and/or its affiliates. All rights reserved. 4 2

More information

Column Functions and Grouping

Column Functions and Grouping Column Functions and Grouping Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 4.0.3 3.3.1 Unit Objectives After completing this unit, you should

More information

Oracle MOOC: SQL Fundamentals

Oracle MOOC: SQL Fundamentals Week 3 Homework for Lesson 3 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is

More information

STEP BY STEP GUIDE FOR SIF (SALARY INFORMATION FILE) CREATION

STEP BY STEP GUIDE FOR SIF (SALARY INFORMATION FILE) CREATION STEP BY STEP GUIDE FOR SIF (SALARY INFORMATION FILE) CREATION Creation of a valid Salary Information File (SIF) for submission to the bank for processing via WPS requires the following 5 steps: Step I

More information

Grupne funkcije. Grupne funkcije rade nad skupinom redova i vraćaju jedan red za svaku grupisanu grupu

Grupne funkcije. Grupne funkcije rade nad skupinom redova i vraćaju jedan red za svaku grupisanu grupu Grupisanje podataka Ciljevi Preoznati mogućnosti groupnih funkcija Upotrijebiti groupne funkcije u SELECT iskazima Grupisati podatake upotrebom GROUP BY klauzule Uključiti ili isključiti grupisane redova

More information

Archive Log Mining. Supplemental logging must be enabled on the source database before generating redo log files that will be analyzed by LogMiner.

Archive Log Mining. Supplemental logging must be enabled on the source database before generating redo log files that will be analyzed by LogMiner. Archive Log Mining In Oracle8i, LogMiner was introduced as a tool capable of reading redo records found in the redo log files using a relational interface. To find out what Oracle is writing to the redo

More information

Introduction to Relational Databases Part 2: How?

Introduction to Relational Databases Part 2: How? Introduction to Relational Databases Part 2: How? Claude Rubinson University of Houston Downtown rubinsonc@uhd.edu cjr@grundrisse.org September 28, 2011 Normalized Database People PersonUID Person Age

More information

Define Metrics in Reports

Define Metrics in Reports in Reports Metrics are used to build reports. They are the numerical values displayed in reports. They represent aggregations of facts and attributes. A metric is a simple or complex calculation applied

More information

Level 3 Develop software using SQL (Structured Query Language) (7266/ ) ( )

Level 3 Develop software using SQL (Structured Query Language) (7266/ ) ( ) Level 3 Develop software using SQL (Structured Query Language) (7266/7267-310) (7540-389) e-quals Assignment guide for Candidates Assignment B www.cityandguilds.com/e-quals07 September 2017 Version 2.1

More information

PS9018 Position Table

PS9018 Position Table PS9018 Position Table Required table for the Position Control module. Codes maintained by users. Use this screen to enter or view full-time equivalent information about positions associated with an authorized

More information

TM1 Salary Module. Data Entry and Report

TM1 Salary Module. Data Entry and Report TM1 Salary Module Data Entry and Report Table of Contents 1. Accessing Salary Module Data Entry and Report... 1 2. Salary General Information... 4 3. HR Assumptions... 5 4. Report Salary Summary... 6 5.

More information

CUPA Procedures. Date September 29, Theresa Porter, Information Technology Consultant, BOR. Doug Corwin, Information Technology Consultant, BOR

CUPA Procedures. Date September 29, Theresa Porter, Information Technology Consultant, BOR. Doug Corwin, Information Technology Consultant, BOR Title CUPA Procedures Version 1.0 Date September 29, 2010 Created by Theresa Porter, Information Technology Consultant, BOR Edited by Doug Corwin, Information Technology Consultant, BOR Copyright South

More information

HOLIDAYS HOMEWORK CLASS XI Commerce Stream ENGLISH

HOLIDAYS HOMEWORK CLASS XI Commerce Stream ENGLISH HOLIDAYS HOMEWORK CLASS XI Commerce Stream ENGLISH Q1. Harish is the Secretary of the Youth Welfare Association of his locality. The Association has decided to launch a Campaign to educate the inhabitants

More information

Saint Louis University. Business and Finance

Saint Louis University. Business and Finance Saint Louis University Finance Navigation, Requisitioning, & Approvals Business and Finance Office of the Controller Financial Services Salus Center 5 th Floor April 27, 2009 Table of Contents Chapter

More information

Using Oracle VPD In The Real World

Using Oracle VPD In The Real World UKOUG Unix SIG, January 22 nd 2008 Using Oracle VPD In The Real World By Pete Finnigan Written Friday, 27th December 2007 1 1 Introduction - Commercial Slide. Founded February 2003 CEO Pete Finnigan Clients

More information

LECTURE9-PART2: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES AND VIEW

LECTURE9-PART2: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES AND VIEW College of Computer and Information Sciences - Information Systems Dept. LECTURE9-PART2: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES AND VIEW Ref. Chapter5 and 6 from Database Systems: A Practical Approach

More information

tackling time troubles ORA-01883: overlap was disabled during a region transition

tackling time troubles ORA-01883: overlap was disabled during a region transition ORA-01847: day of month must be between 1 and ORA-01839: date not valid for month last day of month specified tackling time troubles ORA-01883: overlap was disabled during a region transition ORA-01878:

More information

Lecture9: Data Manipulation in SQL, Advanced SQL queries

Lecture9: Data Manipulation in SQL, Advanced SQL queries IS220 / IS422 : Database Fundamentals College of Computer and Information Sciences - Information Systems Dept. Lecture9: Data Manipulation in SQL, Advanced SQL queries Ref. Chapter5 Prepared by L. Nouf

More information

IF Function Contin.. Question 1

IF Function Contin.. Question 1 Lesson 07- Practical IF Function Contin.. Question 1 A. Write an AND formula to determine if A>A and AA or A

More information

Metadata Matters. Thomas Kyte

Metadata Matters. Thomas Kyte Metadata Matters Thomas Kyte http://asktom.oracle.com/ Did you know The optimizer uses constraints Statistics plus Extended statistics (profiles, virtual columns, etc) plus System statistics plus Dictionary

More information

SQL Programming 1 SQL1 1

SQL Programming 1 SQL1 1 SQL Programming 1 The SELECT-FROM-WHERE Structure Single Relation Queries ORDER BY LIKE IS (NOT) NULL DISTINCT Aggregation Queries Grouping Having Oracle SQL*Plus Readings: Section 6.1 and 6.4 of Textbook.

More information

barcode_label version BoostMyShop

barcode_label version BoostMyShop barcode_label version BoostMyShop May 04, 2018 Contents barcode_label 1 1. Overview / Requirements 1 Introduction 1 Compatibility 1 Requirements 1 2. Installation / Upgrade 2 Upload 2 Create barcode attribute

More information

SQL> exec sample_font

SQL> exec sample_font NOTE itty bitty fonts in this presentation SQL> exec sample_font Can you read this? 1 Connor McDonald OracleDBA co.uk 2 3 bio slide 4 Connor McDonald 6 why?...now 7 version 8.0 8 9 a personal history 10

More information

Adaptive Cursor Sharing Short answer to sharing cursors and optimizing SQL

Adaptive Cursor Sharing Short answer to sharing cursors and optimizing SQL Adaptive Cursor Sharing Short answer to sharing cursors and optimizing SQL Mohamed Houri www.hourim.wordpress.com 1 Agenda Set the scene Expose the performance problem caused by sharing cursors Literal,

More information

CP 94bis Statement of amounts due with weight brackets

CP 94bis Statement of amounts due with weight brackets CP 94bis Statement of amounts due with weight brackets Completion instructions Document version: 1.0 Date: 2016 03 29 UPU form template valid from: 2017 01 01 1 General rules A CP 94bis statement of amounts

More information

Lab 20: Excel 3 Advanced

Lab 20: Excel 3 Advanced Lab 20: Excel 3 Advanced () CONTENTS 1 Lab Topic... Error! Bookmark not defined. 1.1 In-Lab... 27 1.1.1 In-Lab Materials... 27 1.1.2 In-Lab Instructions... 27 1.2 Out-Lab... 33 1.2.1 Out-Lab Materials...

More information

Database Systems CSE 414

Database Systems CSE 414 Database Systems CSE 414 Lectures 5: Grouping & Aggregation 1 Announcements HW1 is due next Monday, 11pm 2 Outline Last time: outer joins how to aggregate over all rows Grouping & aggregations (6.4.3 6.4.6)

More information

University Finance IBM Cognos 10 Planning Financial Performance Management Solution

University Finance IBM Cognos 10 Planning Financial Performance Management Solution University Finance IBM Cognos 10 Planning Financial Performance Management Solution User Guide CONTENTS 1 Introduction... 3 What is Cognos?... 3 Why Cognos?... 3 Benefits of Cognos... 3 2 Logging into

More information

UMBC CMSC 461 Database Management Systems. Course Project

UMBC CMSC 461 Database Management Systems. Course Project UMBC CMSC 461 Spring 2018 Database Management Systems Purpose Course Project To analyze the requirements, design, implement, document and test a database application for Book Fetch, Inc. The User Requirements

More information

Analytic functions allow the rows in a result set to 'peek' at each other, avoiding the need for joining duplicated data sources.

Analytic functions allow the rows in a result set to 'peek' at each other, avoiding the need for joining duplicated data sources. Standard SQL functionality focuses on rows. When you want to explore the relationship between rows, those rows would have to come from different sources, even if it was the same table with a different

More information

=LEFT(B1,SEARCH("-",B1)-1)

=LEFT(B1,SEARCH(-,B1)-1) Payroll Project 1. Payroll solutions payroll solution relates to the payroll computations of employees of a given organization. Every organization has its some rules to compute pay for its employees under

More information

Autologue User s Manual Month End Processing. Table Of Contents

Autologue User s Manual Month End Processing. Table Of Contents Autologue User s Manual Month End Processing Page i Table Of Contents 13. Introduction Month End Processing... 1 13.1 Month End Closing Summarized... 1 13.1.1 Month End Processing... 1 13.1.2 Additional

More information

RIT. Oracle Manager Self-Service Manual Revised 05/10/17. Contents

RIT. Oracle Manager Self-Service Manual Revised 05/10/17. Contents RIT Oracle Manager Self-Service Manual Revised 05/10/17 Contents How to Access Oracle... 2 How to Access Your Oracle Home Page:... 2 From an On-Campus Location... 2 From an Off-Campus Location... 2 How

More information

TL 9000 Quality Management System. Measurements Handbook. BRR Examples

TL 9000 Quality Management System. Measurements Handbook. BRR Examples Quality Excellence for Suppliers of Telecommunications Forum (QuEST Forum) TL 9000 Quality Management System Measurements Handbook Copyright 2012 QuEST Forum Version 1.0 7.2 7.2.1 Basic Calculation Example

More information

Employee and Manager Self Service. UHR Employee Development

Employee and Manager Self Service. UHR Employee Development Employee and Manager Self Service UHR Employee Development Created May 23, 2014 Table of Contents Employee and Manager Self Service... 1 UVA Manager Self-Service... 1 Managing Timecards... 1 Approving

More information

ExpressMaintenance Release Notes

ExpressMaintenance Release Notes ExpressMaintenance Release Notes ExpressMaintenance Release 9 introduces a wealth exciting features. It includes many enhancements to the overall interface as well as powerful new features and options

More information

B u s and Bus4590

B u s and Bus4590 S c hool of Business Systems B u s 4 580 and Bus4590 O R AC LE DBA 1 & 2 Y u Ting Hu (Iv y ) ( 1 2 2 3 7 0 4 3 ) M a s t e r of Business System S e m e s t e r 1, 2002 S u pervisor: Dr. David Taniar Acknowledgement

More information

Live Chat at BGE Enabling real-time 2-way customer communication. Gabriel Nuñez Senior echannel Program Manager Customer Projects & System Support

Live Chat at BGE Enabling real-time 2-way customer communication. Gabriel Nuñez Senior echannel Program Manager Customer Projects & System Support Live Chat at BGE Enabling real-time 2-way customer communication Gabriel Nuñez Senior echannel Program Manager Customer Projects & System Support 1 BGE Live Chat Overview The BGE Live Chat began on Wednesday,

More information

The Expenses Supervisor page is available to any user with a FASIS Administration login.

The Expenses Supervisor page is available to any user with a FASIS Administration login. ASSIGNING AN EMPLOYEE S PRIMARY EXPENSES SUPERVISOR FASIS Administration Summary The Expenses Supervisor page is used to designate the primary individual who approves expense reports for an employee. More

More information

COURSE LISTING. Courses Listed. with Business Intelligence (BI) Crystal Reports. 26 December 2017 (18:02 GMT)

COURSE LISTING. Courses Listed. with Business Intelligence (BI) Crystal Reports. 26 December 2017 (18:02 GMT) with Business Intelligence (BI) Crystal Reports Courses Listed BOC345 - SAP Crystal Reports 2011: Optimizing Report Data Processing BOC320 - SAP Crystal Reports: - BOCE10 - SAP Crystal Reports for Enterprise:

More information

Job Assignment Default Labor Change Process Guidelines For Originators

Job Assignment Default Labor Change Process Guidelines For Originators Business Purpose Job Assignment Default Labor Change Process Guidelines For Originators The purpose of this process is to initiate, via UAOnline, a change to default labor distribution charges for employees

More information

Department of Transportation Rapid City Region Office 2300 Eglin Street P.O. Box 1970 Rapid City, SD Phone: 605/ FAX: 605/

Department of Transportation Rapid City Region Office 2300 Eglin Street P.O. Box 1970 Rapid City, SD Phone: 605/ FAX: 605/ Connecting South Dakota and the Nation Department of Transportation Rapid City Region Office 2300 Eglin Street P.O. Box 1970 Rapid City, SD 57709-1970 Phone: 605/394-2244 FAX: 605/394-1904 July 9, 2014

More information

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 27/March 31, Exercise 5: SQL II

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 27/March 31, Exercise 5: SQL II Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Last update:

More information

CSE 344 APRIL 2 ND GROUPING/AGGREGATION

CSE 344 APRIL 2 ND GROUPING/AGGREGATION CSE 344 APRIL 2 ND GROUPING/AGGREGATION ADMINISTRIVIA HW1 Due Wednesday (11:30) Don t forget to git add and tag your assignment Check on gitlab after submitting OQ1 Due Friday (11:00) A few of you still

More information

Incrementally Loading Exalytics using Notepad

Incrementally Loading Exalytics using Notepad Oracle Business Intelligence 11g Antony Heljula April 2013 Peak Indicators Limited 2 Why Notepad? The current method of reloading Exalytics: Peak Indicators Limited 3 #1 Did you know? Using the NQCMD command-line

More information

Lo siento, no hablo español :-(

Lo siento, no hablo español :-( Lo siento, no hablo español :-( Connor McDonald 1 3 4 2 Typical speaker slide blog connor-mcdonald.com youtube tinyurl.com/connor-tube twitter @connor_mc_d https://asktom.oracle.com 6 3 https://asktom.oracle.com/officehours7

More information

July Copyright 2018 NetSuite Inc.

July Copyright 2018 NetSuite Inc. 1 NetSuite SuiteAnalytics User Sample Test July 2018 2 Contents About this Sample Test... 3 Reports and Searches... 4 I. Given a use case, identify the best way to aggregate data results.... 4 II. Identify

More information

SQL> exec sample_font

SQL> exec sample_font NOTE itty bitty fonts in this presentation SQL> exec sample_font Can you read this? 1 2 Connor McDonald OracleDBA co.uk 3 4 5 about me same old crap about years of experience flog the book hook up a consulting

More information

Oracle BI 12c: Create Analyses and Dashboards Ed 1

Oracle BI 12c: Create Analyses and Dashboards Ed 1 Oracle BI 12c: Create Analyses and Dashboards Ed 1 Duration: 5 Days What you will learn This Oracle BI 12c: Create Analyses and Dashboards course for Release 12.2.1 provides step-by-step instructions for

More information

Manager Self-Service Training Guide Created on 5/3/ :14:00 AM

Manager Self-Service Training Guide Created on 5/3/ :14:00 AM Created on 5/3/2016 11:14:00 AM Table of Contents Finance/HR... 1 Employee and Manager Self Service... 1 UVA Manager Self-Service... 1 Managing Timecards... 1 Approving Timecards... 1 Rejecting Timecards...

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 1 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any

More information

Local 2110 Instructions for Web Time Entry

Local 2110 Instructions for Web Time Entry Local 2110 Instructions for Web Time Entry Access MyTC Portal 1. Go to MyTC portal https://my.tc.columbia.edu/ 2. Enter UNI & Password Access Online Time Sheet 1. After accessing MyTC select the TC Services

More information

Time Clock Time Clock

Time Clock Time Clock The Last option on the Times/Commissions menu is the Time Clock button. The Time Clock feature allows you to track employees hours. Employees clock in and out, and the system tracks their hours. Employees

More information

Invoice API. ICS Integrated Customer Services. Software specification. Final updated for Release 3. Accident Compensation Commission

Invoice API. ICS Integrated Customer Services. Software specification. Final updated for Release 3. Accident Compensation Commission Accident Compensation Commission ICS Integrated Customer Services Invoice API Software specification Version 22, 11 Jun 2018 Final updated for Release 3 Invoice API Key changes since version 1.0 published

More information

GUIDED PRACTICE: SPREADSHEET FORMATTING

GUIDED PRACTICE: SPREADSHEET FORMATTING Guided Practice: Spreadsheet Formatting Student Activity Student Name: Period: GUIDED PRACTICE: SPREADSHEET FORMATTING Directions: In this exercise, you will follow along with your teacher to enter and

More information

Relational Database design. Slides By: Shree Jaswal

Relational Database design. Slides By: Shree Jaswal Relational Database design Slides By: Shree Jaswal Topics: Design guidelines for relational schema, Functional Dependencies, Definition of Normal Forms- 1NF, 2NF, 3NF, BCNF, Converting Relational Schema

More information

Nested SQL Dr. Zhen Jiang

Nested SQL Dr. Zhen Jiang Nested SQL Dr. Zhen Jiang Sometimes we need the result of one query prior to the querying of another.consider the following: List the name and age of all employees who are younger than the average age

More information

May 21, 2014 Walter E. Washington Convention Center Washington, DC USA. Copyright 2014, Oracle and/or its affiliates. All rights reserved.

May 21, 2014 Walter E. Washington Convention Center Washington, DC USA. Copyright 2014, Oracle and/or its affiliates. All rights reserved. May 21, 2014 Walter E. Washington Convention Center Washington, DC USA 1 Using Location Analysis in Large Scale Operational Systems Siva Ravada Senior Director of Development Spatial and Graph & MapViewer

More information

Oracle BI 12c: Create Analyses and Dashboards Ed 1

Oracle BI 12c: Create Analyses and Dashboards Ed 1 Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle BI 12c: Create Analyses and Dashboards Ed 1 Duration: 5 Days What you will learn This Oracle BI 12c: Create Analyses and

More information

Finch Drinking Water System O. Reg 170/03 Schedule 22 - Summary Report for Municipalities

Finch Drinking Water System O. Reg 170/03 Schedule 22 - Summary Report for Municipalities Finch Drinking Water System O. Reg 170/03 Schedule 22 - Summary Report for Municipalities This report is a summary of water quality information for Finch s Drinking Water System, published in accordance

More information

Level 3 Develop software using SQL (Structured Query Language) ( )

Level 3 Develop software using SQL (Structured Query Language) ( ) Level 3 Develop software using SQL (Structured Query Language) (7540-360) Systems and Principles Assignment guide for Candidates Assignment A www.cityandguilds.com September 2017 Version 1.0 About City

More information

Level 3 Develop software using SQL (Structured Query Language) ( / )

Level 3 Develop software using SQL (Structured Query Language) ( / ) Level 3 Develop software using SQL (Structured Query Language) (7540-389/7630-329) Systems and Principles Assignment guide for Candidates Assignment A www.cityandguilds.com September 2017 Version 2.0 About

More information

The Human Resources Information System DATA WAREHOUSE

The Human Resources Information System DATA WAREHOUSE The Human Resources Information System DATA WAREHOUSE September 2010 First Edition: 1999 Second Edition: October, 2004 Third Edition: March 2007 Current Edition: September, 2010 Oregon State University,

More information

Automate! Lessons Learned to Improve Invoice Match to PO Process

Automate! Lessons Learned to Improve Invoice Match to PO Process Automate! Lessons Learned to Improve Invoice Match to PO Process Linda Flood and Andrea Buckman Humana, Inc. The invoice match to PO process within Oracle can be cumbersome and frustrating for Accounts

More information

Training Guide: Manage Costing for a Person

Training Guide: Manage Costing for a Person Contents Section I: Understanding the Payroll Costing Process... 2 Introduction... 2 Application of Costing during Payroll Runs... 2 Important Guidelines for the Costing Process... 3 Section II: Accessing

More information

Performance tuning using SQL new features. By Riyaj Shamsudeen

Performance tuning using SQL new features. By Riyaj Shamsudeen Performance tuning using SQL new features By Riyaj Shamsudeen Who am I? 15 years using Oracle products Over 14 years as Oracle DBA Certified DBA versions 7.0,7.3,8,8i &9i Specializes in performance tuning,

More information

HR 8.9 Training DISTRIBUTIONS & REDISTRIBUTIONS P A R T I C I P A N T G U I D E

HR 8.9 Training DISTRIBUTIONS & REDISTRIBUTIONS P A R T I C I P A N T G U I D E HR 8.9 Training DISTRIBUTIONS & REDISTRIBUTIONS P A R T I C I P A N T G U I D E F E B R U A R Y 2010 Distributions & Redistributions Welcome to the Distributions & Redistributions training module! This

More information

Human Capital Management: Step-by-Step Guide

Human Capital Management: Step-by-Step Guide Human Capital Management: Step-by-Step Guide Working with Contracts Hire, Rehire and Reappointment Faculty at the university are primarily paid using contract pay. Graduate students associated with teaching

More information

CONDITIONAL LOGIC IN THE DATA STEP

CONDITIONAL LOGIC IN THE DATA STEP CONDITIONAL LOGIC IN THE DATA STEP Conditional Logic When processing data records, in many instances, the result to be obtained for the record depends on values of variable(s) within the record. Example:

More information

Oracle Planning and Budgeting Cloud

Oracle Planning and Budgeting Cloud Oracle Planning and Budgeting Cloud September Update (16.09) Release Content Document August 2016 TABLE OF CONTENTS REVISION HISTORY... 3 PLANNING AND BUDGETING CLOUD, SEPTEMBER UPDATE... 4 ANNOUNCEMENTS

More information

Oracle Database 12c Release 2 and 18c New Indexing Features

Oracle Database 12c Release 2 and 18c New Indexing Features Oracle Database 12c Release 2 and 18c New Indexing Features Richard Foote Consulting RICHARD FOOTE CONSULTING 1 Richard Foote richardfoote Working in IT for 30+ years, 20+ years with Oracle Database 19

More information

Workforce Manager Time Sheet Approval Manual

Workforce Manager Time Sheet Approval Manual Workforce Manager Time Sheet Approval Manual Introduction This Manual provides step-by-step instructions for managers and Time Sheet approvers to access, manage, and approve employee Time Sheets in the

More information

AFFORDABLE CARE ACT SOLUTIONS. powered by

AFFORDABLE CARE ACT SOLUTIONS. powered by AFFORDABLE CARE ACT SOLUTIONS powered by Are you ready for the Affordable Care Act? The Affordable Care Act (ACA) employer mandate requires large employers to provide affordable, minimum health coverage

More information

Labor Manpower Requirement System In Hierarchical Tables. Deborah M. White. Northrop Corporation ventura Division

Labor Manpower Requirement System In Hierarchical Tables. Deborah M. White. Northrop Corporation ventura Division Labor Manpower Requirement System In Hierarchical Tables Deborah M. White Northrop Corporation ventura Division P.O. Box 2500 1515 Rancho Conejo Blvd Newbury Park, CA 91320 (805) 373-2114 Abstract The

More information

Subqueries. Lecture 9. Robb T. Koether. Hampden-Sydney College. Fri, Feb 2, 2018

Subqueries. Lecture 9. Robb T. Koether. Hampden-Sydney College. Fri, Feb 2, 2018 Subqueries Lecture 9 Robb T. Koether Hampden-Sydney College Fri, Feb 2, 2018 Robb T. Koether (Hampden-Sydney College) Subqueries Fri, Feb 2, 2018 1 / 17 1 Subqueries 2 The IN Operator 3 Using IN and NOT

More information

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education www.xtremepapers.com UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS International General Certificate of Secondary Education *815678959* COMPUTER STUDIES 040/11 Paper 1 October/November 010 hours 30

More information

Business Intelligence and Data Analysis Workshop. Contents are subject to change. For the latest updates visit

Business Intelligence and Data Analysis Workshop. Contents are subject to change. For the latest updates visit Business Intelligence and Data Analysis Workshop Page 1 of 8 Why Attend In this day and age it is no surprise for corporate staff to be overwhelmed by the abundance of unstructured data. ERPs and databases

More information

Job Data Activity Report HRB310

Job Data Activity Report HRB310 Job Data Activity Report HRB310 Overview Purpose This report shows changes keyed on the Job Data pages during a time period defined by the customer (maximum of 18 rolling months) including information

More information

Human Resource Management System User Guide

Human Resource Management System User Guide 9.0 Human Resource Management System User Guide Unit 0: Introduction Unit 1: HRMS Basics Unit 2: DateTracking Unit 3: Hiring a New Employee Unit 4: Electronic Approvals Unit 5: Maintaining Existing Employees

More information

MSITA: Excel Test #1

MSITA: Excel Test #1 MSITA: Excel Test #1 Part I: Identify the following as either a label (L), value (V), or formula (F) 1. Tom Smith 6. 236-87-2768 2. Add A1 and C1 7. 65 3. 704-555-5555 8. Hourly Rate times Hours Worked

More information

Salary Planning Procedures User Guide

Salary Planning Procedures User Guide User Guide Faculty and Staff 2012 Human Resources Information Systems 2012 Introduction 2012 Manual The Salary Planning process allows the Schools and Administrative Units to enter data directly into HRIS:

More information