Relational query syntax introduction
SELECT This, followed by the
SQL commands for column definitions and search criteria. If the SQL statement includes a
JOIN clause, the reference to This must be fully qualified with
a table name, such as CustomObject.This.
Here are some examples of different types of syntax:
| A simple query |
|
|---|---|
| A table join (to find unfiled custom objects) |
|
| Date comparisons |
|
| Custom search functions |
In the following example, the custom search function is
CmRpt::FormatDate. For
information about search functions, see Creating custom search functions.In the following example, the custom search function is
NewRpt::UserRecord. This function implements a Java™ code or Java script handler to populate columns in
a dimension table. It is an example of finer aggregation because it groups by three different
entities. The disadvantage of such a search is that it takes longer to run and populates a lot more
rows. But it has the advantage of allowing for greater drill-down as well as slicing and dicing
capabilities in OLAP reporting tools such as IBM®
Cognos® Business Intelligence. |
| Full-text search (CBR queries) |
Full-text searches use the |
| Virtual table |
A virtual table expression can be used in the FROM clause in place of a class name. The virtual
table expression has the
form:
The
virtual table handler which implements the virtual table defines the namespace and name of the
virtual table.The optional You can include zero or more parameters separated by commas. Each parameter must be a literal constant and must be in the standard format accepted in Content Engine SQL. The number and the datatype of the parameters can vary between virtual tables. The following is an example of the vector search virtual table that is defined by the GenAI
Extensions
add-on:
|