LIKE in Teradata

Teradata LIKE operator is used for pattern matching in the specified column. This is used in the WHERE clause and may use wildcard characters and special characters to match a pattern from a word. Teradata LIKE operator is can be … Read more »

BETWEEN in Teradata

The BETWEEN operator in Teradata selects a range of data between two values. This is generally used with the WHERE clause to filter out the data in the result-set.  Teradata BETWEEN Syntax Following is the syntax of the Teradata BETWEEN … Read more »

Teradata SET operators

The SET operators in Teradata manipulate the result sets of two or more queries by combining the results of each individual query into a single result set. Most common SET operators are as below- Operator Description UNION Combines the result … Read more »

Teradata Logical Operators

Below are the logical operators which are used in Teradata. Operator Meaning = Equal to <>  Not Equal to >  Greater than <  Less than > = Greater than or Equal to < = Less than or Equal to AND … Read more »

Alias in Teradata

In the select statement generally, we have seen selecting the different columns from a table. As a result of the select statement, the output is generated and the first line of the resultset is the column names that we have … Read more »

Teradata HAVING Clause

The HAVING Clause is generally used along with the GROUP BY clause to apply more filters on the result-set. Teradata HAVING example The following SQL statement list the number of employee in each department. Only include those departments with more … Read more »

Teradata GROUP BY Clause

Teradata Group By clause makes the group of related rows. The group by clause identifies the rows which have the same value for the specified attribute (i.e, duplicate value) and returns a single row of information instead of all the … Read more »

Teradata Order By Clause

Teradata Order By clause sorts the result set based on the given expression. It is used with SELECT Statement to determine how the result set will be selected. If the order by clause is not used, then the result-set remains … Read more »

Teradata Delete Statement

Teradata Delete statement deletes the records from a table. You can delete either all the records or some specific records from an existing table using the delete statement. Teradata Delete Statement syntax The syntax for the Teradata Delete statement is … Read more »

SQL TRUNCATE TABLE

The SQL TRUNCATE TABLE table statement is used to remove all the rows (complete data) from a table. It performs the same work as SQL DELETE TABLE without the WHERE clause. Warning: You should double-check before executing the SQL TRUNCATE … Read more »