Netezza NVL and NVL2 Functions with Examples

Netezza supports NVL and NVL2 functions. Netezza NVL Function The NVL function replaces a NULL value with a replacement string that you provide in the function. Returns the first argument if it is not null, otherwise it returns the second argument The Netezza NVL function is equivalent to the Netezza SQL coalesce function. The Function will return the non-NULL value. Note that, You cannot replace the blank value using NVL function. Some databases supports this nut Netezza does not. Syntax: NVL (exp,replacement-exp); Returns 'exp' if not null otherwise 'replacement-exp' is…

Continue ReadingNetezza NVL and NVL2 Functions with Examples
2 Comments

Database ACID Properties and Explanation

ACID (Atomicity, Consistency, Isolation, Durability) is a set of database properties that makes sure that database transactions are processed reliably and completly. Relational databases makes sures that its transactions are completed propely as per ACID properties . Database ACID Properties Following sections explains about various database ACID properties: Atomicity In ACID properties, Atomicity requires that each and every transaction is fully completed and committed or nothing at all. If any one part of the current transaction fails, then the entire transaction fails, and the database state is left unchanged (databse…

Continue ReadingDatabase ACID Properties and Explanation
Comments Off on Database ACID Properties and Explanation

Netezza SQL Identifiers

A Netezza SQL identifier is the name of a Netezza database object such as a table, column, user, group, user-defined object, and database names. Netezza supports the SQL 1999 definition for naming identifiers, and they can be up to 128 bytes in length. Read: Netezza SQL command and its usage Netezza Create user command and its Usage IBM Netezza Alter user command and its Usage Netezza Create, Drop, Rename Database Commands and Examples Netezza SQL Identifiers There are two types of Netezza SQL identifiers: regular and delimited. Netezza SQL Regular…

Continue ReadingNetezza SQL Identifiers
Comments Off on Netezza SQL Identifiers

Netezza Create, Drop, Rename Database Commands and Examples

Using Netezza SQL, you can create, drop, rename and change the database owners. These are some important commands you should know if you are working as a Netezza database administrator. In this article, we will check Netezza create, drop, rename database commands and some of examples. Read: Netezza SQL Identifiers Netezza Create Database Command You can use CREATE DATABASE command to create new database in Netezza system: system(admin)=> CREATE DATABASE newdb; CREATE DATABASE Database names can be up to a maximum length of 128 bytes, system displays an error message if…

Continue ReadingNetezza Create, Drop, Rename Database Commands and Examples
Comments Off on Netezza Create, Drop, Rename Database Commands and Examples

How to Resolve Netezza too many Concurrent Sessions issue?

If you are working on the Netezza with the heavy load on it then you might have seen the Netezza too many concurrent sessions issue when you try to connect to the Netezza system. You may get this issue while connecting to Netezza from Aginity workbench or from Putty. In this article, we will see how to resolve Netezza too many concurrent session issue. Check Netezza too many Concurrent Sessions issue To verify the concurrent sessions follow below steps: Login to Netezza either from Putty or from Aginity Workbench and…

Continue ReadingHow to Resolve Netezza too many Concurrent Sessions issue?
Comments Off on How to Resolve Netezza too many Concurrent Sessions issue?

How to Find Netezza Table Size?

There are two ways to identify the size of table in Netezza. One, query the Netezza system tables and get the table size. Second, use the Netezza admin tool to check table size. In this article, we will discuss on how to find Netezza table size using Netezza nzsql and Netezza admin tools. More Readings: Netezza system tables and views Netezza nzsql command and its usage How to install Aginity workbench for Netezza? How to Find Netezza Table Size? When you create a table in Netezza using nzsql, the table…

Continue ReadingHow to Find Netezza Table Size?
4 Comments

Netezza Derived Tables and Examples

In the real world scenario, you may derive the some column from base table and instead of creating temporary table you may use that derived query in FROM clause of the SQL statement. These types of queries are called derived tables. In this article,we will check on the Netezza derived tables.  Netezza Derived Tables A derived table is basically a subquery which is always in the FROM clause of a SQL query Statements. The reason it is called a derived table is because it essentially functions as a table as far as the entire query…

Continue ReadingNetezza Derived Tables and Examples
Comments Off on Netezza Derived Tables and Examples

Netezza Identify and Kill Table Locks

Sometimes if you try to delete or truncate data from the table that is being used by the other process then session may lock the table resulting deadlock. You have to identify and kill such sessions before attempting to delete or truncate that table.In this article, we will discuss about Netezza identify and kill tables locks with an examples. Read: Netezza Table Locking and Concurrency Netezza Identify and Kill Table Locks The mail question is how to identify the locks? There are couple of options available to identify the table…

Continue ReadingNetezza Identify and Kill Table Locks
Comments Off on Netezza Identify and Kill Table Locks

Hadoop Hive Analytic Functions and Examples

Hadoop Hive analytic functions compute an aggregate value that is based on a group of rows. A Hadoop Hive HQL analytic function works on the group of rows and ignores the NULL in the data if you specify. Hadoop Hive analytic functions Latest Hive version includes many useful functions that can perform day to day aggregation. Note that, Hive is batch query processing engine and hence take more time to execute. Read: Apache Hive ROWNUM Pseudo Column Equivalent Hadoop Hive Date Functions and Examples Spark SQL Analytic Functions and Examples…

Continue ReadingHadoop Hive Analytic Functions and Examples
5 Comments

Hadoop Hive Cumulative Sum, Average and Example

Latest version of Hive HQL supports the window analytics functions. You can make use of the Hadoop Hive Analytic functions to calculate the cumulative sum or running sum and cumulative average. Sum and Average analytical functions are used along with window options to calculate the Hadoop Hive Cumulative Sum or running sum. Hadoop Hive Cumulative Sum, Average Syntax: Below are the Syntax for Apache Hive Cumulative SUM, AVG analytic functions. You can use these function within query you have requirement to calculate cumulative SUM or AVG. SUM([DISTINCT | ALL] expression)…

Continue ReadingHadoop Hive Cumulative Sum, Average and Example
2 Comments