What is a clause in a SQL report?

What is a clause in a SQL report?


In SQL a clause is a tool which allows specific parameters to be set on what results should be brought back in a SQL report. 

Examples of some of the clauses that can be used in SQL:

CLAUSE
WHAT DOES IT DO?
WHERE
A clause which filters results to exclude or include specific content defined by a rule.
JOIN
Two or more tables to be reported on in the same report.
GROUP BY
Collect all information with the same piece of data into a specific cell.
HAVING
Allows more limitations to be placed on the GROUP BY clause
ORDER BY
Show the results in a specific pattern. 

VersionDateDetailAuthor
1.013/07/26Document CreatedHolly Cooper



















































    • Related Articles

    • How to Find and Run a SQL Report

      What are reports for? Reports are used to find and present data about the information on the system in a structured manner. Reports use SQL to ask questions of the Koha database. How to find reports on your system Go to the Reports module on the Koha ...
    • Overview of some SQL Report Functions

      Overview of SQL Report Functions This FAQ is an example of a simple report describing the “anatomy” of the SQL code used.  Details about the different functions are outlined in the table below the report.  Some functions are mandatory to use in order ...
    • SQL Report Request Form

      How to submit an SQL report request The following are the steps of requesting a new SQL report to be created. 1. Log a ticket on the support portal to start the process. 2. Take a note of the ticket number. 3. Click the link below to be taken to an ...
    • How to view the content of an SQL report

      This document will outline how to view the content of an SQL report on the Koha system. This may be a precursor to editing the report or just a way to start studying the format of reports How to find reports on your system Go to the Reports module on ...
    • The two most common SQL statements within Koha application reports

      This document will outline the two most common statements which appear in SQL reports run in the Koha application. SQL reports within the Koha application can only be run the return information that exists in the database, however, other SQL tools ...