Bookshelf Home | Contents | Index | PDF |
Siebel Business Analytics Server Administration Guide > SQL Reference > SQL Syntax and Semantics > SELECT List SyntaxThe SELECT list syntax lists the columns in the query. FROM Clause SyntaxThe Analytics Server accepts any valid SQL FROM clause syntax. You can specify the name of a catalog folder instead of a list of tables to simplify FROM clause creation. The Analytics Server determines the proper tables and the proper join specifications based on the columns the query asks for and the configuration of the analytics repository. WHERE Clause SyntaxThe Analytics Server accepts any valid SQL WHERE clause syntax. There is no need to specify any join conditions in the WHERE clause because the joins are all configured within the analytics repository. Any join conditions specified in the WHERE clause are ignored. The Analytics Server also supports the following subquery predicates in any conditional expression (WHERE, HAVING or CASE statements):
GROUP BY Clause SyntaxWith the Analytics Server's auto aggregation feature, there is no need to submit a GROUP BY clause. When no GROUP BY clause is specified, the GROUP BY specification defaults to all of the nonaggregation columns in the SELECT list. If you explicitly use aggregation functions in the select list, you can specify a GROUP BY clause with different columns and the Analytics Server will compute the results based on the level specified in the GROUP BY clause. For additional details, and some examples of using the GROUP BY clause in queries against the Analytics Server, see Rules for Queries with Aggregate Functions. ORDER BY Clause SyntaxThe Analytics Server accepts any valid SQL ORDER BY clause syntax, including referencing columns by their order in the select list (such as ORDER BY 3, 1, 5). |
Siebel Business Analytics Server Administration Guide |