30.01.2015 Views

Picture Perfect 4.6 User Manual - UTCFS Global Security Products

Picture Perfect 4.6 User Manual - UTCFS Global Security Products

Picture Perfect 4.6 User Manual - UTCFS Global Security Products

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 14<br />

Reports<br />

293<br />

{$time_range_exclusive|report.DateAndTime|report.Device|report.Host|report.UTC|de<br />

v_xact|host_xact|utc_xact}<br />

UI Control:<br />

Date and time control<br />

Output:<br />

Replaces tag with SQL clauses that correspond to Date and Time criteria selected in the control<br />

{$label_exclusive|}<br />

UI Control:<br />

Displays a text heading only<br />

Output:<br />

Replaces tag with 1=1<br />

{$yes_no_checkbox_exclusive||||field}<br />

UI Control:<br />

Displays a check box with the text label<br />

Output:<br />

Replaces tag with either checked value or unchecked value<br />

SQL keywords<br />

In an SQL select statement, only the SELECT clause and the FROM clause are required. The other<br />

clauses are optional.<br />

SQL is case sensitive. For example, if you specify %Door%, the query finds anything with the word<br />

Door in initial caps, but does not find the word DOOR in all caps. To include both, type:<br />

WHERE description = "%Door%" OR "%DOOR%"<br />

The SQL database stores information in tables. A table is a collection of information organized into<br />

columns and rows. Each table contains one or more columns. A column contains one specific type of<br />

information, such as last_name. Each row contains all the data about one of the records the table<br />

describes. A row contains one or more columns. In your SQL select statement, the SELECT clause<br />

limits the columns and the WHERE clause limits the rows.<br />

You can create direct relationships between tables when you query a database to generate a report.<br />

The report displays data from several different tables as if the data belongs to a single table.<br />

See Logical operators on page 295 and Relational operators on page 296 for information on<br />

describing relations between two values.<br />

SELECT<br />

Use the SELECT clause to find data from selected columns in a table. The report retrieves<br />

columns of data and lists the data under each column heading in the report. The sequence of<br />

column names in the SELECT clause determines the sequence of column headings on the report<br />

title bar.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!