Training Course #1: Query Designing Training Course #1: Query Designing Please view in slide show Page Down/Up or mouse click to navigate through the show.

Slides:



Advertisements
Similar presentations
Welcome to Rotor Clips Online Services Tutorial username ************ You will first be prompted to enter your user name and password. Your user name.
Advertisements

Microsoft® Access® 2010 Training
CC SQL Utilities.
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Introduction to Structured Query Language (SQL)
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Introduction to Structured Query Language (SQL)
Setting Up the INVENTORY & SERVICES Module Slideshow 8 A.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Access Tutorial 3 Maintaining and Querying a Database
NexDimension Presents: KnowledgeSync “Turning Information Into Action” “Turning Information Into Action”
©2008 TTW Where “Lean” principles are considered common sense and are implemented with a passion! Product Training Sales Invoices.
MS Access: Database Concepts Instructor: Vicki Weidler.
BSC Food Distribution 8181 NW 36 Street, Suite 14-D Doral, FL Phone: Fax:
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
DAY 16: ACCESS CHAPTER 2 Tazin Afrin October 10,
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
VA Advantage!
Copyright CovalentWorks Training Guide for Invoices MYB2B Powered by CovalentWorks.
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 Updated 4/11.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Queries. What is a query? A query is actually the name for any database manipulation operation. The most commonly used type is a select query, which is.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
1. To start the process, Warehouse Stationery (WSL) will invite you to use The Warehouse Group Supplier Electronic Portal and will send you the link to.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
Setting Up Alerts and Dashboard Links. When you first start using the Active Orders system, you will need to establish the settings for two types.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Access 2007 Tutorial (Part II) CIS*1000*DE.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
Online Catalog Tutorial. Introduction Welcome to the Online Catalog Tutorial. This is the place to find answers to all of your online shopping questions.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/All Programs/Microsoft Office/Microsoft Office.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
PestPac Software. Leads The Leads Module allows you to track all of your pending sales for your company from the first contact to the close. By the end.
Extracting Information from an Excel List The purpose of creating a database, or list in Excel, is to be able to manipulate the data elements in ways that.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
3M Partners and Suppliers Click to edit Master title style USER GUIDE Supplier eInvoicing USER GUIDE The 3M beX environment: Day-to-day use.
Invoices and Service Invoices Training Presentation for Raytheon Supply Chain Platform (RSCP) April 2016.
How to Create eInvoices in SCP-RR Training Presentation for Supply Chain Platform: Rolls-Royce January 2016.
Invoices Training Presentation for Supply Chain Platform: BAE Systems May 2015.
Inventory Chapter 3. PAGE REF #CHAPTER 3: Inventory SLIDE # 2 2 Objectives Activate the Inventory function Set up Inventory Items in the Item list Set.
Overview Rental Quote Overview
Project Management: Messages
Active Orders Supplier Administrator Training Getting Started Activities This training presentation describes the Getting Started activities that will.
Creating and Modifying Queries
Tutorial 3 – Querying a Database
Vineyardsoft Corporation Presents: KnowledgeSync 2000
Exploring Microsoft Office Access 2010
New Perspectives on Microsoft
Presentation transcript:

Training Course #1: Query Designing Training Course #1: Query Designing Please view in slide show Page Down/Up or mouse click to navigate through the show

An opportunity overdue for closing An opportunity overdue for closing Sales reps with fewer than 6 activities this week Sales reps with fewer than 6 activities this week A client whose credit status was changed A client whose credit status was changed KnowledgeSync lets you design queries. The only requirement for designing queries is a thorough understanding of an applications database schema. Queries can check for virtually any condition of data in an application, such as: A query identifies a condition of data within an application that should cause an event to trigger. Queries

An event may use multiple queries to check for a complex combination of conditions, such as: Checking for customers who have purchased < $10,000 over the last year, but have called into support more than 12 times. A query is one component of an event. A single event may use a single query, or it may use multiple queries. Queries & Events (I)

An event may also use multiple queries to check for conditions across multiple applications, such as: An event that looks for customers who have pending sales (in a CRM application) But are also on credit hold (in a financial application) Queries & Events (II)

A single query may also be used in multiple events. For example, a query that checks for pending sales > x dollars may be used in: An event that looks for sales > $10,000 and in An event that looks for sales > $25,000 and in An event that looks at sales > $50,000 Queries & Events (III)

Designing a Query (click here) Please select the component of KnowledgeSync Query Designing that you would like to learn about next: Designing Linked Queries (click here) What to Do Next (click here) Query Designing Helpful Hints (click here) Exit Presentation Tour Menu

All query designing is done in the KnowledgeSync Event Manager. Log into that module (username Admin, no password). You will be presented with a window like the following: How to Begin

Return to Tour Menu We will design a query for the Training application. Click on the plus sign (+) next to the Training Application in order to display the sub-branches beneath it.

Well be working in the Query Definitions branch. Click on the Query Definitions branch to display a list of pre-defined queries for the Training application. Return to Tour Menu

Queries can be divided into three groups: Record-Level Queries Aggregate Queries Value-Change Queries Return to Tour Menu

Record-level queries are those that are triggered by the condition of individual database records. These queries look for specific conditions in database records, and, if those conditions are met, the query is triggered. (The queries with the arrows pointing at them are record-level queries.) Return to Tour Menu

Aggregate queries are those that are triggered by a group of records that meet a certain threshold. These queries look for specific conditions in database records, then perform an aggregate test on that group of records, and, if both the record-level and aggregate conditions are met, the query is triggered. (The queries with the arrows pointing at them are aggregate queries.) Return to Tour Menu

Value Change queries are those that are triggered when a records value has been changed. These queries are very useful, as they enable you to detect when someone has changed the value of any field in an application. (The queries with the arrows pointing at them are value-change queries.) Return to Tour Menu

1)The list on the right shows examples of the types of conditions that you can detect using a query. 2)Click on the New Query Definition button at the top-left of this window to create a new query... Return to Tour Menu

When designing a query, the first thing you specify is the querys name and whether it can be used in an event. Return to Tour Menu

The Active flag simply indicates that this query is eligible to be used in one or more events. Return to Tour Menu

KnowledgeSync automatically displays all of the tables from the corresponding application. The first step in designing a query is to identify which tables contain the information you wish to test against for certain conditions. You simply click on the table name you wish to include in this query, and then click on the Add Table button. Return to Tour Menu

This query will be designed to retrieve any orders that were picked today but have not been invoiced. We select the Order Header table since that is where general order information is stored. We select the AR Customer table since that lets us retrieve the customers name. (The orders table stores only the customers account number.) And we select the Salesperson table since that lets us retrieve the name of the salesrep associated to the order. Return to Tour Menu

1) If multiple tables are selected, KnowledgeSyncs intelligent linking wizard helps you link (or join) the tables together. 2) Its VERY important which table you select FIRST when creating these links. You MUST specify the querys primary table – that is, the table that contains the records that will cause this query to trigger. Since this query is designed to retrieve orders, the Orders table must be the first table we link from. Return to Tour Menu

Click on the Add Table Link button. Return to Tour Menu

Since this is our first link, we start out by choosing the Orders table. Return to Tour Menu

KnowledgeSync automatically fills in the Link to table name, which we can either keep or override. Return to Tour Menu

Tables are linked together via a common field (column) of data. Once we specify the name of the column in the Orders table that contains the customer number, KnowledgeSync automatically searches for (and loads) the corresponding field from the Customer table. (And the Link Type automatically defaults to Left Outer Join which is the standard linking method in business applications.) Return to Tour Menu

Once we save our first link, we are ready to follow the same steps to link the Orders and Salesreps tables. Return to Tour Menu

Note that if the database (or ODBC driver) that you are using does not support standard linking syntax, you can click on the checkbox below and manually enter the SQL from clause that links the tables together. Return to Tour Menu

The Columns tab is where you select the fields of data that you might wish to include in an outgoing alert message and in an events response actions when this querys conditions are met. The list titled Available Columns to Query at the top of this tab is a list of all the fields of data from the tables you selected previously. Return to Tour Menu

For example, if you wish to use the customers order number in an alert message or response action, you simply highlight the corresponding field in the list at the top of this window and click on the button called Add Column to Query. Return to Tour Menu

We would continue adding fields until we had all the information that we might wish to use in an events alert messages or response actions. Return to Tour Menu

When creating a record-level query, the Column Type field for all the columns is always left as Normal. This means that KnowledgeSync will retrieve the actual value of that column. Return to Tour Menu

When creating an aggregate query, you can choose from five additional Column Types. Typically, an aggregate query checks for conditions such as: -- More Than $50,000 in sales last week -- An average discount percent greater than 7% -- More than 25 support calls this week Here are a few examples: Return to Tour Menu

This query uses an aggregate to summarize (or total) the forecast sales per salesrep. This first column selected indicates what field will have its value summarized. The second column selected indicates how the summarized total will be grouped. (Per salesrep) If the second column had been company name instead of salesrep, the sales would be totaled per company instead of per salesperson. (And if company is chosen as a third column, you will get a list showing the forecast sales per salesrep and then – within each salesrep – you would see the sales further broken down by company.) Return to Tour Menu

This query identifies any support reps whose average call duration is greater than x minutes. This first column indicates that the average call time will be determined. The second column indicates that the average time will be grouped per support rep. If the second column had been customer name instead of support rep, the average call duration would be calculated per customer instead of per support rep. Return to Tour Menu

This query counts the number of activities per salesrep and identifies anyone who has fewer than x scheduled activities. When using the count function, you should always count the column that uniquely identifies each record within a table (e.g., order ID, customer ID, activity ID, etc.). The second column indicates how the counted records will be grouped. (Per salesrep) If the second column had been activity priority instead of salesrep name, the activities would be counted per priority instead of per salesperson. (And if priority is chosen as a third column, you will get a list showing the number of activities per salesrep – broken down by priority.) Return to Tour Menu

Sometimes youll find that an application uses column names that are cryptic or difficult to understand. In some applications, column names with multiple words are all squeezed together. Using the Customized Name field, we can change the default names to something more intuitive, or more readable. Return to Tour Menu

Note how we have modified the column names to make them clearer. (Since some ODBC drivers dont like blank spaces in a columns customized name, you should use the underline character to separate words.) Return to Tour Menu

Notice the Unique column. When KnowledgeSync finds a record that meets a querys criteria, the record is considered triggered. You need to tell KnowledgeSync how it can remember which records have been triggered. This is what the Unique checkbox is for. Return to Tour Menu

Since the Order Number uniquely identifies each order, it will also allow KnowledgeSync to remember which order records have been triggered. And so we place a checkmark in the Unique column for the Order Number field. Return to Tour Menu

Finally, note how you can create columns that use calculations to derive entirely new values. In this example, the query is multiplying an opportunitys close probability times the forecast amount of the sale (and then is multiplying that total by.01) to derive the weighted value of the sale. Return to Tour Menu

When KnowledgeSync sends out an alert message, it can roll-up the details of multiple records into a single message. As a result, you need the ability to specify the order in which the triggered records are displayed. This is called the sorting order. Return to Tour Menu

In the case of this query, we might want to list the matching orders according to their order date, with the earliest orders listed first. Just like in the Columns tab, we can sort by any fields from the tables we selected. In the Sort Direction field, we can choose either Ascending or Descending. Return to Tour Menu

You can even specify nested sorting. In this query, if multiple orders have the same order date, the orders will then be listed in the alphabetic order by the customers name. Return to Tour Menu

The Filters tab is the most important part of a query. It is where you specify what conditions have to occur in order for the query to be triggered. The way a filter works is for you to specify a field, (such as order total) an operator (such as is greater than) and a compare value (such as 1000 dollars). Heres how its done... Return to Tour Menu

The list of Available Columns to Filter lists all of the fields from the tables you selected for this query. You start by selecting the field you wish to test for a specific condition. Return to Tour Menu

A filter can retrieve records that meet a certain condition (is) or it can retrieve records that do not meet a certain condition (is not). Return to Tour Menu

KnowledgeSync supports all standard operators, including checking for records with a null or blank value. Return to Tour Menu

A filters Compare Value can contain different types of values. For starters, you can compare the value in a field against a constant value. In this example, the order status must be equal to Picked. Return to Tour Menu

You can compare the value in one field against the value in another database field. In this example, note how the query is checking to see if an items on-hand quantity is less than its re-order level. Return to Tour Menu

You can even compare the calculated value of two or more fields against the value of a constant, against the value of another database field, or against the value of another calculated field. In this example, the filter is adding the number of units on hand to the number of units on purchase order, and is then comparing that total to see if it is less than the quantity on back order plus the quantity on existing sales orders. Return to Tour Menu

KnowledgeSync also lets you perform date-related comparisons using an extensive list of date variables. If you click on the list button that appears in this field, youll be presented with a window like the following... Return to Tour Menu

And over on the left you can choose from a wide variety of date substitution variables so that KnowledgeSync can automatically determine the dates that it should use in this query. Return to Tour Menu

And so you can identify important business events that occur today, tomorrow, yesterday, or even from last Monday through last Friday. You can even identify events that have (or have not) occurred within the past x days or that will occur within the next y days. Return to Tour Menu

KnowledgeSync also lets you query the underlying database for a list of possible values for a field. If you click on the list button that appears in this field, youll once again see the following window... Return to Tour Menu

Up in this field, you can display a list of valid field values from your underlying database. Return to Tour Menu

Lastly, you can soft-code a filter with a compare value of a question mark. A compare value of ? indicates that the value for this filter will be specified on the event level, when this query is used within an event. The benefit of using the ? as a filter compare value is that it allows a single query to be used in multiple events. (E.g., this query could be used in one event that looks at orders shipped today, in another event that looks at orders shipped yesterday, and in a third event that looks at orders shipped last week.) Return to Tour Menu

Although KnowledgeSync automatically identifies whether a field contains character, date, or numeric data, you can change the way KnowledgeSync views that data to create even more flexible query filters. Return to Tour Menu

KnowledgeSync also provides the ability to group filters based on and/or relationships. Depending on the type of grouping you wish to do, you can accomplish it either via linear and/or logic, or you can simply insert parentheses around the filters you wish to group together. Return to Tour Menu

If you create filters whose value will be specified on the event level (i.e., filters with a compare value of ?), you can specify the prompt that will appear on the event level when a value needs to be supplied for this filter. When this query is used within an event, the user creating the event will be prompted to enter a selected product, a begin date range, and an end date range. Return to Tour Menu

The button at the lower right is what enables you to configure a query to check a field to see if its value has been changed. Return to Tour Menu

The fields listed on the left are those that can be monitored for a change to their value. Return to Tour Menu

The fields selected on the right are those that you have chosen to be monitored for changes to their value. Its worth noting that KnowledgeSync can not only determine when a field has had its value changed, but also determine when a field has had its value changed to one or more specific entries. Return to Tour Menu

The Sub Filters tab is used only with aggregate queries (such as testing for more than 6 orders shipped late last month. Since this is a record level query that uses no aggregate functions, this tab is left blank. Return to Tour Menu

Demo: Event Queries The SQL tab lets you see what KnowledgeSync is doing behind the scenes in this query. Without KnowledgeSyncs step-by-step Query Designer, this is what youd have to do manually to achieve the same results as the query. (And its also worth noting that the checkbox at the lower left of this window gives technical users the ability to directly edit the SQL syntax for this query, would they wish to do so.) Return to Tour Menu

Demo: Event Queries The Preview tab lets you test the results of your query. This is a very useful way of ensuring that your query retrieves only the records you want it to. This is the conclusion of the demonstration on how queries are created. Click here to go back to the Tour Menu and explore other aspects of Query Designing. Exit Presentation Return to Tour Menu

In KnowledgeSync, a single event may use multiple queries to identify complex conditions within a single application. Send an alert about any clients with more than $250,000 in historical sales and have at least one open sales opportunity of at least $30,000. For Example: Linked Queries Return to Tour Menu

Linked queries may also be used to create events that combine data across multiple applications. Send an alert about any clients with pending sales opportunities (in a CRM application) and are on credit hold (in a financial application). For Example: Cross Application Linked Queries Return to Tour Menu

Query #1: More Than $250,000 in Historical Sales... Query #2:... have a Pending Sale > $30,000 Query #1: Pending Sales (in a CRM App)... Query #2:... are on Credit Hold (in a Financial App) and When using multiple queries, the first step is to identify the conditions you wish to check for Clients With... Identify the Conditions Return to Tour Menu

Query #1: More Than $250,000 in Historical Sales Query #2: And Have a Pending Sale > $30,000 Query #1: Pending Sales (in a CRM App) Query #2: And Are on Credit Hold (in a Financial App) Contact.ClientID The second step is to identify the field (or fields) that link data from the two queries together Clients With... Account.AccountNo Identify Common Field(s) Return to Tour Menu

Condition: Clients With > $250,000 in Historical Sales and a Pending Sale >$30,000 Filter: Query #2 Contact.ClientID is the same as the Query #1 Contact.ClientID The final step is to create a filter in query #2 that links it to query #1 Condition: Clients With Pending Sales and on Credit Hold Filter: Query #2 Account.AccountNo is the same as the Query #1 Contact.ClientID Link Query #2 to Query #1 Return to Tour Menu

Heres an event that gets triggered if a client has a new sales opportunity created for them (in a CRM application) but happens to be on credit hold (in a financial application). The first step is to review the query that checks for new sales opportunities in the CRM application... Return to Tour Menu

The first query that we need to design is one that identifies clients with newly-created sales opportunities. Return to Tour Menu

This query retrieve all newly-created sales for each client. Because we will be using this query to feed information into a following query, we need to consider what field in this query will link to a field in the second query. In this example, we want to link clients in the CRM application with clients in the financial application. Thus we will use the ACCOUNT field as the linking field. (The linking field is always referenced by its Customized Name) You can use any field to link one query with another. Return to Tour Menu

Aside from making a note of the linking fields customized name, there is nothing special that we need to do in this first query. Return to Tour Menu

Our next step is to design the link to query – this is the one that will receive data from the first query and use that data as further selection criteria. Note that link to queries cannot be used alone; they are usable only when preceded by another query that feeds them the appropriate data. As a result, it is usually a good idea to identify a link to query by some unique text in its name. Return to Tour Menu

Like any other query, the link to query is designed to include the specific fields of data you require. Return to Tour Menu

Heres the key to the link to query: The first filter specifies that this query will retrieve only those clients on credit hold. The second filter specifies that this query will retrieve only those customers (on credit hold) who were also retrieved by the first (or preceding) query. And so, to link one query to another, all you need to do is: 1)Identify the two fields that link the queries together 2)Select the first field as a column in query #1 3)Select the second field as a filter in query #2 and compare it to the customized name of the linking field from query #1 (enclosed within {} symbols) Return to Tour Menu

There is one final step: choosing both the queries for a single event. One word of warning: Be sure to choose the queries in the right order. If the link to query is specified first, youll never get any matching records! Return to Tour Menu

Query Tables: You can select the same table multiple times. For example: You have a query that checks for activities created by one salesperson and assigned to another. You want to send an alert message that contains both the creators name and the assignees name. You choose the activity table and the salesrep table (the salesrep table contains the salesreps names.) You need to link from the activity table to the salesrep table twice; once to get the creators name and once to get the assignees name. However, ODBC does not allow you to link to the same table name twice. You need to use a table alias. In KnowledgeSync, you can select the same table name multiple times; after the first selection, KnowledgeSync will ask you to supply an alias name for the previously selected table. You may now do your links. Helpful Hints Return to Tour Menu

Query Links: 1.Order of Tables: A querys primary table must be the first listed in the Links tab. For example, a query that retrieves orders that are shipped late uses the orders, customers, and salesreps tables. As you specify your links, be sure that the orders table is the first table in the first link you create. 2.Optimizing Processing: If you have a choice as to the order of the tables you are using, select the tables that retrieve the fewest number of records first. This means that successive filters on other tables will go that much faster. 3.Manual Linking: If you need to manually specify the linking syntax, simply type in everything that would follow the word from in a SQL statement. Do not include the word from in your statement. 4.Overriding the Link Type: In general, dont do it unless youre sure of yourself or have spoken with Vineyardsoft support. Helpful Hints Return to Tour Menu

Query Columns: 1.Editing Selected Columns: Once you have selected a column, you can edit it within the grid. You can create columns that include arithmetic expressions, SQL expressions, or columns that are calculations of multiple fields. Simply click next to the selected column name and start typing. 2.Customized Names: Different databases (and ODBC sources) handle customized names slightly differently. It is suggested that you not embed blanks within customized names, and that you not make them overly long. 3.Multi-Field Uniques: KnowledgeSync allows only a single column to be selected as a unique. If you have a table that uses multiple columns as the unique value, you can create a column that concatenates these two fields into one – and then identify that field as the unique column. 4.Add All Columns to Query: This button is very handy if you dont know what data is stored in a tables fields. Simply select the table in question, click on the Add All Columns to Query button and click on the Preview tab. Helpful Hints Return to Tour Menu

Query Filters: 1.Editing Filter Columns: Probably the most powerful and little-known function within the Filters tab is the ability to edit a column once you have selected it for filtering. You can create filters that combine values from multiple fields, or that use SQL operators for even more sophisticated testing of conditions. 2.Checking for Blanks/Nulls: If you wish to check for a field value that is blank or null, you have two ways to do it. First, you can specify a filter using an operator of null. Secondly, you can specify a filter using an operator of is equal to and then place a blank space in the Compare Value field. 3.Date Ranges: If you would like to create a query that accepts a date range, it is suggested that you use two filters off of the same field (one filter testing date values greater than or equal to x and another filter testing date values of less than or equal to x). The following slides illustrate some of the more interesting filter conditions. Helpful Hints Return to Tour Menu

This query has a filter that uses an SQL operator to calculate the number of days between the current date and the date on which an order was placed. Return to Tour Menu

This query has a filter that adds the number of units of a product that are on order from a supplier to the number of units that are in stock and checks to see if that total is less than the products reorder (or minimum) stock level. Return to Tour Menu

And here is a query that subtracts the cost of a sale from the sale price and (thru a few other arithmetic functions) deduces the net profit percent. Note that by using the ? in the Compare Value fields, this one query can be used in many different events; each checking for a different percent range of net profit. Return to Tour Menu

Lastly, be aware that different databases (and ODBC drivers) support different operations and syntax in these query filters. If you have questions about what operators you can use in your filters, please contact the Vineyardsoft support team. Return to Tour Menu

The best way to proceed from here is to start building queries. 1.Focus on Query Designing: Dont worry about the events for now; build and preview a whole bunch of queries. Create record-level queries, aggregate queries, and queries that include more complex filters. Once you master query designing, the rest is a piece of cake! 2.Start Simple: You can always add tables, columns, and filters to a query. Start off by choosing just one table, a few columns, and one or two filters. Preview your results. If you like what you see, go on from there. 3.Use the Sample Database: If you dont have easy access to an ODBC-compliant database, use the KS_Sample.mdb that is included in the KnowledgeSync data directory. Its a mini-CRM database and is great for practice. 4.Dont Forget the Tutorials: KnowledgeSync includes tutorials (and pre-configured EventPaks) for the sample application, Sage MAS 90/200/500, Sage CRM SalesLogix, Microsoft Dynamics GP (Great Plains), Microsoft Dynamics CRM, and many other applications. Where to Go From Here Return to Tour Menu

Thank You Vineyardsoft Corporation Return to Tour Menu