Product Overview and Examples

Similar documents
Scenario 2: Cognos SQL and Native SQL.

Course 20461C: Querying Microsoft SQL Server Duration: 35 hours

Lab 06: Experiencing Microsoft Lync Server 2013 Collaboration Features

Querying Microsoft SQL Server

Use the Microsoft Office Word Add-In to Create a Source Document Template for Microsoft Dynamics AX 2012 WHITEPAPER

Course ID#: W 35 Hrs. Course Content

EAS End Users Service Maintenance Program Yukon Visual T&D Support Policy Paper Version 1.1, January 2016

Querying Microsoft SQL Server 20461C; 5 days

ADP Workforce Now V3.0

The General Insurance Process Risk Management, Marketing, Advice, Underwriting & Claims

Saskatoon Business College Corporate Training Centre

Querying Microsoft SQL Server Course M Day(s) 30:00 Hours

Multiple Aligned Column Headers in Lists and Crosstabs

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

Dell InTrust Preparing for Auditing Microsoft SQL Server

MOC QUERYING MICROSOFT SQL SERVER

Introducing Microsoft SQL Server 2012 Getting Started with SQL Server Management Studio

Spotlight Management Pack for SCOM

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

icloud for Developers

Querying Microsoft SQL Server (20461) H8N61S

Windows BitLocker Drive Encryption Step-by-Step Guide

CA Clarity Project & Portfolio Manager

This brief, published April 2014, replaces a previous version published December Changes include the following:

Querying Microsoft SQL Server 2012

The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps.

SQL and Java. Database Systems Lecture 19 Natasha Alechina

Course 10774A: Querying Microsoft SQL Server 2012

Course 10774A: Querying Microsoft SQL Server 2012 Length: 5 Days Published: May 25, 2012 Language(s): English Audience(s): IT Professionals

Start Oracle Insurance Policy Administration. Activity Processing. Version

Implementing a Data Warehouse with Microsoft SQL Server

Oracle Database: SQL and PL/SQL Fundamentals NEW

Feature Focus Guide: Tipshare Distribution

Creating and Deploying Active Directory Rights Management Services Templates Step-by-Step Guide

HC RTR CONFIGURATION. User Manual. Hosting Controller All Rights Reserved.

Try-Catch FAQ. Version February InterSystems Corporation 1 Memorial Drive Cambridge MA

Message Center Communicating with Students and Parents. Document revised by Millard Public Schools on August 25, 2014

AV-005: Administering and Implementing a Data Warehouse with SQL Server 2014

This Tech Note provides detailed guidelines and options for defragmenting and maintaining your production databases.

Oracle Database 10g Express

Implementing a Data Warehouse with Microsoft SQL Server

COURSE 20463C: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Egress Switch Reader. User Guide 2.3

CA Clarity PPM. Connector for Microsoft SharePoint Product Guide. Service Pack

Payments (Portal) August 2012

How to complete your Body Massage home study course

Database Backup and Recovery Guide

SQL Server Integration Services with Oracle Database 10g

Financial Management System

Exchange Brick-level Backup and Restore

COURSE SYLLABUS EDG 6931: Designing Integrated Media Environments 2 Educational Technology Program University of Florida

SafeGuard Easy upgrade guide. Product version: 7

USB Ethernet Connectivity Kit

Intro to Mail Merge. Contents: David Diskin for the University of the Pacific Center for Professional and Continuing Education. Word Mail Merge Wizard

Business Intelligence Tool Migration. Title: Domain: Client: Location:

Microsoft Dynamics GP. Audit Trails

IT Quick Reference Guides Performing Mail Merges in Word 2010

Using Temporary Tables to Improve Performance for SQL Data Services

Implement a Data Warehouse with Microsoft SQL Server 20463C; 5 days

Lab 05: Deploying Microsoft Office Web Apps Server

Connector for CA Unicenter Asset Portfolio Management Product Guide - On Premise. Service Pack

CA Change Manager Enterprise Workbench r12

TransUnion Direct: Download Digital Certificate Firefox

Oracle Database: SQL and PL/SQL Fundamentals

Time & Attendance Manager Basics

Lexis Back Office - Payroll. Getting Started

Table of Contents. Process Diagram Data Model... 5 SYSTEM ENTITIES... 6 WFUSER... 6 AREA Case Type Request Type Category...

The IBT Student Beta

How To Understand The Online Advertising Market In Quatar

Creating IBM Cognos Controller Databases using Microsoft SQL Server

An Introduction to VoiceXML

Making Information Exchange Meaningful

TeamCompanion Solution Overview. Visual Studio

CA Cloud Service Delivery Platform


External Communication to Third Parties

System requirements 2. Overview 3. My profile 5. System settings 6. Student access 10. Setting up 11. Creating classes 11

DELETE DUPLICATE S IN THE EMC XTENDER ARCHIVE SYSTEM USING THE MSGIDCRACKER UTILITY

Spotlight Management Pack for SCOM

Visual Basic. murach's TRAINING & REFERENCE

ATTACHMENT 6 SQL Server 2012 Programming Standards

Database Programming with PL/SQL: Learning Objectives

How To Use An Npm Npm Option (Npm) On A Network With A Npm And Npm On A Npa Server

Smart Web. User Guide. Amcom Software, Inc.

Archiving User Guide Outlook Plugin. Manual version 3.1

CA ARCserve Backup for Windows

SQL Server Maintenance Plans

Remote Viewer Recording Backup

Intro to Embedded SQL Programming for ILE RPG Developers

CA Workload Automation Agent for Microsoft SQL Server

Dell Statistica. Statistica Document Management System (SDMS) Requirements

SIEBEL SALES USER GUIDE

CA Clarity PPM. Project Management User Guide. v

Dell One Identity Cloud Access Manager How to Configure vworkspace Integration

CA VPN Client. User Guide for Windows

The LivePerson Tag. Technical Data Sheet. Document Version: 1.0. December 2012

e Prescribing Overview March 14, 2015

Scheduling Messenger

Sample- for evaluation only. Introductory Access. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

MDM Multidomain Edition (Version 9.6.0) For Microsoft SQL Server Performance Tuning

Transcription:

Product Overview and Examples Advanced SQL Procedure Example

Example Scenario Calculate the daily sale for each customer. This is a recalculation, the entries may already exist and then only the values should be updated. The sale order can be marked as excluded and the record must be skipped. The sale order can be marked as error and the recalculation must stop. After each updated or inserted daily sale, the status of the included sale orders must change to processed The calculation is a time consuming operation and it has to be interrupted on demand or if any external system error occurs. CUSTOMER_DAILY_SALE(CUSTOMER_ID, SALE_DATE) = SUM(SALE_ORDER(CUSTOMER_ID, ORDER_DATE))) 191

SQL Procedures The Diagram DBClarity Tutorial, SQL Procedure: 05 Calculate Customer Daily Sale Procedure starts here Region starts here Procedure Exception handler starts here Loop starts here Region s Exception handler starts here 192

DBClarity Tutorial, SQL Rule: Get Sale Orders Loop Block based on a SQL Rule To calculate the daily sale from the Customer Orders table, use a Loop over the result-set of a query returning all the customer orders sorted by the customer and date. 193

Case, Continue Loop, Throw Exception If the record is marked as excluded, continue the loop and do not go to the calculation If the record is marked as error, raise the DataError Exception 194

SELECT Statement and Break Loop To interact with the system, read special control data from a system table, using the SELECT Block. It produces a SELECT statement and stores the result in a variable: SELECT CONTROL_VALUE as CONTROL_VALUE INTO controlvalue FROM SYSTEM_CONTROL Query stored in EDF, but it can be a SQL Rule WHERE CONTROL_ID = controlid; Raise the SystemError exception Break the Loop and exit the procedure

SQL Procedure Elements Calculation done in a Region Block to catch the exception thrown only by the operations inside Local Exceptions handler begins here Begin a transaction Rollback the transaction Call the Merge SQL Rule Update the Sale Order status to error Update the Sale Order status to processed Re-raise the exception Commit the transaction 196

Exception Handler Exception handler is the control flow alternative to the normal flow Starts when the exception is thrown from the normal flow The only blocks allowed directly after the Catch Exception are Decision and End Exception handler starts with the different block

Calling other Procedures Calling stored procedures Implemented as a SQL Procedure Implemented as a SQL Rule Declared in an External Call Format 198

External Stored Procedures Use an External Call Format to refer to the SQL Procedure Use an External Call block in a Rule to call the stored procedure

More Information Download the product and find more information, including product workshops and training videos, visit the Microgen website www.microgen.com/dbclarity Send your product questions and feedback to the Microgen team at dbclarity.feedback@microgen.com Contact Microgen Support for all DBClarity Developer related support queries at dbclarity.support@microgen.com Follow DBClarity Developer on Twitter @MCGN_DBClarity

This document is designed to provide a training overview of Microgen DBClarity Developer. Information in this document is subject to change without notice and does not represent a commitment on the part of Microgen. The information contained in this document is proprietary and confidential to Microgen plc and must not, therefore, be disclosed to any third-party without the express written permission of Microgen. In addition, no part of this document may be reproduced or transmitted in any form or by any means electronic or mechanical including photocopying, recording or information storage and retrieval systems, for any purpose other than the recipient s personal use without the express written permission of Microgen.