DML

SQL WHERE || DB2 for i SQL

Using WHERE Clause in SELECT statement in DB2 for i SQL The WHERE clause can be used to specify the search condition that identifies the row or ro…

SQL GROUP BY || DB2 for i SQL

GROUP BY clause in DB2 for i SQL The GROUP BY clause allows us to group identical rows based upon one or more column or expressions and displays a …

SQL HAVING || DB2 for i SQL

HAVING clause in DB2 for i SQL The HAVING clause is used to specify the search condition for the groups selected by the GROUP BY clause. Means we…

SQL ORDER BY || DB2 for i SQL

ORDER BY clause in DB2 for i SQL The ORDER BY clause is used to sort the result set in ascending or descending order according to one or more colu…

SQL NULL values || DB2 for i SQL

Handling NULL values in DB2 for i SQL NULL value means that there is no value present for the column in a row in table. It is an unknown value. We…

SQL Special Registers || DB2 for i SQL

Some Special Registers in SQL DB2 for i SQL We can use certain Special registers in our SQL queries. For example, CURRENT DATE, CURRENT TIME etc. t…

SQL DISTINCT || DB2 for i SQL

DISTINCT clause in DB2 for i SQL The SELECT DISTINCT statement is used to return only distinct rows i.e. different rows. It will avoid the duplica…

SQL BETWEEN || DB2 for i SQL

BETWEEN AND predicate in Search condition in DB2 for i SQL We can use various predicates in our WHERE clause condition such as BETWEEN, IN, EXIST…

SQL IN || DB2 for i SQL

IN predicate in Search condition in DB2 for i SQL It is used to get the rows that falls in the listed values in IN expression. For Example, refer…

SQL EXISTS || DB2 for i SQL

EXISTS predicate in Search condition in DB2 for i SQL It is used to test the existence of certain rows. For Example, refer to the Customer table …

SQL SELECT || DB2 for i SQL

Basic Select statement in DB2 for i SQL We can use SELECT statement to retrieve data from the table/tables or view/views. We can use SELECT to ret…
© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain