LECTURE9-PART2: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES AND VIEW
|
|
- Ashley Fisher
- 6 years ago
- Views:
Transcription
1 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 to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 / IS422 : Database Fundamentals
2 The Process of Database Design 2 Conceptual Design (ERD) Logical Design (Relational Model) Physical Design Create schema (DDL) Load Data (DML)
3 Tables in the Examples 3 Customer(custNo, custname, custst, custcity, age) Product(prodNo, prodname, proddes, price) Orders(ordNo, orddate, custno, prodno, quantity) Where custname, custst, custcity, prodname, proddes are strings orddate is date Others are numbers
4 Sample Data in Customer Table 4 custno custname custst custcity age 1 C1 Olaya St Jeddah 20 2 C2 Mains St Riyadh 30 3 C3 Mains Rd Riyadh 25 4 C4 Mains Rd Dammam 5 C5 Mains Rd Riyadh
5 Sample Data in Product Table 5 prodno prodname proddes price 100 P0 Food P1 healthy food P P3 self_raising flour,80%wheat P4 network 80x 300
6 Sample Data in Orders Table 6 ordno orddate custno prodno quantity 1 01-jan jan jan jan jan mar
7 Aggregate Functions 7 COUNT - returns the number of selected values SUM - returns the sum of selected (numeric) values AVG - returns the average of selected (numeric) values MIN - returns the minimum of selected values MAX - returns the maximum of selected values
8 Use of COUNT(column_name) 8 The COUNT(column_name) function returns the number of values (NULL values will not be counted) of the specified column Syntax SELECT COUNT(column_name) FROM table_name;
9 Use of COUNT(column_name) 9 Example 1: List the number of products in the product table SELECT count(prodno) FROM product; Example 2: List the number of product descriptions in the product table SELECT count(proddes) FROM product; COUNT(PRODNO) COUNT(PRODDES) Note: count(proddes) does not count rows that have NULL value for proddes.
10 Use of COUNT(*) 10 The COUNT(*) function returns the number of records in a table (NULL values will be counted) Syntax SELECT COUNT(*) FROM table_name;
11 Use of COUNT (*) 11 Example 1: How many products are there in the product table? SELECT count(*) FROM product; COUNT(*) Example 2: How many products are priced at 300? prod No prodnam e proddes price SELECT count(*) FROM product WHERE price =300; COUNT(*) P0 Food P1 healthy food P P3 self_raising flour,80%wh eat P4 network 80x 300 Note: count(*) also count rows that have NULL values
12 Use of COUNT(DISTINCT column_name) 12 The COUNT(DISTINCT column_name) function returns the number of distinct values of the specified column: Syntax SELECT COUNT(DISTINCT column_name) FROM table_name;
13 13 Use of COUNT(DISTINCT column_name) Example1: How many cities are the customers located in? SELECT count(distinct custcity) from customer; Example 2: How many customers ordered products since 01/01/2003? SELECT count(distinct custno) FROM orders WHERE orddate >= '01-jan-2003'; COUNT(DISTINCT CUSTNO) custno custnam e COUNT(DISTINCT CUSTCITY) custst custcity age 1 C1 Olaya St Jeddah 20 ordno orddate cust prodno 2 C2 Mains St Riyadh No 30 3 C3 1 Mains 01-jan-2003 Rd Riyadh jan C4 Mains Rd Dammam 3 01-jan C5 4 Mains 01-jan-2003 Rd Riyadh jan mar quanti y
14 14 Use of SUM The SUM() function returns the total sum of a numeric column. The MIN() function returns the smallest value of the selected column. The MAX() function returns the largest value of the selected column. The AVG() function returns the average value of a numeric column. SELECT SUM(column_name),MIN(column_name),MAX(column_name),AVG(column_name) FROM table_name; Syntax
15 15 Use of SUM Example Example 1: How many products pieces were ordered by customer 1? SELECT SUM(quantity) FROM orders WHERE custno =1; SUM(QUANTITY) ordno orddate cust No Example 2: How many orders were made by customer 1 and how many products pieces did he order? prodno 1 01-jan jan jan jan jan mar quantit y SELECT count(ordno), SUM(quantity) FROM orders COUNT(ORDNO) WHERE custno =1; SUM(QUANTITY)
16 16 Example Use of AVG, MIN and MAX Example: list the minimum, maximum and average price prodno prodnam proddes price of all products. e SELECT MIN(price), MAX(price), AVG(price) FROM product; 100 P0 Food P1 healthy food P P3 self_raising flour,80%wh eat Note: if some product's price are NULLs, then SUM and AVG do not take those products into consideration P4 network 80x 300 MIN(PRICE) MAX(PRICE) AVG(PRICE)
17 17
18 Advanced queries (GROUP BY) 18 General Syntax of SELECT command SELECT [DISTINCT] {* [columnexpression,. } FROM TableName [WHERE condition] [GROUP BY columnlist] [HAVING condition] [ORDER BYcolumnList] Order of the clauses cannot be changed. Only SELECT and FROM are mandatory
19 The GROUP BY Statement 19 The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns. Syntax SELECT column_name, aggregate_function(column_name) FROM table_name WHERE condition GROUP BY column_name;
20 Use of GROUP BY 20 Use GROUP BY clause to get sub-totals. SELECT and GROUP BY closely integrated: each item in SELECT list must be single-valued per group, and SELECT clause may only contain: Column names in the group by clause Aggregate functions Constants Expression involving combinations of the above If WHERE is used with GROUP BY, WHERE is applied first, then groups are formed from rows satisfying condition.
21 21 Example 1 ( use of group by ) O_Id OrderDate OrderPrice Customer Orders /11/ Nora /10/ Sara /09/ Nora /09/ Nora /08/ Yara /10/ Sara Nora Sara Yara find the total (total order) of each customer. use the GROUP BY statement to group the customers. SELECT Customer, SUM(OrderPrice) FROM Orders GROUP BY Customer;
22 22 Example 1 The result ( output ): what happens if we omit the GROUP BY statement SELECT Customer,SUM(OrderPrice) FROM Orders; The result Customer SUM(OrderPrice) Nora 2000 Sara 1700 Yara 2000 Customer SUM(OrderPrice) Nora 5700 Sara 5700 Nora 5700 Nora 5700 Yara 5700 Sara 5700
23 Example 2 23 List the quantity of each product ordered during Jan ordno orddate custno prodno quantity 1 01-jan SELECT prodno, sum(quantity) FROM orders WHERE orddate>='01-jan-2003' AND orddate<'01-feb-2003' GROUP BY prodno; 2 02-jan jan jan jan mar PRODNO SUM(QUANTITY)
24 24 Example 3 return the minimum and maximum salaries for each department in the employees table Employee No. First Name Last Name Dept Number Salary E1 Mandy Smith D E2 Daniel Hodges D E3 Shaskia Ramanthan D E4 Graham Burke D E5 Annie Nguyen D D2 D1 SELECT deptnumber, MIN(salary), MAX (salary) FROM employees GROUP BY deptnumber ORDER BY deptnumber; DEPTNUMBER MIN(SALARY) MAX(SALARY) D D
25 Example 4 Grouping Output from Queries 25 Example 1 : no grouping SELECT count(*) FROM EMPLOYEE; Employee No. First Name Last Name Dept Number Salary E1 Mandy Smith D E2 Daniel Hodges D E3 Shaskia Ramanthan D E4 Graham Burke D E5 Annie Nguyen D COUNT(*) Without group by COUNT(*) returns the number of rows in the table
26 Grouping Output from Queries 26 Example 2 : group by SELECT deptnumber, count(*) FROM EMPLOYEE GROUP BY deptnumber ORDER BY deptnumber; Employee No. First Name Last Name Dept Number Salary E1 Mandy Smith D E4 Graham Burke D E5 Annie Nguyen D E2 Daniel Hodges D E3 Shaskia Ramanthan D DEPTNUMBER COUNT(*) D1 3 D2 2
27 Use of HAVING 27 HAVING clause is designed for use with GROUP BY to restrict groups that appear in final result table. Similar to WHERE, but WHERE filters individual rows whereas HAVING filters groups. Column names in HAVING clause must also appear in the GROUP BY list or be contained within an aggregate function. SYNTAX SELECT column_name, aggregate_function(column_name) FROM table_name WHERE column_name operator value GROUP BY column_name HAVING aggregate_function(column_name) operator value ;
28 28 EXAMPLE 1 find if any of the customers have a total order of less than 2000 SELECT Customer,SUM(OrderPrice) FROM Orders GROUP BY Customer HAVING SUM(OrderPrice)<2000; O_Id OrderDate OrderPrice Customer /11/ Nora /10/ Sara /09/ Nora /09/ Nora /08/ Yara /10/ Sara CUSTOMER SUM(ORDERPRICE) SARA Without Having CUSTOMER SUM(ORDERPRICE) NORA 2000 SARA 1700 YARA 2000
29 29 Example 2 find if the customers Nora" or Yara" have a total order of more than 1500 SELECT Customer,SUM(OrderPrice) FROM Orders WHERE Customer= Nora' OR Customer= Yara' GROUP BY Customer HAVING SUM(OrderPrice)>1500 ; O_Id OrderDate OrderPrice Customer /11/ Nora /10/ Sara /09/ Nora /09/ Nora /08/ Yara /10/ Sara CUSTOMER SUM(ORDERPRICE) NORA 2000 YARA 2000
30 30 Example 3 List the product number and the quantity ordered for each product which has a total quantity of more than 2 during Jan SELECT prodno, sum(quantity) FROM orders 102 = 1 WHERE orddate>='01-jan-2003' AND orddate<'01-feb-2003' GROUP BY prodno HAVING sum(quantity)>2; ordno orddate custno prodno quantity 1 01-jan jan jan jan jan mar PRODNO SUM(QUANTITY) = 4 101=2
31 Example 4 List the department number and the total number of employee in that department for each department that has more than two employees Employee No. First Name Last Name Dept Number Salary E1 Mandy Smith D E4 Graham Burke D E5 Annie Nguyen D E2 Daniel Hodges D E3 Shaskia Ramanthan D DEPTNUMBER COUNT(*) D1 3 D2 2 SELECT deptnumber, count(*) FROM EMPLOYEE GROUP BY deptnumber HAVING count(*)>2 ORDER BY deptnumber; DEPTNUMBER COUNT(*) D1 3 31
32 32
33 33
34 Views 34 Dynamic result of one or more relational operations operating on base relations to produce another relation. Virtual relation that does not necessarily actually exist in the database but is produced upon request, at time of request. Contents of a view are defined as a query on one or more base relations. With view resolution, any operations on view are automatically translated into operations on relations from which it is derived. With view materialization, the view is stored as a temporary table, which is maintained as the underlying base tables are updated. Pearson Education 2009
35 SQL - CREATE VIEW 35 Syntax: CREATE VIEW ViewName [ (newcolumnname [,...]) ] AS subselect [WITH [CASCADED LOCAL] CHECK OPTION] Can assign a name to each column in view. If list of column names is specified, it must have same number of items as number of columns produced by subselect. If omitted, each column takes name of corresponding column in subselect. List must be specified if there is any ambiguity in a column name. The subselect is known as the defining query. WITH CHECK OPTION ensures that if a row fails to satisfy WHERE clause of defining query, it is not added to underlying base table. Pearson Education 2009
36 Example Create Horizontal View 36 Create view so that manager at branch B003 can only see details for staff who work in his or her office. CREATE VIEW Manager3Staff AS SELECT * FROM Staff WHERE branchno = B003 ; Pearson Education 2009
37 Example Create Vertical View 37 Create view of staff details at branch B003 excluding salaries. CREATE VIEW Staff3 AS SELECT staffno, fname, lname, position, sex FROM Staff WHERE branchno = B003 ; Pearson Education 2009
38 SQL - DROP VIEW 38 Syntax: DROP VIEW ViewName [RESTRICT CASCADE] With CASCADE, all related dependent objects are deleted; i.e. any views defined on view being dropped. With RESTRICT (default), if any other objects depend for their existence on continued existence of view being dropped, command is rejected. For example: DROP VIEW Manager3Staff; Pearson Education 2009
39 View Updatability 39 All updates to base table reflected in all views that encompass base table. Similarly, may expect that if view is updated then base table(s) will reflect change. Pearson Education 2009
40 View Updatability 40 ISO specifies that a view is updatable if and only if: - DISTINCT is not specified. - Every element in SELECT list of defining query is a column name and no column appears more than once. - FROM clause specifies only one table, excluding any views based on a join, union, intersection or difference. - No nested SELECT referencing outer table. - No GROUP BY or HAVING clause. - Also, every row added through view must not Pearson Education 2009 violate integrity constraints of base table.
41 WITH CHECK OPTION 41 Rows exist in a view because they satisfy WHERE condition of defining query. If a row changes and no longer satisfies condition, it disappears from the view. New rows appear within view when insert/update on view cause them to satisfy WHERE condition. Rows that enter or leave a view are called migrating rows. WITH CHECK OPTION prohibits a row migrating out of the view. Pearson Education 2009
42 WITH CHECK OPTION 42 LOCAL/CASCADED apply to view hierarchies. With LOCAL, any row insert/update on view and any view directly or indirectly defined on this view must not cause row to disappear from view unless row also disappears from derived view/table. With CASCADED (default), any row insert/ update on this view and on any view directly or indirectly defined on this view must not cause row to disappear from the view. Pearson Education 2009
43 Example WITH CHECK OPTION 43 CREATE VIEW Manager3Staff AS SELECT * FROM Staff WHERE branchno = B003 WITH CHECK OPTION; Cannot update branch number of row B003 to B002 as this would cause row to migrate from view. Also cannot insert a row into view with a branch number that does not equal B003. Pearson Education 2009
44 Example WITH CHECK OPTION 44 Now consider the following: CREATE VIEW LowSalary AS SELECT * FROM Staff WHERE salary > 9000; CREATE VIEW HighSalary AS SELECT * FROM LowSalary WHERE salary > WITH LOCAL CHECK OPTION; CREATE VIEW Manager3Staff AS SELECT * FROM HighSalary WHERE branchno = B003 ; Pearson Education 2009
45 Example WITH CHECK OPTION 45 UPDATE Manager3Staff SET salary = 9500 WHERE staffno = SG37 ; This update would fail: although update would cause row to disappear from HighSalary, row would not disappear from LowSalary. However, if update tried to set salary to 8000, update would succeed as row would no longer be part of LowSalary. If HighSalary had specified WITH CASCADED CHECK OPTION, setting salary to 9500 or 8000 would be rejected because row would disappear from HighSalary. To prevent anomalies like this, each view should be created using WITH CASCADED CHECK OPTION. Pearson Education 2009
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 informationSubqueries. 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 informationCH-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 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 informationSubqueries. Lecture 11 Subsections Robb T. Koether. Hampden-Sydney College. Fri, Feb 8, 2013
Subqueries Lecture 11 Subsections 5.1.1-5.1.5 Robb T. Koether Hampden-Sydney College Fri, Feb 8, 2013 Robb T. Koether (Hampden-Sydney College) Subqueries Fri, Feb 8, 2013 1 / 20 1 Subqueries 2 The IN Operator
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 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 informationPractice and Applications of Data Management CMPSCI 345. Lecture 05: Advanced Joins and Aggregates
Practice and Applications of Data Management CMPSCI 345 Lecture 05: Advanced Joins and Aggregates Today: } Con$nue on joins } Self- join } Outer- join } Aggregates 2 To-dos } Gradiance quizzes: } Lab Quiz
More informationIntroduction to Database Systems CSE 444
Introduction to Database Systems CSE 444 Lecture 3: SQL (part 2) h"p://www.cs.washington.edu/educa3on/courses/cse444/11wi/ Outline Aggrega3ons (6.4.3 6.4.6) Examples, examples, examples Nulls (6.1.6-6.1.7)
More informationRDBMS 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 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 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 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 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 informationTeradata Corporation Copyright All Rights Reserved.
Recursive Queries After completing this module, you will be able to: Identify the need for recursive derived table vs. (non-recursive) derived table. Discern the different parts of the recursive query
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 informationCISC 7510X Final Exam For the below questions, use the following schema definition.
CISC 7510X Final Exam For the below questions, use the following schema definition. customer(custid,username,fname,lname) product(prodid,description,listedprice) purchase(purchid,custid,timstamp) purchaseitem(purchid,prodid,qty,price)
More informationCISC 7512X Final Exam For the below questions, use the following schema definition.
CISC 7512X Final Exam For the below questions, use the following schema definition. customer(custid,username,fname,lname) product(prodid,description,listedprice) purchase(purchid,custid,timstamp) purchaseitem(purchid,prodid,qty,price)
More informationRelational 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 informationCSE 344 JANUARY 17 TH SUBQUERIES
CSE 344 JANUARY 17 TH SUBQUERIES GROUPING AND AGGREGATION Purchase(product, price, quantity) Find total quantities for all sales over $1, by product. SELECT product, Sum(quantity) AS TotalSales FROM Purchase
More informationTips and Techniques for Statistics Gathering. Arup Nanda Longtime Oracle DBA
Tips and Techniques for Statistics Gathering Arup Nanda Longtime Oracle DBA Agenda High Level Pending stats Correlated Stats Sampling 2 Reporting New reporting function for auto stats collection Returns
More informationUMBC 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 informationAdaptive 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(b.) Assuming addition, subtraction, and shifting take O(n) work and O(log n) depth
CME 323: Distributed Algorithms and Optimization Instructor: Reza Zadeh (rezab@stanford.edu) HW#1 Due at the beginning of class Thursday April 19 1. A computation takes 250 seconds to run on a single core,
More informationClass 5. Professional Programs: Data Administration and Management Data Analysis DATA MINING USING SQL (PREDICTIVE DATA ANALYSIS, X470.
Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 5 Professional Programs: Data Administration and Management Data Analysis DATA MINING USING SQL (PREDICTIVE DATA ANALYSIS, X470.1)
More informationIBM Solutions ecapital University 2017 Training Course Catalog
IBM Solutions ecapital University 2017 Training Course Catalog 1/23/2017 2017 ecapital Advisors, LLC. Training with ecapital ecapital s Training Philosophy Effective training is a critical part of any
More informationParallel Execution With Oracle Database 12c. Ivica Arsov June 8, 2018
Parallel Execution With Oracle Database 12c Ivica Arsov June 8, 2018 Ivica Arsov Database Consultant Based in Skopje, Macedonia Oracle Certified Master 12c & 11g Oracle ACE Blogger Founder of MKOUG Twitter:
More informationMicrosoft Dynamics CRM Customization and Configuration (MB2-707)
Microsoft Dynamics CRM Customization and Configuration (MB2-707) Manage solutions Plan for customisation Define xrm; differentiate configuration, customisation, extending and development; design appropriate
More informationAnnouncements. Loading Data into SQLite. Joins in SQL. Joins in SQL. Joins in SQL. Introduction to Database Systems CSE 414. Homework 2 out now
Introduction to Database Sstems CSE 414 Lecture 4: SQL Joins and Aggregates Announcements Homework 2 out now git pull upstream master to get the starter code Due Tuesda Oct. 9 at mnight Web qui 1 due Fra
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 informationAPS Basic Set Up. Learn how to set up a basic APS scenario in beas Manufacturing
APS Basic Set Up Learn how to set up a basic APS scenario in beas Manufacturing Boyum Solutions IT A/S Beas tutorials TABLE OF CONTENTS 1. INTRODUCTION... 3 2. PROCESS... 3 2.1. Master Data Tab... 5 2.2.
More informationAccess to the system is browser-based. CCCWorks supports the Microsoft Internet Explorer, Mozilla Firefox, and Apple Safari web browsers.
Introduction Welcome to the CCCWorks Time and Attendance Manager Reference Guide CCCWorks Time and Attendance application delivers the functionality and flexibility to enforce HR, payroll, and union policies
More informationPentaho Analyzer Cookbook: Calculations and Multidimensional Expressions (MDX)
Pentaho Analyzer Cookbook: Calculations and Multidimensional Expressions (MDX) Change log (if you want to use it): Date Version Author Changes Contents Overview... 1 Core Recipes... 2 Learning MDX... 2
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 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 informationWhat is Business Intelligence (BI)? Why BI? What is Cognos? And why Cognos? Cognos BI Architecture Cognos 10.2 New Features & Advantages
Chapter 1 : Introduction & Overview of Cognos BI Basics of Data warehouse Demo/Day 1 Methods Difference betweeen OLAP & OLTP ETL, Reporting, Analatics etc Differenc between Facts, dimensions, type of schema,
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 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 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 informationINTRO TO WORK PLANNING IN MIRADI 4.4
INTRO TO WORK PLANNING IN MIRADI 4.4 Overview of Work Plan High Level Work Planning Adding Financial Information Analyzing & Using Work Plan Data Key Work Plan Controls Detailed Work Planning Work Planning
More informationB 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 informationThe Genetic Algorithm CSC 301, Analysis of Algorithms Department of Computer Science Grinnell College December 5, 2016
The Genetic Algorithm CSC 301, Analysis of Algorithms Department of Computer Science Grinnell College December 5, 2016 The Method When no efficient algorithm for solving an optimization problem is available,
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 informationInfo 605 Project Table of Contents
Betty Nguyen Stephen Grant 6/7/2013 Info 605 Project Table of Contents Section One: Requirements Section Section Two: ER Model Section Three: Mapped Relational Schema Section Four: Data Dictionary Section
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 informationAVANTUS TRAINING PTE PTE LTD LTD
[MS20466]: Implementing Data Models and Reports with SQL Server 2014 Length : 5 Days Audience(s) : IT Professionals Level : 300 Technology : Microsoft SQL Server Delivery Method : Instructor-led (Classroom)
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 informationPRODUCTION PLANNING MODULE
Anar Pharmaceuticals Limited ERP Project In Sales & Distribution Module I had recommended: PRODUCTION PLANNING MODULE 1. Monthly Corporate Sales Budget Process (Refer Sales Budget - page 32) & 2. Macro
More informationReporting in Microsoft Dynamics CRM 2011
Course 80445A: Reporting in Microsoft Dynamics CRM 2011 Course Details Course Outline Module 1: INTRODUCTION TO REPORTING TOOLS IN MICROSOFT DYNAMICS CRM 2011 There are many reasons for reporting in Microsoft
More informationLanteria HR Report Center
User Guide for version 4.2.0 Copyright 2015 Lanteria Table of Contents 1 Introduction... 3 1.1 Report Center Overview... 3 1.2 Terminology List... 3 2 General Reports... 4 2.1 Run General Reports... 4
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 informationLEARNING ABOUT MDX HANDOUT 1
Learning about MDX Pako Chan, CPA, CA, CITP Manager, Business Solutions Group Introduction Pako Chan Manager, Business Solutions Group CPA-CA, CITP Auditor Deloitte 5 years Architect Prophix 6 years Agenda
More informationA Process for Data Requirements Analysis. David Loshin Knowledge Integrity, Inc. October 30, 2007
A Process for Data Requirements Analysis David Loshin Knowledge Integrity, Inc. loshin@knowledge-integrity.com October 30, 2007 1 Agenda The criticality of business information Data requirements analysis
More informationincontact Workforce Management v2 Capacity Planner Web Site User Manual
incontact Workforce Management v2 Capacity Planner Web Site User Manual www.incontact.com incontact WFM v2 Capacity Planner Web Site User Manual Version 16.1 Revision March 2016 About incontact incontact
More informationSDMX self-learning package No. 8 Student book. SDMX Architecture Using the Pull Method for Data Sharing
No. 8 Student book SDMX Architecture Using the Pull Method for Data Sharing Produced by Eurostat, Directorate B: Statistical Methodologies and Tools Unit B-5: Statistical Information Technologies Last
More informationPerformance Measure 73: State/Territory Quality Assessment
Performance Measure 73: State/Territory Quality Assessment The numbers needed for the Performance Measure 73 EHB entries have been calculated, but you may want to do some quality assessment to better understand
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 informationSunrise Wallboard for ITSM Guide
Sunrise Wallboard for ITSM Guide Date: July 2014 Page 1 of 22 All rights reserved. No part of this document may be reproduced or transmitted in any form or by any means, or stored in any retrieval system
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 informationTuna Helper Proven Process for SQL Tuning. Dean Richards Senior DBA, Confio Software
Tuna Helper Proven Process for SQL Tuning Dean Richards Senior DBA, Confio Software 1 Tuna Helper Proven Process for SQL Tuning Give a man a fish and you feed him for a day. Teach a man to fish and you
More informationInfor LN Warehousing User Guide for Inbound Goods Flow
Infor LN Warehousing User Guide for Inbound Goods Flow Copyright 2017 Infor Important Notices The material contained in this publication (including any supplementary information) constitutes and contains
More informationAntti Salonen KPP227 KPP227 1
KPP227 KPP227 1 What is Aggregate Planning? Aggregate (or intermediate-term) planning is the process of determining a company s aggregate plan = production plan. The aggregate plan specifies how the company
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 informationEmployee Model User s Guide. Distributed Employee Model Basics Version 1.8
Employee Model User s Guide Distributed Employee Model Basics Version 1.8 October 06, 2017 Contents Introduction to the Employee Model Project... 3 The Reports... 4 Where are the Reports?... 4 What Reports
More informationScheduling Work at IPSC
Scheduling Work at IPSC Overview The purpose of this document is to describe and lay out the specific steps for how Work Orders will be scheduled in Maximo at IPSC. In general, Work Orders will be planned
More informationMS-20466: Implementing Data Models and Reports with Microsoft SQL Server
MS-20466: Implementing Data Models and Reports with Microsoft SQL Server Description The focus of this five-day instructor-led course is on creating managed enterprise BI solutions. It describes how to
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 informationOracle. SCM Cloud Using Order Promising. Release 13 (update 17D)
Oracle SCM Cloud Release 13 (update 17D) Release 13 (update 17D) Part Number E89216-02 Copyright 2011-2017, Oracle and/or its affiliates. All rights reserved. Authors: Deborah West, Naveen Mudle, Nithin
More informationCOURSE SYLLABUS COURSE TITLE: 55108BC Discovering the Power of Excel PowerPivot Data Analytic Expressions (DAX)
1 COURSE SYLLABUS COURSE TITLE: 55108BC Discovering the Power of Excel 2010-2013 PowerPivot Data Analytic Expressions (DAX) FORMAT: CERTIFICATION EXAMS: Instructor-Led None This course syllabus should
More informationSOFTWARE DEVELOPMENT STANDARD
SFTWARE DEVELPMENT STANDARD Mar. 23, 2016 Japan Aerospace Exploration Agency The official version of this standard is written in Japanese. This English version is issued for convenience of English speakers.
More informationIn this article, we are covering following broad sections on financial consolidation process:
Financial Consolidation Processing Operational visibility and risk management are key considerations for any business with multiple operational units. The corporate financial controller needs an accurate
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 informationDecision Support Release Notes. Release
Decision Support Release Notes Release 2004-06 1. Finance Modifications...2 1.1 AR Transaction Description Value Corrected...2 2. HR/Payroll Modifications...3 2.1 Job Contract Type Description Field Corrected...3
More informationAdvanced Scheduling Introduction
Introduction The Advanced Scheduling program is an optional standalone program that works as a web site and can reside on the same server as TimeForce. This is used for the purpose of creating schedules
More informationOracle 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 informationUsing Excel s Analysis ToolPak Add-In
Using Excel s Analysis ToolPak Add-In Bijay Lal Pradhan, PhD Introduction I have a strong opinions that we can perform different quantitative analysis, including statistical analysis, in Excel. It is powerful,
More informationMYOB Exo Distribution Advantage. User Guide
MYOB Exo Distribution Advantage User Guide 2018.3 Table of Contents On-Demand vs. Forecast Purchase Orders... 2 End-User Scenarios... 2 Viewing Statuses... 3 On-Demand Purchase Orders Setup... 3 On-Demand
More informationA. ( ) ( ) 2. A process that is in statistical control necessarily implies that the process is capable of meeting the customer requirements.
8 4 4 A. ( 5 2 10 ) ( ) 1. When the level of confidence and sample proportion p remain the same, a confidence interval for a population proportion p based on a sample of n = 100 will be wider than a confidence
More informationPUBLIC What's New Guide
SAP BusinessObjects Analysis, edition for Microsoft Office Document Version: 2.4 SP1 2017-01-31 PUBLIC Content 1 About this guide....3 2 About the documentation set....4 3 Administration.... 6 3.1 New
More informationB5270G Essentials for IBM Cognos BI (V10.2)
B5270G Essentials for IBM Cognos BI (V10.2) DESCRIPTION Essentials for IBM Cognos BI (V10.2) is a blended offering consisting of five-days of instructorled training and 21 hours of Web-based, self-paced
More informationTuna Helper Proven Process for SQL Tuning. Dean Richards Senior DBA, Confio Software
Tuna Helper Proven Process for SQL Tuning Dean Richards Senior DBA, Confio Software 1 Tuna Helper Proven Process for SQL Tuning Give a man a fish and you feed him for a day. Teach a man to fish and you
More informationPerformance Management System Reference Guide Reporting
Performance Management System Reference Guide Reporting Statistics Dashboard 3 Note... 3 Company Performance... 3 Department Performance... 5 Individual Performance... 6 Company 360... 7 Department 360...
More informationSINGLE-YEAR SALARY PLANNING
SINGLE-YEAR SALARY PLANNING TABLE OF CONTENTS OPENING A PLAN FILE... 2 GENERAL NAVIGATION... 4 Plan File Layout... 4 Employee Groups Not Included... 4 Axiom Toolbar... 4 SALARY INCREASES... 6 Current Year
More informationIncrementally 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 informationWorkforce Deployment Dimension and Fact Job Aid
Table of Contents Introduction... 2 Human Resources Workforce Deployment Analysis... 5 Human Resources Workforce Deployment Subject Area... 8 Workforce Deployment Facts - Measure Definitions... 9 Workforce
More informationCreating Simple Report from Excel
Creating Simple Report from Excel 1.1 Connect to Excel workbook 1. Select Connect Microsoft Excel. In the Open File dialog box, select the 2015 Sales.xlsx file. 2. The file will be loaded to Tableau, and
More informationCHAPTER VI FUZZY MODEL
CHAPTER VI This chapter covers development of a model using fuzzy logic to relate degree of recording/evaluation with the effectiveness of financial decision making and validate the model vis-à-vis results
More information4. Requesting Position Changes for Tenure/Tenure Track Positions
Last Updated: 2/26/2007 11:40:00 AM 4. Requesting Position Changes for Tenure/Tenure Track Positions This chapter contains the following sections: 4.1. What is E-TRAC Vacant Position Change Request...4-1
More informationImplementing Data Models and Reports with Microsoft SQL Server
20466 - Implementing Data Models and Reports with Microsoft SQL Server Duration: 5 Days Course Price: $2,975 Software Assurance Eligible Course Description Note: This course is designed for customers who
More informationIntelligent Transportation System - II
Chapter 49 Intelligent Transportation System - II 49.1 Standards Standards provide some norms and regulations to be followed. Just as the standards are provided by IRC for the signs to be used similar
More informationCreating a Transit Supply Index. Andrew Keller Regional Transportation Authority and University of Illinois at Chicago
Creating a Transit Supply Index Andrew Keller Regional Transportation Authority and University of Illinois at Chicago Presented at Transport Chicago Conference June 1, 2012 Introduction This master's project
More informationCUPA 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 informationEverything you want to know about. Sage Accpac Intelligence. Version
Everything you want to know about Sage Accpac Intelligence Version 2.1 2009-10-19 What is Sage Accpac Intelligence? Sage Accpac Intelligence or SAI is an exciting new product within the Sage Accpac Extended
More informationLanteria HR Core HR
Lanteria HR 2013 - Core HR User's Guide for version 4.2.0 Copyright 2015 Lanteria Table of Contents 1 Introduction... 4 1.1 The Core HR Module Overview... 4 1.2 Terminology List... 4 2 Core HR Dashboard...
More informationMIS 2101/2901 EXAM 1 REVIEW SESSION. Michelle Purnama Diamond Peer
MIS 2101/2901 EXAM 1 REVIEW SESSION Michelle Purnama Diamond Peer michelle.purnama@temple.edu EXAM FORMAT 25 Multiple Choice Questions First 5 from assigned readings Next 10 from assigned videos & lectures
More information5 key steps to defining your application-access control
5 key steps to defining your application-access control An Evidian white paper Evidian Professional Services Summary Version 1.0 How to control access to your applications? From RBAC to Extended RBAC Top-Down
More informationFairsail Kon-Tiki Release Notes
Fairsail Kon-Tiki Release Notes Pre-release Draft FS-KTK-XXX-RN-201702-C-DKTK.01 Fairsail 2017. All rights reserved. This document contains information proprietary to Fairsail and may not be reproduced,
More informationMay 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