Data Virtualization Demoette… Parameterized Queries

Slides:



Advertisements
Similar presentations
Access Lesson 2 Creating a Database
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries.
End Show 3.4 Database Management System Unit 3. End Show What is a database? It’s an organized collection of data, related to a particular subject or.
Working with Reports in Microsoft Excel Session Version 1.0 © 2011 Aptech Limited.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
1 Chapter 4: Creating Simple Queries 4.1 Introduction to the Query Task 4.2 Selecting Columns and Filtering Rows 4.3 Creating New Columns with an Expression.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
0 Copyright 2012 FUJITSU Interstage BOP SQL Query Tutorial Todd Palmer October 2012.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Review DATA VISUALIZATION WITH TABLEAU ONLINE TUTORIAL Training Guide Fundamentals.
More SQL: Complex Queries, Triggers, Views, and Schema Modification
Data Virtualization Demoette… ODBC Clients
Data Virtualization Tutorial… SSL with CIS Web Data Sources
Data Virtualization Tutorial: Custom Functions
Data Virtualization Demoette… Logging in CIS
Data Virtualization Demoette… Packaged Query Single Select Option
Unvieling Jet Express: What it offers the GP Community
Visual Basic 2010 How to Program
Project Management: Messages
Data Virtualization Demoette… Business Directory Custom Properties
Data Virtualization Demoette… Caching – Database – Multi Table
Creating Oracle Business Intelligence Interactive Dashboards
Business Directory REST API
Data Virtualization Tutorial: Introduction to SQL Script
Data Virtualization Demoette… Custom Java Procedures
Data Virtualization Demoette… Flat-File Data Sources
Data Virtualization Demoette… JMeter Load Testing CIS JDBC
Data Virtualization Demoette… ADO.NET Client
Data Virtualization Community Edition
Data Virtualization Demoette… JMeter Load Testing CIS SOAP
Data Virtualization Tutorial… LDAP Domains in CIS
Data Virtualization Community Edition
Data Virtualization Demoette… CIS Rights
Data Virtualization Tutorial… CORS and CIS
Data Virtualization Demoette… Data Lineage Reporting
Data Virtualization Tutorial… OAuth Example using Google Sheets
Data Virtualization Tutorial: XSLT and Streaming Transformations
Data Virtualization Demoette… JDBC Clients
Data Virtualization Tutorial… Semijoin Optimization
Data Virtualization Demoette… Column-Based Security
mysql and mysql workbench
Data Virtualization Demoette… Salesforce.com Data Source
Data Virtualization Demoette… DDL Feature
20761A 10: Using Subqueries Module 10   Using Subqueries.
Data Virtualization Tutorial: JSON_TABLE Queries
Yoel Kortick Senior Librarian Alma Product Management
Data Virtualization Community Edition
Introduction With TimeCard users can tag SharePoint events with information that converts them into time sheets. This way they can report.
Exploring Microsoft Office Access 2010
Database Queries.
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Introduction to Database Programs
Introduction to Access
Topic 11 Lesson 1 - Analyzing Data in Access
Extend Excel with Smartlist Designer
Unit J: Creating a Database
Presentation transcript:

Data Virtualization Demoette… Parameterized Queries Hello, and welcome to the Demoette series for Cisco Information Server, or CIS. In this Demoette, we demonstrate the use of Parameterized Queries.

Agenda What are they and why do they matter? A basic demo Summary Here is our agenda. We begin by defining parameterized queries and outlining their importance for our customers. Next we walk through a very basic demo of parameterized queries. Finally, we summarize the contents of this demoette.

Agenda What are they and why do they matter? A basic demo Summary Let’s begin by discussing what parameterized queries are and why they are important for our customers.

What are they? Parameterized Queries SQL Query that includes named parameters Parameters may appear in projections or selections Implemented as a Stored Procedure in CIS A Parameterized Query is a CIS SQL query that includes named parameters in projections or selections. In CIS, Parameterized Queries are a type of Stored Procedure.

Why do they matter? Parameterized Queries Add user-friendly flexibility to data access Select Where From Parameterized Queries are important to our customers because they enable user-friendly flexibility to be added to data access requests. Parameters may be added in three areas: as part of a Select clause, a Where clause, or a From clause in a SQL query.

Agenda What are they and why do they matter? A basic demo Summary Next, let’s walk through a very basic demo that shows the use of Parameterized Queries.

Demo: Here is the business problem… Business Analysts CIS Data Source 1 Data Source 2 Here is the business problem we illustrate in this demo. Our business analysts use CIS to access complex virtual views, but they don’t want to simply download tables. They need to be able to apply various types of filters to the data. However, these users are not well-versed in SQL, so we want to provide them a simpler way to enter their filters as parameters in stored procedures that we expose.

Demo: Before you begin… Import CAR file This demo uses data from the Examples folder that is delivered with CIS, so no installation of data is required. However, a CAR file is available in the Additional Resources folder that accompanies this demoette. You can build these resources from scratch, or import the CAR file if you want to use the pre-built artifacts.

Demo: Parameterized SELECT clause We are ready to begin our demo. Right-click a folder and select New Parameterized Query. <CLICK> Give the query a name… <CLICK> … and drag CompositeView from the Examples folder onto the modeling palette. <CLICK> On the Grid Panel, select three columns: OrderID, ProductID, and CompanyName. We have now created a basic view, and are ready to add a parameter.

Demo: Parameterized SELECT clause Now click an empty row in the Column area, and select Parameter. <CLICK> Give the parameter a name, and choose Varchar as the data type. <CLICK> Click OK, and the new parameter appears in the Grid. You can change the alias if you wish. <CLICK> Now execute the query, and enter a value for the parameter. <CLICK> The parameter value is returned as part of the result set.

Demo: Parameterized WHERE clause Next, let’s add a parameter to a Where clause. Create a new parameterized query just as we did previously, using the CompositeView resource from the Examples folder, and selecting the same three columns in the Grid panel. <CLICK> On the Grid Panel, right-click in the Criteria column… <CLICK> … for the CompanyName row, and choose Parameter. <CLICK> Give the parameter a name, and select Varchar as the data type. <CLICK> CIS automatically generates this clause in the Criteria cell. As you can see, an ‘equals’ comparison is generated by default.

Demo: Parameterized WHERE clause Let’s change that default comparison. We could do it here on the SQL Script tab… <CLICK> … but let’s do it on the Grid tab. <CLICK> We’ll change the Equals to a Like. <CLICK> The change is automatically reflected in the generated SQL Script.

Demo: Parameterized WHERE clause Now when we execute, we can enter a valid value for the LIKE clause… <CLICK> … and see the corresponding results.

Demo: Parameterized FROM clause Finally, let’s build a Packaged Query that uses a parameter in a FROM clause. This is typically used when we want to embed a parameter-driven stored procedure or transformation in a Packaged Query. We create a new Packaged Query, and drag in the Stored Procedure LookupProduct from the Examples folder. <CLICK> We are prompted for a parameter value, but instead of entering a literal, we choose Query Parameter from the drop-down. <CLICK> We name the parameter, and click OK.

Demo: Parameterized FROM clause As the SQL Script tab shows, the input parameter is used as the parameter for the embedded procedure. <CLICK> We execute, enter a parameter value for the product ID… <CLICK> … and the appropriate data is returned.

Demo: Publishing a Parameterized Query When we publish a Parameterized Query as a virtual database, it appears as a Stored Procedure. <CLICK> Here we use CIS’s SQL Scratchpad tool as a client to execute the stored procedure and retrieve results. Our demo is complete.

Agenda What are they and why do they matter? A basic demo Summary Let’s summarize what we have seen in this presentation.

Summary Parameterized Queries SQL Query that includes named parameters Parameters may appear in projections or selections Implemented as a Stored Procedure in CIS Add user-friendly flexibility to data access Select Where From A Parameterized Query is a CIS SQL query that includes named parameters in projections or selections. In CIS, Parameterized Queries are a type of Stored Procedure. Parameterized Queries are important to our customers because they enable user-friendly flexibility to be added to data access requests. Parameters may be added in three areas: as part of a Select clause, a Where clause, or a From clause in a SQL query. Thank you.

TOMORROW starts here.