Reporting Functions & Operators

Size: px
Start display at page:

Download "Reporting Functions & Operators"

Transcription

1 Functions Reporting Functions & Operators List of Built-in Field Functions Function Average Count Count Distinct Maximum Minimum Sum Sum Distinct Return the average of all values within the field. Return the quantity of all values within the field. Return the count unique number of all values within the field. Return the maximum the field. Return the minimum the field. Return the sum of all values within the field. Return the sum unique number of all values within the field. List of Built-in Calculated Field Functions Function AVG AVG() Numeric, Money average of the values in a group. Null values are ignored. Numeric, Money COUNT COUNT() number of items in a group. Numeric. MAX MAX() maximum

2 Function value in a group. MIN MIN() minimum value in a group. SUM SUM() Numeric, Money. sum of all the values in a group. Null values are ignored. LEN LEN() Text. number of characters of the given text, excluding trailing blanks. Numeric. ROUND ROUND() Numeric, Money. rounded to the specified length or precision. CONCAT CONCAT(, [,...]) Text. concatenation of all the parameters in that exact order. Text. CONCAT('ab','cd',[SHIP COUNTRY]) GETDATE GETDATE() N/A. current system date and time. Datetime.

3 Function DATEADD DATEADD(datepart, number, date) datepart: the part of the date. (See table List of Dateparts and Abbreviations) number: the value used to increment datepart. Returns a new datetime value based on adding an interval to the specified date. Datetime. DATEADD(day,3,[DueDate ]) date: an that returns a datetime value. DATEDIFF DATEDIFF(datepart, startdate, enddate) datepart: the part of the date. (See table List of Dateparts and Abbreviations) startdate, enddate: s that return datetime values. number of date and time boundaries crossed between two specified dates. Numeric. DATEDIFF(day,[OrderDat e],[shipdate]) DATEPART DATEPART(datepart, date) datepart: the part of the date. (See table List of Dateparts and Abbreviations) date: an that returns a datetime value. Returns a number representing the specified datepart of the specified date. Numeric. CONVERT CONVERT(data_type, ) data_type: any data type. Explicitly converts an of one data type to another, similar to CAST..AS. data_type.

4 Function : any CAST..AS CAST( AS data_type) data_type: any data type. : any Explicitly converts an of one data type to another, similar to CONVERT. data_type. ISNULL ISNULL(check_, replacement_) check_ and replac ement_: any data type. check_expressi on if it is not NULL; otherwise, returns the replacement_e xpression. BETWEEN..AND test_ [NOT] BETWEEN begin_ AND end_ Returns TRUE if the test_expressio n is greater than or equal to the begin_expressi on and less than or equal to the end_expressio n, otherwise returns FALSE. AND boolean_ AND boolean_ Returns TRUE when both s are TRUE, otherwise returns FALSE.

5 Function OR boolean_ AND boolean_ Returns TRUE when either is TRUE, otherwise returns FALSE. DISTINCT DISTINCT () or DISTINCT Returns unique values. IFF IFF (boolean_, true_[, false_]) boolean_: true_, false_expre ssion: any data type except Image true_expressio n when boolean_expre ssion is TRUE, otherwise returns the false_expressi on. The highest precedence data type from data types of true_expressi on and false_expressi on. IF..THEN..ELSE..END IF (boolean_) THEN (true_) [ELSE (false_)] END boolean_: true_, false_expre ssion: any data type except Image true_expressio n when boolean_expre ssion is TRUE, otherwise returns the false_expressi on. The highest precedence data type from data types of true_expressi on and false_expressi on. CASE..WHEN..THEN..ELS E..END The highest precedence

6 Function CASE (input_) WHEN (when_) THEN (result_) [ n] [ELSE (else_result_)] END result_expressi on matching the first when_expressi on with the value equal to input_expressi on, otherwise return the else_result_ex pression. data type from data types of all result_exp ression s and else_result_ex pression. RUNNINGSUM RUNNINGSUM() Numeric, Money. sum of all the values of from the first row up to the current row. RUNNINGAVG RUNNINGAVG() Numeric, Money. average of all the values of from the first row up to the current row. RUNNINGCOUNT RUNNINGCOUNT() number of unique values of from the first row up to the current row. Numeric. List of Date parts and Abbreviations Datepart year Abbreviations yy, yyyy

7 quarter month dayofyear day week weekday hour minute second millisecond qq, q mm, m dy, y dd, d ww, wk dw hh mi, n ss, s ms Operators List of Operators Operator + (Text Concatenation) + Text + Text Concatenates two text values in that exact order. Not supported by Oracle and PostgreSQL. In cases where Oracle or PostgreSQL raises an error, please use the CONCAT function instead. Text To return employee s full name from [FirstName] and [LastName] columns: [FirstName] + ' ' + [LastName]

8 Operator + Add + Numeric/Money + Numeric/Money Datetime + Numeric Numeric + Datetime Adds two numbers or two currency amount, or adds a number of days to a date. The data type with the higher prededence. Two and a half days from hire date: [HireDate] (Subtract) - Numeric/Money - Numeric/Money Datetime - Numeric Subtracts two numbers or two currency amount, or subtracts a number of days from a date. The data type with the higher prededence. The number of products in stock after 10 have been taken out: UnitsInStock - 10 * (Multiply) * Numeric/Money * Numeric/Money Multiplies two numbers, or a currency amount with a number. Number Price after 15% discount: UnitPrice * 0.85 / (Divide) / Numeric/Money / Numeric/Money Divides one number or currency amount by another. Number Price after 50% discount: UnitPrice / 2 = (Equals) = Compares the equality in two s. Employees named John :

9 Operator The of the lower type is converted to the higher type in case data types are different. [FirstName] = 'John' > (Greater Than) > Compares if the the first is higher than the second The of the lower precedence data type is converted to the higher precedence data type in case data types are different. Products with more than 10 units in stock: UnitsInStock > 10 < (Less Than) < Compares if the the first is lower than the second The of the lower precedence data type is converted to the higher precedence data type in case data types are different. Products with less than 3 units in stock: UnitsInStock < 3 >= (Greater Than or Equal To) Compares if the the first is higher

10 Operator >= than or equal to the second The of the lower type is converted to the higher type in case data types are different. <= (Less Than or Equal To) <= Compares if the the first is lower than or equal to the second The of the lower type is converted to the higher type in case data types are different. <> (Not Equal To) <> Compares if the the first is not equal to the second The of the lower precedence data type is converted to the higher precedence data type in case data types are different. types are different. Products still available in stock: UnitsInStock <> 0

11 Attention with Possibly NULL Fields Special attention when checking if a field has value: the equal operator cannot used with NULL, IS NULL and IS NOT NULL should be used instead. To check if there is a photo for an employee in Northwind database: [Photo] IS NOT NULL Similarly, when using other comparison operators (e.g. Greater Than > ) on a field that possibly has NULL value: the NULL case must be tested separately. To check if for employees with hire date later than 2010, including unknown hire date: [HireDate] IS NULL OR [HireDate] > ' '

Insert Into Customer1 (ID, CustomerName, City, Country) Values(103, 'Marwa','Baghdad','Iraq')

Insert Into Customer1 (ID, CustomerName, City, Country) Values(103, 'Marwa','Baghdad','Iraq') Insert Into Customer1 (ID, CustomerName, City, Country) Values(103, 'Marwa','Baghdad','Iraq') Notes: 1. To View the list of all databases use the following command: Select * (or name) From Sys.databases

More information

Working with dates and times in SQL Server

Working with dates and times in SQL Server Working with dates and times in SQL Server SQL Server gives you plenty of power for working with dates, times and datetimes. Tamar E. Granor, Ph.D. One of the things that makes VFP easy to work with is

More information

This course is aimed at those who need to extract information from a relational database system.

This course is aimed at those who need to extract information from a relational database system. (SQL) SQL Server Database Querying Course Description: This course is aimed at those who need to extract information from a relational database system. Although it provides an overview of relational database

More information

Database Programming with SQL 5-1 Conversion Functions. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Programming with SQL 5-1 Conversion Functions. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Programming with SQL 5-1 Objectives This lesson covers the following objectives: Provide an example of an explicit data-type conversion and an implicit data-type conversion Explain why it is important,

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL

More information

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 3 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA

More information

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved. Restricting and Sorting Data Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort the rows that are retrieved by a query Use

More information

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12.

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12. The table below lists all of the Excel -style date and time functions provided by the WinCalcManager control, along with a description and example of each function. FUNCTION DESCRIPTION REMARKS EXAMPLE

More information

SQL. - single row functions - Database Design ( 데이터베이스설계 ) JUNG, Ki-Hyun ( 정기현 )

SQL. - single row functions - Database Design ( 데이터베이스설계 ) JUNG, Ki-Hyun ( 정기현 ) SQL Database Design ( 데이터베이스설계 ) - single row functions - JUNG, Ki-Hyun ( 정기현 ) 1 SQL Functions Input Function Output Function performs action that defined already before execution 2 Two Types of SQL Functions

More information

Top 10 SAS Functions in A brief summary of SAS Communities Survey - by Flora Fang Liu

Top 10 SAS Functions in A brief summary of SAS Communities Survey - by Flora Fang Liu Top 10 SAS Functions in 2017 A brief summary of SAS Communities Survey - by Flora Fang Liu 1 What are SAS Functions? Why use SAS Functions? What? SAS functions perform computations, data manipulation,

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management MASSACHUSETTS INSTITUTE OF TECHNOLOGY Sloan School of Management 15.561 IT Essentials Spring 2005 An Introduction to Microsoft Access * Lecture Script 1. Introduction Open Database: Northwind.mdb Select

More information

Defining Notifications Reminders

Defining Notifications  Reminders Defining Notifications E-mail Reminders www.docusnap.com TITLE Defining Notifications AUTHOR Docusnap Consulting DATE 07/07/2015 The reproduction and distribution of this document as a whole or in part

More information

ITEC212 Database Management Systems Laboratory 2

ITEC212 Database Management Systems Laboratory 2 ITEC212 Database Management Systems Laboratory 2 Aim: To learn how to use Single Row Functions and other important functions. In this handout we will learn about the single row functions that are used

More information

HOW TO CREATE AND MAINTAIN DATABASES AND TABLES. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL

HOW TO CREATE AND MAINTAIN DATABASES AND TABLES. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL HOW TO CREATE AND MAINTAIN DATABASES AND TABLES By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2009, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2009, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved. Restricting and Sorting Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort

More information

Conversion Functions

Conversion Functions Conversion Functions Data type conversion Implicit data type conversion Explicit data type conversion 3-1 Implicit Data Type Conversion For assignments, the Oracle server can automatically convert the

More information

Welcome to Top 10 SAS Functions

Welcome to Top 10 SAS Functions Welcome to Top 10 SAS Functions Goal and Agenda By the end of this meeting, you will understand 10 key SAS functions purpose, value and features. What are SAS functions? Why use them? Use Case Manipulating

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 4-3 Objectives This lesson covers the following objectives: Demonstrate the use of SYSDATE and date functions State the implications for world businesses to be able to easily

More information

Unit 4. Scalar Functions and Arithmetic

Unit 4. Scalar Functions and Arithmetic Unit 4. Scalar Functions and Arithmetic What This Unit Is About Scalar functions can be used to manipulate column or expression values. This unit will discuss the format and syntax of basic scalar functions.

More information

FORMULAS QUICK REFERENCE

FORMULAS QUICK REFERENCE FORMULAS QUICK REFERENCE Summary Working with formulas? Find out which operators can be used in which formulas and what each one does. Math Operators Operator + (Add) Calculates the sum of two values.

More information

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action queries and how to create queries that perform more

More information

Adobe EchoSign Calculated Fields Guide

Adobe EchoSign Calculated Fields Guide Adobe EchoSign Calculated Fields Guide Version 1.0 Last Updated: May, 2013 Table of Contents Table of Contents... 2 Overview... 3 Calculated Fields Use-Cases... 3 Calculated Fields Basics... 3 Calculated

More information

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces

More information

RMS Report Designing

RMS Report Designing RMS Report Designing RMS Report Writing Examples for designing custom report in RMS by RMS Support Center RMS uses the Report Builder report writing tool to allow users to design customized Reports using

More information

RETRIEVING DATA USING THE SQL SELECT STATEMENT

RETRIEVING DATA USING THE SQL SELECT STATEMENT RETRIEVING DATA USING THE SQL SELECT STATEMENT Course Objectives List the capabilities of SQL SELECT statements Execute a basic SELECT statement Development Environments for SQL Lesson Agenda Basic SELECT

More information

Advanced SQL Tribal Data Workshop Joe Nowinski

Advanced SQL Tribal Data Workshop Joe Nowinski Advanced SQL 2018 Tribal Data Workshop Joe Nowinski The Plan Live demo 1:00 PM 3:30 PM Follow along on GoToMeeting Optional practice session 3:45 PM 5:00 PM Laptops available What is SQL? Structured Query

More information

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access Databases and Microsoft Access Introduction to Databases A well-designed database enables huge data storage and efficient data retrieval. Term Database Table Record Field Primary key Index Meaning A organized

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Sections in this manual

Sections in this manual 1 Sections in this manual Argus Analytics 2 The service 2 Benefits 2 Launching Argus Analytics 3 Search Interface breakdown 4 Add-in Navigation 5 Search: Free text & Facet 5 Search: Facet filter 6 Filters

More information

Assignment 5: SQL II Solution

Assignment 5: SQL II Solution Data Modelling and Databases Exercise dates: March 29/March 30, 2018 Ce Zhang, Gustavo Alonso Last update: April 12, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 5: SQL II Solution This assignment

More information

SQL Quick Start 1 & 2. Presented By: Jim Mayes

SQL Quick Start 1 & 2. Presented By: Jim Mayes SQL Quick Start 1 & 2 Presented By: Jim Mayes Table of Contents PART 1 What is SQL?... 4 How is Information Stored in SQL?... 5 Is SQL a Foreign Language?... 5 How do I Learn the Database and Table Names?...

More information

T.Y.B.Sc. Syllabus Under Autonomy Mathematics Applied Component(Paper-I)

T.Y.B.Sc. Syllabus Under Autonomy Mathematics Applied Component(Paper-I) T.Y.B.Sc. Syllabus Under Autonomy Mathematics Applied Component(Paper-I) Course: S.MAT. 5.03 COMPUTER PROGRAMMING AND SYSTEM ANALYSIS (JAVA PROGRAMMING & SSAD) [25 Lectures] Learning Objectives:- To learn

More information

You can write a command to retrieve specified columns and all rows from a table, as illustrated

You can write a command to retrieve specified columns and all rows from a table, as illustrated CHAPTER 4 S I N G L E - TA BL E QUERIES LEARNING OBJECTIVES Objectives Retrieve data from a database using SQL commands Use simple and compound conditions in queries Use the BETWEEN, LIKE, and IN operators

More information

Tutorial 3 Maintaining and Querying a Database. Finding Data in a Table. Updating a Database

Tutorial 3 Maintaining and Querying a Database. Finding Data in a Table. Updating a Database Tutorial 3 Maintaining and Querying a Database Finding Data in a Table Must navigate to a record before view/delete/change it Find is a great way to navigate to a record But... Find can t: show matching

More information

Some Basic Aggregate Functions FUNCTION OUTPUT The number of rows containing non-null values The maximum attribute value encountered in a given column

Some Basic Aggregate Functions FUNCTION OUTPUT The number of rows containing non-null values The maximum attribute value encountered in a given column SQL Functions Aggregate Functions Some Basic Aggregate Functions OUTPUT COUNT() The number of rows containing non-null values MIN() The minimum attribute value encountered in a given column MAX() The maximum

More information

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR

DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR DATABASE MANAGEMENT SYSTEMS PREPARED BY: ENGR. MOBEEN NAZAR SCHEME OF PRESENTATION LAB MARKS DISTRIBUTION LAB FILE DBMS PROJECT INSTALLATION STEPS FOR SQL SERVER 2008 SETTING UP SQL SERVER 2008 INTRODUCTION

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Alexandra Roatiş David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2016 CS 348 SQL Winter

More information

CS 275 Winter 2011 Problem Set 3

CS 275 Winter 2011 Problem Set 3 CS 275 Winter 2011 Problem Set 3 Run the following quires in Oracle Application Express where appropriate. Cut and paste your query for each applicable question. For short answer or multiple choice type

More information

Links to Activities ACTIVITY 2.1. Links to Activities

Links to Activities ACTIVITY 2.1. Links to Activities ACCESS CREATING TABLES AND RELATIONSHIPS Section 2 0 1 Skills Create a table by adding records Change field names Insert and modify fields in Design view Create a table using Design view Set the primary

More information

Chapter 9 How to use functions

Chapter 9 How to use functions Chapter 9 How to use functions Murach's MySQL, C9 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Code queries that format numeric or date/time data. Code queries that require any of the

More information

TOPIC 2 DECIMALS (and INTRODUCTION TO FRACTIONS) WEEK 3

TOPIC 2 DECIMALS (and INTRODUCTION TO FRACTIONS) WEEK 3 TOPIC DECIMALS (and INTRODUCTION TO FRACTIONS) WEEK 3 Association between Fractions and Decimals is a fraction. It means divided by. If we divide by the result is not a whole number. It is a half of whole

More information

Getting Information from a Table

Getting Information from a Table ch02.fm Page 45 Wednesday, April 14, 1999 2:44 PM Chapter 2 Getting Information from a Table This chapter explains the basic technique of getting the information you want from a table when you do not want

More information

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Databases - 5. Problems with the relational model Functions and sub-queries

Databases - 5. Problems with the relational model Functions and sub-queries Databases - 5 Problems with the relational model Functions and sub-queries Problems (1) To store information about real life entities, we often have to cut them up into separate tables Problems (1) To

More information

SELF TEST. List the Capabilities of SQL SELECT Statements

SELF TEST. List the Capabilities of SQL SELECT Statements 98 SELF TEST The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer.

More information

Unit 6. Scalar Functions

Unit 6. Scalar Functions Unit 6. Scalar Functions What This Unit Is About This unit provides information on how to use various common scalar functions. What You Should Be Able to Do After completing this unit, you should be able

More information

Access Objects. Tables Queries Forms Reports Relationships

Access Objects. Tables Queries Forms Reports Relationships Access Review Access Objects Tables Queries Forms Reports Relationships How Access Saves a Database The Save button in Access differs from the Save button in other Windows programs such as Word and Excel.

More information

FOR MORE CLASSES VISIT

FOR MORE CLASSES VISIT BIS 345 Final Exam Guide Set 1 FOR MORE CLASSES VISIT www.bis345mentor.com 1. (TCO 1) Which of the following sets of SQL clauses represent the minimum combination of clauses to make a working SQL statement?

More information

1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions

1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions 1Z0-051 Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-051 Exam on Oracle Database 11g - SQL Fundamentals I 2 Oracle 1Z0-051 Certification

More information

Topic 8 Structured Query Language (SQL) : DML Part 2

Topic 8 Structured Query Language (SQL) : DML Part 2 FIT1004 Database Topic 8 Structured Query Language (SQL) : DML Part 2 Learning Objectives: Use SQL functions Manipulate sets of data Write subqueries Manipulate data in the database References: Rob, P.

More information

Flexible CSV CDR Importer

Flexible CSV CDR Importer Edition: 1.0 Release date: August 17, 2016 Smile version: 6.0 Published by Inomial Pty Ltd Suite 801, 620 Bourke St, Melbourne, Vic 3000, Australia www.inomial.com +61 3 9663 3554 sales@inomial.com support@inomial.com

More information

4.6.5 Data Sync User Manual.

4.6.5 Data Sync User Manual. 4.6.5 Data Sync User Manual www.badgepass.com Table of Contents Table of Contents... 2 Configuration Utility... 3 System Settings... 4 Profile Setup... 5 Setting up the Source Data... 6 Source Filters...

More information

Greenplum SQL Class Outline

Greenplum SQL Class Outline Greenplum SQL Class Outline The Basics of Greenplum SQL Introduction SELECT * (All Columns) in a Table Fully Qualifying a Database, Schema and Table SELECT Specific Columns in a Table Commas in the Front

More information

Datatype-Related Problems, XML, and CLR UDTs

Datatype-Related Problems, XML, and CLR UDTs Chapter 1 Datatype-Related Problems, XML, and CLR UDTs In this chapter: DATETIME Datatypes..................................................... 2 Character-Related Problems..............................................25

More information

Introduction to SQL Part 2 by Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford)

Introduction to SQL Part 2 by Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Introduction to SQL Part 2 by Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 3 Lecture Overview 1. Aggregation & GROUP BY 2. Set operators & nested queries 3. Advanced

More information

Analytics External Data Format Reference

Analytics External Data Format Reference Analytics External Data Format Reference Salesforce, Spring 18 @salesforcedocs Last updated: January 11, 2018 Copyright 2000 2018 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark

More information

Polaris SQL Introduction. Michael Fields Central Library Consortium

Polaris SQL Introduction. Michael Fields Central Library Consortium Polaris SQL Introduction Michael Fields Central Library Consortium Topics Covered Connecting to your Polaris SQL server Basic SQL query syntax Frequently used Polaris tables Using your SQL queries inside

More information

INTERMEDIATE SQL GOING BEYOND THE SELECT. Created by Brian Duffey

INTERMEDIATE SQL GOING BEYOND THE SELECT. Created by Brian Duffey INTERMEDIATE SQL GOING BEYOND THE SELECT Created by Brian Duffey WHO I AM Brian Duffey 3 years consultant at michaels, ross, and cole 9+ years SQL user What have I used SQL for? ROADMAP Introduction 1.

More information

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

SWITCH(DatePart(w,DateOfYear) IN(1,7),Weekend,DatePart(w,DateOfYear) IN(2,3,4,5,6),Weekday) AS DayType, SeQueL 4 Queries and their Hidden Functions! by Clark Anderson A friend recently exclaimed Can you really use this function in SQL! In this article of my series I will explore and demonstrate many of the

More information

SQL. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

SQL. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior SQL Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior 1 DDL 2 DATA TYPES All columns must have a data type. The most common data types in SQL are: Alphanumeric: Fixed length:

More information

Extending Ninox with NX

Extending Ninox with NX Introduction Extending Ninox with NX NX, the Ninox query language, is a powerful programming language which allows you to quickly extend Ninox databases with calculations and trigger actions. While Ninox

More information

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL ADVANCED

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL ADVANCED EXCEL ADVANCED Overview OVERVIEW... 2 ADVANCED FORMULAS... 4 VIEW THE PROJECT... 4 Viewing Available Excel Functions... 5 Help with Functions... 6 TEXT FUNCTIONS... 7 Text Functions Used in this Section:...

More information

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen LECTURE 9: INTRODUCTION TO SQL SELECT-FROM-WHERE STATEMENTS SUBQUERIES Set-up the database 1. Log in to your machine using

More information

Structured Query Language (SQL)

Structured Query Language (SQL) Structured Query Language (SQL) SQL Chapters 6 & 7 (7 th edition) Chapters 4 & 5 (6 th edition) PostgreSQL on acsmysql1.acs.uwinnipeg.ca Each student has a userid and initial password acs!

More information

Microsoft Access XP (2002) - Advanced Queries

Microsoft Access XP (2002) - Advanced Queries Microsoft Access XP (2002) - Advanced Queries Group/Summary Operations Change Join Properties Not Equal Query Parameter Queries Working with Text IIF Queries Expression Builder Backing up Tables Action

More information

chapter 2 G ETTING I NFORMATION FROM A TABLE

chapter 2 G ETTING I NFORMATION FROM A TABLE chapter 2 Chapter G ETTING I NFORMATION FROM A TABLE This chapter explains the basic technique for getting the information you want from a table when you do not want to make any changes to the data and

More information

Database Programming with PL/SQL

Database Programming with PL/SQL Database Programming with PL/SQL 2-2 Objectives This lesson covers the following objectives: List and define the different types of lexical units available in PL/SQL Describe identifiers and identify valid

More information

Constraints. Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers. John Edgar 2

Constraints. Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers. John Edgar 2 CMPT 354 Constraints Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers John Edgar 2 firstname type balance city customerid lastname accnumber rate branchname phone

More information

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1 Senturus Analytics Connector User Guide Cognos to Power BI 2019-2019 Senturus, Inc. Page 1 Overview This guide describes how the Senturus Analytics Connector is used from Power BI after it has been configured.

More information

Bridge. Calculated Fields Guide. Version

Bridge. Calculated Fields Guide. Version Bridge Calculated Fields Guide Version 2.5.103 Table of Contents Page i Table of Contents Table Of Contents I Introduction 1 Building Formulas 2 Operators 2 Simple Arithmetic Formulas 2 Placeholders Within

More information

DATABASE MANAGEMENT SYSTEMS

DATABASE MANAGEMENT SYSTEMS DATABASE MANAGEMENT SYSTEMS Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Departments of IT and Computer Science 2015 2016 1 The ALTER TABLE

More information

A variable should be added to the Action Flow, where you can bind it to one of the Recorder Variables and set its value and other properties.

A variable should be added to the Action Flow, where you can bind it to one of the Recorder Variables and set its value and other properties. Variables Using Variables from Action Library you can assign the following values to Recorder variables: Random value, Constant value, Expression result. Actions Library Actions Description How to Use

More information

Testpassport.

Testpassport. Testpassport http://www.testpassport.cn Exam : 1Z0-051 Title : Oracle Database: SQL Fundamentals I Version : DEMO 1 / 11 1. View the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS,

More information

Prophet 21 World Wide User Group Webinars. Barry Hallman. SQL Queries & Views. (Part 2)

Prophet 21 World Wide User Group Webinars. Barry Hallman. SQL Queries & Views. (Part 2) Prophet 21 World Wide User Group Webinars SQL Queries & Views (Part 2) Barry Hallman Disclaimer This webinar is an attempt by P21WWUG members to assist each other by demonstrating ways that we utilize

More information

ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

ITCertMaster.   Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way! ITCertMaster Safe, simple and fast. 100% Pass guarantee! http://www.itcertmaster.com Exam : 1z0-007 Title : Introduction to Oracle9i: SQL Vendor : Oracle Version : DEMO Get Latest & Valid 1Z0-007 Exam's

More information

Date and Time Functions

Date and Time Functions Date and Time Functions Introduction If you are using these functions in conjunction with either the Now() or Now_() functions, be aware that the time zone returned is the one configured on the machine

More information

Relational Database Management Systems for Epidemiologists: SQL Part I

Relational Database Management Systems for Epidemiologists: SQL Part I Relational Database Management Systems for Epidemiologists: SQL Part I Outline SQL Basics Retrieving Data from a Table Operators and Functions What is SQL? SQL is the standard programming language to create,

More information

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query 12 Advanced Queries SKILL SUMMARY Skills Exam Objective Objective Number Creating crosstab queries Create a crosstab query. 3.1.2 Creating a subquery Add fields. Remove fields. Group data by using comparison

More information

DB2 Function Conversion for Sybase ASE Users

DB2 Function Conversion for Sybase ASE Users DB2 Function Conversion for Sybase ASE Users ChangSung KANG, Kitty Lau IMTE Version 1.2 Date: July-01-2011 Page:1 Version: 1.1 Document History Version Date Author Comment Authorization 1.0 07/01/2011

More information

Declaration and Memory

Declaration and Memory Declaration and Memory With the declaration int width; the compiler will set aside a 4-byte (32-bit) block of memory (see right) The compiler has a symbol table, which will have an entry such as Identifier

More information

Using SqlRender Martijn J. Schuemie

Using SqlRender Martijn J. Schuemie Using SqlRender Martijn J. Schuemie 2017-11-07 Contents 1 Introduction 1 2 SQL parameterization 1 2.1 Substituting parameter values.................................... 1 2.2 Default parameter values......................................

More information

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH 2017 Institute of Aga Network Database LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece of

More information

In this task, you specify formatting properties for the currency and percentage measures in the Analysis Services Tutorial cube.

In this task, you specify formatting properties for the currency and percentage measures in the Analysis Services Tutorial cube. AL GHURAIR UNIVERSITY College of Computing CIS 303 Data Mining Week 3: Modifying Measures, Attributes and Hierarchies After defining, deploying, and processing your initial cube, and then reviewing dimension

More information

1. Introduction to Microsoft Excel

1. Introduction to Microsoft Excel 1. Introduction to Microsoft Excel A spreadsheet is an online version of an accountant's worksheet, which can automatically do most of the calculating for you. You can do budgets, analyze data, or generate

More information

Integration Adaptor. Release

Integration Adaptor. Release Integration Adaptor Release 14.2.00 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred to as the Documentation ), is for your informational

More information

Chapter-14 SQL COMMANDS

Chapter-14 SQL COMMANDS Chapter-14 SQL COMMANDS What is SQL? Structured Query Language and it helps to make practice on SQL commands which provides immediate results. SQL is Structured Query Language, which is a computer language

More information

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy Reading SAS Data Sets and Creating Variables Objectives Create a SAS data set using another SAS data set as input. Create SAS variables. Use operators and SAS functions to manipulate data values. Control

More information

Guide to MSRS Report Standards

Guide to MSRS Report Standards Guide to MSRS Report Standards This document contains general information about information that appears on most MSRS reports. This information will not be listed in each MSRS report design document; therefore,

More information

MIS 5208 L5 ACL: Working with Expressions

MIS 5208 L5 ACL: Working with Expressions MIS 5208 L5 ACL: Working with Expressions Audit Command Language Fundamentals Ed Ferrara, MSIA, CISSP eferrara@temple.edu Working with Expressions Expressions are statements used primarily to create filters

More information

Assignment 6: SQL III Solution

Assignment 6: SQL III Solution Data Modelling and Databases Exercise dates: April 12/April 13, 2018 Ce Zhang, Gustavo Alonso Last update: April 16, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 6: SQL III Solution This assignment

More information

Using the Set Operators. Copyright 2006, Oracle. All rights reserved.

Using the Set Operators. Copyright 2006, Oracle. All rights reserved. Using the Set Operators Objectives After completing this lesson, you should be able to do the following: Describe set operators Use a set operator to combine multiple queries into a single query Control

More information

ACCESS isn t only a great development tool it s

ACCESS isn t only a great development tool it s Upsizing Access to Oracle Smart Access 2000 George Esser In addition to showing you how to convert your Access prototypes into Oracle systems, George Esser shows how your Access skills translate into Oracle.

More information

CST272 SQL Server, SQL and the SqlDataSource Page 1

CST272 SQL Server, SQL and the SqlDataSource Page 1 CST272 SQL Server, SQL and the SqlDataSource Page 1 1 2 3 4 5 6 7 8 9 SQL Server, SQL and the SqlDataSource CST272 ASP.NET Microsoft SQL Server A relational database server developed by Microsoft Stores

More information

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages

EnableBasic. The Enable Basic language. Modified by Admin on Sep 13, Parent page: Scripting Languages EnableBasic Old Content - visit altium.com/documentation Modified by Admin on Sep 13, 2017 Parent page: Scripting Languages This Enable Basic Reference provides an overview of the structure of scripts

More information

Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next

Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next Table of Contents Introduction...1 Using VBA Functions...1 Accessing Visual Basic in Excel...2 Some Example Functions...3 Random Numbers...4 RandomDouble...4 randomint...4 Using the random numbers...5

More information

Creating SQL Server Stored Procedures CDS Brownbag Series CDS

Creating SQL Server Stored Procedures CDS Brownbag Series CDS Creating SQL Server Stored Procedures Paul Litwin FHCRC Collaborative Data Services CDS Brownbag Series This is the 11th in a series of seminars Materials for the series can be downloaded from www.deeptraining.com/fhcrc

More information

Institute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH

Institute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH Institute of Aga 2018 Microsoft SQL Server LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece

More information

Queries with Multiple Criteria (OR)

Queries with Multiple Criteria (OR) Queries with Multiple Criteria (OR) When a query has multiple criteria, logical operators such as AND or OR combine the criteria together. This exercise has two example questions to illustrate, in two

More information

Database Languages. A DBMS provides two types of languages: Language for accessing & manipulating the data. Language for defining a database schema

Database Languages. A DBMS provides two types of languages: Language for accessing & manipulating the data. Language for defining a database schema SQL 1 Database Languages A DBMS provides two types of languages: DDL Data Definition Language Language for defining a database schema DML Data Manipulation Language Language for accessing & manipulating

More information