Entries by Oracle ERP Apps Guide

, , ,

Table Joins in SQL

The typical database contains many tables. Some smaller databases may have only a dozen or so tables, whereas other databases may have hundreds or even thousands. The common factor, however, is that few databases have just one table containing everything you need. Therefore, you usually have to draw data from multiple tables together in a […]

, , ,

Having Clause in SQL

 The SQL HAVING clause is used to restrict conditionally the output of a SQL statement, by a SQL aggregate function used in your SELECT list of columns.SELECT column1, column2, … column_n, aggregate_function (expression)FROM tablesWHERE predicatesGROUP BY column1, column2, … column_nHAVING condition1 … condition_n;You can’t specify criteria in a SQL WHERE clause against a column in […]

, , ,

Group Function in SQL

Group functions allow you to perform data operations on several values in a column of data as though the column were one collective group of data. These functions are also called group-by functions because they are often used in a special clause of select statements, called the group by clause.The syntax for the GROUP BY […]

, , ,

SQL WHERE Option

The SQL WHERE clause is used to select data conditionally, by adding it to already existing SQL SELECT query. We are going to use the Customers table from the previous chapter, to illustrate the use of the SQL WHERE command. Syntax SELECT column_name(s)FROM table_nameWHERE column_name operator valueWith the WHERE clause, the following operators can be […]