CH-15 SIMPLE QUERY AND GROUPING
|
|
- Maximillian Benson
- 5 years ago
- Views:
Transcription
1 SQL SELECT STATEMENT. ASHOK GARG CH-15 SIMPLE QUERY AND GROUPING The SELECT statement is used to retrieve information from a table. Syntax: SELECT <column-list> FROM <table-name> [WHERE <condition>] [GROUP BY <column-name(s)>] [HAVING <condition>] [ORDER BY <expression>] [ ] optional < > must A table can have all the clause or few clauses, but the order of evolution will remain the same as described in the syntax. 1. Show the detail of EMP table. SQL> SELECT * FROM EMP; EMPNO JOB MGR HIREDATE SAL COMM DEPTNO SMITH CLERK DEC ALLEN SALESMAN FEB WARD SALESMAN FEB JONES MANAGER APR MARTIN SALESMAN SEP BLAKE MANAGER MAY CLARK MANAGER JUN SCOTT ANALYST APR KING PRESIDENT 17-NOV TURNER SALESMAN SEP ADAMS CLERK MAY JAMES CLERK DEC FORD ANALYST DEC MILLER CLERK JAN rows selected. 2. Show the employee no and name. SQL> SELECT EMPNO, FROM EMP; EMPNO
2 7369 SMITH 7499 ALLEN 7521 WARD 7566 JONES 7654 MARTIN 7698 BLAKE 7782 CLARK 7788 SCOTT 7839 KING 7844 TURNER 7876 ADAMS 7900 JAMES 7902 FORD 7934 MILLER 14 rows selected. 3. Show employee no, dept no and salary. SQL> SELECT EMPNO, DEPTNO, SAL FROM EMP; EMPNO DEPTNO SAL rows selected. Above command shows that order of column is not important. NOTE: We can give the entire command in one line or in separate lines, or one word per line. WHERE clause: The WHERE clause is used along with SELECT statement to specify the condition, based on which the rows will be extracted from a table with SELECT. When a WHERE clause is present, the database program goes through the entire table one row at a time and examines each row to determine if the condition is true with the row. 2
3 Operators used to specify the conditions: Relational Operators = Equal to > Greater than < Less than >= Greater than or equal to <= Less than or equal to <>,!=, ^= Not equal to Special Operators AND OR NOT Logical Operators Logical AND Logical OR Logical NOT IN BETWEEN LIKE Checking a value in a set Checking a value with in a range. Both the values included in the range. Matching a pattern from a column % One or more or no character _ One and only one character EXAMPLES: 13. Show the details of employees belonging to the department 10. SQL>SELECT * FROM EMP WHERE DEPTNO=10; EMPNO JOB MGR HIREDATE SAL COMM DEPTNO CLARK MANAGER JUN KING PRESIDENT 17-NOV MILLER CLERK JAN List the name and salary of the employees whose salary is more than SQL> SELECT, SAL FROM EMP WHERE SAL>2900; SAL JONES 4284 CLARK 3528 SCOTT 4320 KING 7200 FORD List the employee no and name of Managers. SQL> SELECT EMPNO, FROM EMP WHERE JOB='MANAGER'; 3
4 EMPNO JONES 7698 BLAKE 7782 CLARK 16. List the name of clerks working in department no 30. SQL> SELECT FROM EMP WHERE JOB='CLERK' AND DEPTNO=30; JAMES 17. List the name of clerks and managers. SQL> SELECT FROM EMP WHERE JOB='CLERK' OR JOB='MANAGER'; SMITH JONES BLAKE CLARK ADAMS JAMES MILLER 7 rows selected. 18. List the name of the employees who are not SALESMAN. SQL> SELECT FROM EMP WHERE JOB<>'SALESMAN'; SMITH JONES BLAKE CLARK SCOTT KING ADAMS JAMES FORD MILLER 10 rows selected. 4
5 19. List the details of the employees who joined before the end of October 81. SQL> SELECT * FROM EMP WHERE HIREDATE<'31-OCT-81'; EMPNO JOB MGR HIREDATE SAL COMM DEPTNO SMITH CLERK DEC ALLEN SALESMAN FEB WARD SALESMAN FEB JONES MANAGER APR MARTIN SALESMAN SEP BLAKE MANAGER MAY CLARK MANAGER JUN TURNER SALESMAN SEP Note: The special operator IN and BETWEEN can be used in place of complex relational logical operator. 8. List the employee name whose employee numbers are 7521, 7369, 7839,7934 SQL> SELECT FROM EMP WHERE EMPNO=7521 OR EMPNO=7369 OR EMPNO=7839 OR EMPNO=7934; The above query can be written using the IN operator as follows. SQL> SELECT FROM EMP WHERE EMPNO IN(7521, 7369, 7839,7934); MILLER KING SMITH WARD 9. List the employee details not belonging to department 10, 30 and 40 SQL> SELECT * FROM EMP WHERE DEPTNO NOT IN(10,30,40); EMPNO JOB MGR HIREDATE SAL COMM DEPTNO SMITH CLERK DEC JONES MANAGER APR SCOTT ANALYST APR ADAMS CLERK MAY FORD ANALYST DEC BETWEEN operator is used to specify a range of values. 10 List the employee name and salary, whose salary is between 2000 and SQL> SELECT, SAL FROM EMP WHERE SAL BETWEEN 2000 AND 3000; SAL
6 BLAKE 2850 DISTINCT Clause DISTINCT clause is used to remove duplicate values from a column. List the different jobs available in EMP table. SQL> SELECT DISTINCT JOB FROM EMP; JOB ANALYST CLERK MANAGER PRESIDENT SALESMAN NULL values: NULL values are not a 0 or a blank. It is an unknown or inapplicable value. It can not be compared using the relational or logical operators. The special operator IS is used with the keyword NULL to locate NULL values. 1. List the employee names who are not eligible for commission. SQL> SELECT FROM EMP WHERE COMM IS NULL; SMITH JONES BLAKE CLARK SCOTT KING ADAMS JAMES FORD MILLER 2. List the name and designation of the employee who is not reporting to any one. SQL> SELECT, JOB FROM EMP WHERE MGR IS NULL; JOB
7 KING PRESIDENT 3. List the employees who are eligible for commission. SQL> SELECT FROM EMP WHERE COMM IS NOT NULL; ALLEN WARD MARTIN TURNER 4. List the detail of the employees whose salary is more than 2500 and commission is NULL. SQL> SELECT * FROM EMP WHERE SAL>2500 AND COMM IS NULL; EMPNO JOB MGR HIREDATE SAL COMM DEPTNO JONES MANAGER APR BLAKE MANAGER MAY CLARK MANAGER JUN SCOTT ANALYST APR KING PRESIDENT 17-NOV FORD ANALYST DEC LIKE Operator: The LIKE operator is used with CHAR and VARCHAR2 to match a pattern. % represent a sequence of zero or more characters and _ represents a single character. 1. List the employees whose names start with an S. SQL> SELECT FROM EMP WHERE LIKE 'S%'; SMITH SCOTT 2. List the employee names whose name ends with S. SQL> SELECT FROM EMP WHERE LIKE '%S'; JONES ADAMS JAMES 7
8 3. List the employee names whose names have exactly 4 characters. SQL> SELECT FROM EMP WHERE LIKE ' '; WARD KING FORD 4. List the employee names having I as the second character. SQL> SELECT FROM EMP WHERE LIKE '_I%'; KING MILLER 5. List the employee names who have either LL or TT in their names. SQL> SELECT FROM EMP WHERE LIKE '%LL%' OR LIKE '%TT%'; ALLEN SCOTT MILLER ARITHMETIC COMPUTATIONS WITH COLUMNS: Arithmetic computation can be done on numeric columns. Alias names can be given to column or expressions on query outputs. They are displayed in place of column names. Alias names are given to the right of a column name, enclosed with in double quotes. List the name, salary and PF (10% of salary) of all the employees. SQL> SELECT, SAL, SAL*10/100 "PF" FROM EMP; SAL PF SMITH ALLEN WARD JONES MARTIN BLAKE CLARK
9 SCOTT KING TURNER ADAMS JAMES FORD MILLER ORDER BY: ASHOK GARG The ORDER BY clause sorts the query output according to the values in one or more selected columns. Multiple columns are ordered one within another, and the user can specify whether to order them in ascending or descending order. Ascending is by default. In place of column names we can use numbers to indicate the fields being used to order the output. These numbers will refer their order in the output. SELECT [DISTINCT]<column-list> <expr> FROM <table>[,<table>][where condition] [ORDER BY <columns>][asc DESC] List the employee name and hiredate in descending order of hiredate. SQL> SELECT, HIREDATE FROM EMP ORDER BY HIREDATE DESC; HIREDATE ADAMS 23-MAY-87 SCOTT 19-APR-87 MILLER 23-JAN-82 JAMES 03-DEC-81 FORD 03-DEC-81 KING 17-NOV-81 MARTIN 28-SEP-81 TURNER 08-SEP-81 CLARK 09-JUN-81 BLAKE 01-MAY-81 JONES 02-APR-81 WARD 22-FEB-81 ALLEN 20-FEB-81 SMITH 17-DEC-80 List the empno, ename and sal in ascending order of salary. SQL> SELECT EMPNO,, SAL FROM EMP ORDER BY SAL; EMPNO SAL JAMES SMITH WARD
10 7654 MARTIN TURNER ADAMS ALLEN MILLER BLAKE CLARK JONES SCOTT FORD KING 7200 ASHOK GARG List the employee no, salary, job and department no in the ascending order of department no and descending order of salary. SQL> SELECT EMPNO, DEPTNO, JOB, SAL FROM EMP ORDER BY DEPTNO, SAL DESC; EMPNO DEPTNO JOB SAL PRESIDENT MANAGER CLERK ANALYST ANALYST MANAGER CLERK CLERK MANAGER SALESMAN SALESMAN SALESMAN SALESMAN CLERK 950 List the employee number, name and salary in the descending order of salary. SQL> SELECT EMPNO,, SAL FROM EMP ORDER BY 3 DESC; EMPNO SAL KING SCOTT FORD JONES CLARK BLAKE MILLER ALLEN ADAMS TURNER
11 7521 WARD MARTIN SMITH JAMES 950 ASHOK GARG List the employee number, name and PF(10% salary) in the descending order of PF. SQL> SELECT EMPNO,, SAL*10/100 "PF" FROM EMP ORDER BY 3 DESC; EMPNO PF KING SCOTT FORD JONES CLARK BLAKE MILLER ALLEN ADAMS TURNER WARD MARTIN SMITH JAMES 95 AGGREGATE FUNCTIONS: The aggregate functions produces a single value for an entire group or table. They are used to produce summarized results. They operate on sets of rows. They return results based on group of rows. By default all rows in a table are treated as one group. The GROUP BY clause of the SELECT statement is used to divide rows into smaller groups. COUNT determines the number of rows or non NULL column values. If * is passed, then the total number of rows is returned. When column name is specified, the NULL values will be ignored. Syntax: COUNT(* [Distinct] ALL Column name) 1. How many persons are working in the company. (EMP table) SQL> SELECT COUNT(*) "NO OF EMPLOYEE" FROM EMP; NO OF EMPLOYEE List the no of jobs available in the company. 11
12 SQL> SELECT COUNT(DISTINCT JOB) "NO OF JOBS" FROM EMP; NO OF JOBS 5 3. List the no of clerks in the company. SQL> SELECT COUNT(*) FROM EMP WHERE JOB='CLERK'; COUNT(*) SUM determines the sum of all selected columns. Syntx: SUM([Distinct ALL ] Column name) Show the total salary payable in department no 20. SQL> SELECT SUM(SAL) "TOTAL SALARY" FROM EMP WHERE DEPTNO=20; TOTAL SALARY MAX determines the largest of all selected values of a column Syntx: MAX(Column name) List the maximum salary payable among Salesmans. SQL> SELECT MAX(SAL) "MAXIMUM SALARY" FROM EMP WHERE DEPTNO=20; MAXIMUM SALARY MIN determines the smallest of all selected values of a column. Syntax: 12
13 MIN(Column name) List the minimum salary payable among dept 30. SQL> SELECT MIN(SAL) FROM EMP WHERE DEPTNO=30; MIN(SAL) AVG determines the average of all select values of a column. Syntax: AVG([Distinct ALL ] Column name) list the average salary in the company. SQL> SELECT AVG(SAL) FROM EMP; AVG(SAL) GROUP BY: The GROUP BY clause is used to divide the rows in a table into smaller groups. The GROUP BY clause is used with SELECT to combine a group of rows based on the values of a particular column or expression. Aggregate functions are used to return summary information for each group. A group of rows within another group is called Nested group. Up to 10 level of nesting is supported in a GROUP by expression. 1. List the department no and number of employees in the company. SQL> SELECT DEPTNO, COUNT(*) "NO OF EMPLOYEES" FROM EMP GROUP BY DEPTNO; DEPTNO NO OF EMPLOYEES List the Job and total salary payable in each job. SQL> SELECT JOB, SUM(SAL) "TOTAL SALARY" FROM EMP GROUP BY JOB; JOB TOTAL SALARY 13
14 ANALYST 8640 CLERK 5558 MANAGER PRESIDENT 7200 SALESMAN List the average salary for each job excluding managers. SQL> SELECT JOB, AVG(SAL) FROM EMP WHERE JOB!='MANAGER' GROUP BY JOB; JOB AVG(SAL) ANALYST 4320 CLERK PRESIDENT 7200 SALESMAN List the total salary for each job within the department. SQL> SELECT DEPTNO, JOB, SUM(SAL) FROM EMP GROUP BY DEPTNO, JOB; DEPTNO JOB SUM(SAL) CLERK MANAGER PRESIDENT ANALYST CLERK MANAGER CLERK MANAGER SALESMAN 5600 HAVING Clause: HAVING Clause is used to specify which groups are to be displayed, that is, restrict the groups that you return on the basis of aggregate functions. 1. List average salary of all the departments employing more than 5 persons. SQL> SELECT DEPTNO, AVG(SAL) FROM EMP GROUP BY DEPTNO HAVING COUNT(*)>5; DEPTNO AVG(SAL) List job of all the employees where minimum salary is less than
15 SQL> SELECT JOB, MIN(SAL) FROM EMP GROUP BY JOB HAVING MIN(SAL)<1000; JOB MIN(SAL) CLERK 950 List the total salary, maximum salary, minimum salary, average salary, no of persons job wise for department no 20 only and display only those rows having average salary greater than 1000 and order the result in the descending order of total salary. SQL> SELECT JOB, SUM(SAL) "TOTAL SALARY", MAX(SAL) "MAXIMUM SALARY", MIN(SAL) "MINIMUM SALARY", COUNT(*) "NO OF EMPLOYEES", AVG(SAL) "AVERAGE SALARY" FROM EMP WHERE DEPTNO=20 GROUP BY JOB HAVING AVG(SAL)>1000 ORDER BY SUM(SAL); JOB TOTAL SALARY MAXIMUM SALARY MINIMUM SALARY NO OF EMPLOYEES AVERAGE SALARY CLERK MANAGER ANALYST
RDBMS Using Oracle. Lecture week 5. Lecture Overview
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
More informationABSTRACT 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 informationSpool 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 informationRelational 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 information5/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 informationSemester 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 informationSQL 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 informationAnalytic 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 informationPATANJALI 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 informationnuijten.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 informationSQL. 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 informationSQL 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 informationa 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 informationCS 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 informationSpool 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 informationallapex 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 informationColumn 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 informationDefine 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 informationa 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 informationOracle 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 information2/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 informationOracle 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 informationGrupne 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 informationSQL 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 informationLECTURE9-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 informationAnalytic 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 informationAnthony 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 informationOLAP Technologies and Applications
OLAP Technologies and Applications James Waite SAS Training Specialist Objectives Define Business Intelligence Identify role of OLAP in the BI Platform Discuss cube structure Demo SAS OLAP Applications
More informationLecture9: 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 informationUsing 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 informationCOURSE 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 informationTL 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 informationCP 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 informationDatabase 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 informationHOLIDAYS 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 informationThe Power and Simplicity of the TABULATE Procedure Dan Bruns, Tennessee Valley Authority, Chattanooga, TN
Paper 188-27 The Power and Simplicity of the TABULATE Procedure Dan Bruns, Tennessee Valley Authority, Chattanooga, TN ABSTRACT When I first started using SAS in a university environment in 1972, I was
More informationIntroduction 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 informationData Analysis and Reporting Techniques Using Excel. Contents are subject to change. For the latest updates visit
Data Analysis and Reporting Techniques Using Excel Page 1 of 8 Why Attend It is a fact, Excel is the accountant's, finance and business professional's best friend! You and I know how overwhelmed we are
More informationAdministration Division Public Works Department Anchorage: Performance. Value. Results.
Administration Division Anchorage: Performance. Value. Results. Mission Provide administrative, budgetary, fiscal, and personnel support to ensure departmental compliance with Municipal policies and procedures,
More informationBusiness 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 informationWoking. q business confidence report
Woking q1 business confidence report Woking q1 report headlines saw a new record in company registrations in Woking when compared to any previous. was a record quarter for company registrations in Woking
More informationReading Plans in the cloud or not Revised November 2017
Reading Plans in the cloud or not Revised November 2017 This free training webinar is a lesson from the Hotsos Optimizing Oracle SQL, Intensive (OPINT) course. Please visit our website for more information.
More informationUniversity 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 informationData Warehousing and Data Mining SQL Window Functions
Data Warehousing and Data Mining SQL Window Functions SQL analytic/window functions Ranking Moving Window Cumulative aggregates Densification Acknowledgements: I am indebted to M. Böhlen for providing
More informationFinch 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 informationAFFORDABLE 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 informationCSE 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 informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending February 15, 2019 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action:
More informationService Level Agreement Policy. Table of Contents
Table of Contents Service Level Agreement... 3 Definition of What a Service Level Agreement is... 3 Sample Service Level Agreement... 4 Assumptions... 4 Service Stakeholders... 5 Service Scope... 5 IT
More information2017 KEY INSIGHTS ON. Employee Attendance and Tardiness
2017 KEY INSIGHTS ON Employee Attendance and Tardiness THE AVERAGE NUMBER OF MINUTES THAT EMPLOYEES IN THE XIMBLE SYSTEM ARE LATE IS MINUTES. 114.2 MINUTES Statistical sample of 263258 clock-in records,
More informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending August 3, 2018 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action: The
More informationTraining 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 informationApproach to Successful S&OP October 20, 2010
The 8-4-3-1 Approach to Successful S&OP Design and Implementation John E. Boyer, Jr. J. E. Boyer Company, Inc. www.jeboyer.com jeb@jeboyer.com (801) 721-5284 1 Objectives 8 - S&OP Process Steps 4 - Keys
More informationSo You Think You Can Combine Data Sets? Christopher Bost
So You Think You Can Combine Data Sets? Christopher Bost What s in it for you? The syntax to combine data sets is simple The actual combination is more complex Learn ways to check data sets before combining
More informationAxiom Multi-Year Salary Planning Fall 2017 Training
Axiom Multi-Year Salary Planning Fall 2017 Training Agenda Introductions Overview of process changes & annual planning timeline New position management guidelines Axiom Multi-Year Salary Planning functionality
More informationPerformance 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 informationLabor 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 informationLo 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 informationNational Capital Region Congestion Report
Item #6 TPB Technical Committee May 2, 2014 NATIONAL CAPITAL REGION TRANSPORTATION PLANNING BOARD National Capital Region Congestion Report 4th Quarter 2013 (DRAFT) Metropolitan Washington Council of Governments
More information18 Ranking Data within Reports
18 Ranking Data within Reports This session describes ranking data in a Web Intelligence report. Ranking allows you to isolate the top and bottom records in a data set based on a variety of criteria. For
More informationCorn and Soybean Market Update, August 9, 2017
Corn and Soybean Market Update, August 9, 2017 Aaron Smith Assistant Professor Department of Agricultural and Resource Economics University of Tennessee Extension https://ag.tennessee.edu/arec/pages/cropeconomics.aspx
More informationThe Enterprise Project
The Enterprise Project Reporting & Analytics Environment Requirements Gathering September 2017 Requirements Collection BOT Executives Metrics Visioning Sessions, Existing Metrics & Strategic Direction
More informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending November 23, 2018 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action:
More informationIBM TRIRIGA Application Platform Version 3 Release 4.1. Reporting User Guide
IBM TRIRIGA Application Platform Version 3 Release 4.1 Reporting User Guide Note Before using this information and the product it supports, read the information in Notices on page 166. This edition applies
More informationReports in Profit Center Accounting (Revenues and Expenses) NOTE: NOTE:
Reports in Profit Center Accounting (Revenues and Expenses) The University of Mississippi 1/2012 R/3 Path Accounting > Controlling > Profit Center Accounting > Information System > Reports for Profit Center
More informationOne-Time Lookback on Hours for Casual Employees. PPS Requirements Service Request 15211
One-Time Lookback on Hours for Casual Employees PPS Requirements Service Request 15211 Final 12/7/00 Casual Employees Project Workgroup Author: Kathy Keller Table of Contents Table of Contents...i Background...
More informationPOLYDATA HR & Faculty Dashboards. August 2010
POLYDATA HR & Faculty Dashboards August 2010 1 Agenda Move to Dashboards How to Log Into Dashboards Accessing HR Dashboards Important Information Box Security Human Resources (State) Dashboards Faculty
More informationFinch 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 informationElectric Forward Market Report
Mar-01 Mar-02 Jun-02 Sep-02 Dec-02 Mar-03 Jun-03 Sep-03 Dec-03 Mar-04 Jun-04 Sep-04 Dec-04 Mar-05 May-05 Aug-05 Nov-05 Feb-06 Jun-06 Sep-06 Dec-06 Mar-07 Jun-07 Sep-07 Dec-07 Apr-08 Jun-08 Sep-08 Dec-08
More informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending April 12, 2019 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action: The
More informationNational Capital Region Congestion Report
NATIONAL CAPITAL REGION TRANSPORTATION PLANNING BOARD National Capital Region Congestion Report 2nd Quarter 2014 Metropolitan Washington Council of Governments 777 North Capitol Street, N.E., Suite 300,
More informationNEW TOOLBOX FUNCTION: TBC-001: Import Billing Items
NEW TOOLBOX FUNCTION: Document Ref: TBC-001 Date: Jan 21, 2005 Document Version: 0.1 Modules Affected: Earliest available version of COINS: Documentation Updated: Billing COINS Version 7 (software level
More informationIAF Advisors Energy Market Outlook Kyle Cooper, (713) , October 31, 2014
IAF Advisors Energy Market Outlook Kyle Cooper, (713) 722 7171, Kyle.Cooper@IAFAdvisors.com October 31, 2014 Price Action: The December contract rose 17.5 cents (4.7%) to $3.873 on a 33.3 cent range. Price
More informationUniversity of Michigan Eco-Driving Index (EDI) Latest data: August 2017
University of Michigan Eco-Driving Index () http://www.ecodrivingindex.org Latest data: August 2017 Developed and issued monthly by Michael Sivak and Brandon Schoettle Sustainable Worldwide Transportation
More informationOffender Grievance Program
Offender Grievance Program Fiscal Year 2013 Summary Report Manager Kelli Ward 10/15/13 TABLE of CONTENTS Topic Page Foreword Step 1 Grievances by Region and Issue Step 2 Grievances by Region and Issue
More informationClimate Change Impacts for the Central Coast and Hunter Regions
Climate Change Impacts for the Central Coast and Hunter Regions http://www.ozcoasts.gov.au/climate/ima ges/f1_risks.jpg Peter Smith 1 Climate change will have increasing impacts on a wide range of natural
More informationNested 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 informationHuman Resource Management System. Training Guide. Continuing Education Module
Human Resource Management System Training Guide Continuing Education Module 1 TABLE OF CONTENTS Introduction...3 Accessing the Continuing Educational Module...4 Developing a New Course Template...5 Completing
More informationThe monthly variation of the Business Turnover 1 stands at 1.6%, after seasonal and calendar adjustment
24 October 2018 Business Turnover Index (BTI). Base 2015 August 2018. Provisional data The monthly variation of the Business Turnover 1 stands at 1.6%, after seasonal and calendar adjustment The annual
More informationtackling 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 informationAITP NCC BI GIS COMPETITION: A BI CASE PERSPECTIVE
AITP NCC BI GIS COMPETITION: A BI CASE PERSPECTIVE Roger L. Hayen, Central Michigan University, roger.hayen@cmich.edu ABSTRACT A national competition problem in business intelligence (BI) is considered
More informationH igh Pe rfo rm an ce Re ve n ue Cycle o n a Sho e strin g Budge t
H igh Pe rfo rm an ce Re ve n ue Cycle o n a Sho e strin g Budge t Presented By: Michael Smith - Senior Director, Revenue Cycle Services Janet Walthew Director, PFS & Access Backgro un d From 2005 to 2008,
More informationCOURSE LISTING. Courses Listed. 12 January 2018 (08:11 GMT) SAPFIN - Overview of SAP Financials
with SAP ERP Courses Listed SAPFIN - Overview of SAP Financials AC040E - Business Processes in Management Accounting AC040 - - AC050 - - AC505 - Product Cost Planning AC520 - Cost Object Controlling for
More informationINFORMATION TECHNOLOGY LAB MS-OFFICE.
Paper Code: BB307 INFORMATION TECHNOLOGY LAB B.B.A II Year ( 3 rd Semester ) Objective : The aim of this course is to give a management students practical experience om working in typical office software
More informationNational Capital Region Congestion Report
NATIONAL CAPITAL REGION TRANSPORTATION PLANNING BOARD National Capital Region Congestion Report 4th Quarter 2014 Metropolitan Washington Council of Governments 777 North Capitol Street, N.E., Suite 300,
More informationMasters by Project (BUS4580 and BUS4590)
M O N A S H U N I V E R S I T Y A U S T R A L I A School of Business Systems PARALLEL EXECUTION IN ORACLE - Report - PETER XU ID: 12288624 EMAIL: pxu1@student.monash.edu.au PHONE: 0412310003 Semester 1,
More informationManager, Statistical Programs Tel: Tel: Fax: Fax: SHIPMENTS OF ALUMINUM FOIL
Industry Statistics Nicholas A. Adams, Jr. Henry F. Sattlethight V.P., Statistics & Business Information Manager, Statistical Programs Tel: 1-703-358-2984 Tel: 1-703-358-2985 Fax: 1-703-358-2961 Fax: 1-703-358-2961
More informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending November 17, 2017 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action:
More informationAutologue 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 informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending January 5, 2018 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action: The
More informationOracle 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 informationDemand Forecasting for Materials to Improve Production Capability Planning in BASF
Demand Forecasting for Materials to Improve Production Capability Planning in BASF Team 6 Raden Agoeng Bhimasta, Dana Tai, Daniel Viet-Cuong Trieu, Will Kuan National Tsing-Hua University About BASF BASF
More informationMunicipal Solid Waste Characteristics
CITY OF LETHBRIDGE Municipal Solid Waste Characteristics Juliane Ruck, the City of Lethbridge and Xiaomei Li, Alberta Innovates Energy and Environmental Solutions SWANA Northern Lights 2015 Conference
More informationTime 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=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 informationTraffic Department Anchorage: Performance. Value. Results.
Traffic Department Anchorage: Performance. Value. Results. Mission Promote safe and efficient area-wide transportation that meets the needs of the community and the Anchorage Municipal Traffic Code requirements.
More informationFighting the WAR on BUGs A Success Story. Duvan Luong, Ph.D. Operational Excellence Networks
Fighting the WAR on BUGs A Success Story Duvan Luong, Ph.D. Operational Excellence Networks The WAR Support Verification Investigation Design Construction Requirements High Casualties of the BUG WAR Total
More informationCity of Brampton 2018 Acting Mayor - December 2018 to November 2022 Dec Bowman (Reflective of additional Regional Councillor Appointment)
Acting Mayor Information Package The Acting Mayor position is a non-elected position within the Brampton City Council, established by Council s Procedure By-law 160-2004, as amended. The Acting Mayor basically
More informationEnergy Market Outlook
Kyle Cooper, (713) 248-3009, Kyle.Cooper@iafadvisors.com Week Ending September 21, 2018 Please contact me to review a joint RBN Energy daily publication detailing natural gas fundamentals. Price Action:
More informationYoung Professionals Award
Young Professionals Award Business Plan FIDIC YPF Steering Committee (Third Edition) March 2017 Prepared By: FIDIC YPFSC / YP Award Sub-Committee Contents 1. Background... 1 2. Purpose... 1 3. Eligibility...
More information