Dynamic Input with SQL Queries

Slides:



Advertisements
Similar presentations
Ashley Ohmann June 20, * What is Custom SQL? * What can I do with it? * Join conditions * Unions and Self Joins * Ranks * Derived Tables.
Advertisements

Intro to Access 2007 Lindsey Brewer CSSCR September 18, 2009.
Microsoft® Office Access® 2007 Training
Queries Help Topics Using the Access 2007, you can press the F1 to pop up the help windows, where you can search the following topics to help to generate.
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
Microsoft Access 2010 Chapter 7 Using SQL.
Access 2007 ® Use Databases How can Access help you to find and use information?
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
I Want My Data © 2008 Infinite Campus. All Rights Reserved. DL1305-1, DL Angel Lindsey Support Specialist K-12 Solutions Group.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
PHP meets MySQL.
Microsoft Access 2010 Building and Using Queries.
Attributes in ArcGIS. ArcGIS Attributes FID – ESRI’s internal identifier Shape – Actual spatial data.
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Working with the Data Table USINGQTP65-STUDENT-01A.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
When I want to work with SQL, I start off as if I am doing a regular query.
CCS – Mail Merge Mail Merge This presentation is incomplete without the associated discussion 1 Coloma Community Schools In-service 21 March 2014.
12 steps for Mail Merge Setup Mpact Magic. Step 1 Open Your MS Outlook program and put it an offline mode. Go to Main Menu >> File >> Work Offline.
MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
BR SQL SUPPORT I have a legacy application and I don’t intend to rewrite it any time soon. Why should I be concerned with this?
0 Copyright 2012 FUJITSU Interstage BOP SQL Query Tutorial Todd Palmer October 2012.
Module of the week Webform 7.x-4.0-alpha9 – admin/config/content/webform Add content types, choose allowed fields, default values and advanced options.
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
LINGO TUTORIAL.
Tutorial 1 Creating a Database
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
HR Operations-2.
Microsoft Office Access 2010 Lab 3
Millennium Create Lists in Action
Analyzing Data Module 4.
JDBC Database Management Database connectivity
Connect to SQL Server and run select statements
Managing Large Data Sets For Finance officers Sean p. Canning mpa, qpa
Access Tutorial 1 Creating a Database
Creating LOVs and Editors
Data Virtualization Community Edition
This shows the user interface and the SQL Select for a situation with two criteria in an AND relationship.
Access Creating a Database
Access Creating a Database
Building and Using Queries
SESSION 6 PREPARATION OF WCPFC Annual Report Parts 1
MySQL - Creating donorof database offline
Please use speaker notes for additional information!
Using SQL to Prepare Data for Analysis
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Access Tutorial 1 Creating a Database
MODULE 7 Microsoft Access 2010
Navya Thum February 13, 2013 Day 7: MICROSOFT EXCEL Navya Thum February 13, 2013.
Sirena Hardy HRMS Trainer
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Founded in Silicon Valley in 1984
Comparative Reporting & Analysis (CR&A)
From and Report.
Overview of Contract Association Batch Upload
Notes on SQL This slide show will introduce SQL using Access. It assumes only an introductory level of knowledge about Access.
Access Tutorial 1 Creating a Database
Guidelines for Microsoft® Office 2013
Access Tutorial 1 Creating a Database
Grauer and Barber Series Microsoft Access Chapter One
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
based on the content of the file.
Shelly Cashman: Microsoft Access 2016
Unit J: Creating a Database
Tutorial 8 Sharing, Integrating, and Analyzing Data
Access Click on file and then you want a new database.
Presentation transcript:

Dynamic Input with SQL Queries A look into the options of dynamic SQL queries and their applied uses.

Preparing the SQL query The BEGIN_REPLACE and END_REPLACE strings will be our targets for string replacement.

Preparing the Parameter .CSV Using a CSV to establish parameters is a great way to configure the dynamic input for your SQL query. In this example, we will be making a report that gathers information from the previous week’s data. In order to do this we need to establish parameters based on what day of the week it is.

Configuring the module. Begin by setting up a simple filter with a date time condition. Here we are going to use DateTimeFormat() to produce the day of the week and compare it against our parameters.

Set up the query Click edit, set up your connection, and paste in your SQL query.

Time to set up the query Select “Replace a Specific string” and we will Establish the conditions of String replacement.

Establish the string replacement We have 2 targets set up to be used for replacements. Each target must be typed just how it is in the query and make sure that you did not use a word that you will use elsewhere in the query by mistake.

Incorporating the Summary Tool In a case where we want to look at just certain records and we have a list, the summary tool can also be incorporated in this method. In this example, we will be using a .csv file, however any format that you can get into Alteryx will work, whether it’s a alteryx database file or an output from a SQL query.

Preparation It’s important to remember that we are adding this directly to a SQL query, so, syntax is very important. Make sure that you put your target field in quotes using the Formula tool.

Concatenation Add your Summary tool, then click Add > String > Concatenate. Make sure your separator is set to a comma so it functions correctly in the Where Clause.

Set up Query in Dynamic Input tool Set up your query with your target string. This time we will be targeting CASE_REPLACE

Multiple Techniques We can eliminate the Formula tool entirely by building it’s functions into the Summary tool’s concatenate functions. By using an apostrophe in start and end, as well as putting the apostrophes around the comma separator, we can actually achieve the same effect without using a formula tool.