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

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

Netezza SQL Interview Questions and Explanation

Below are some of best Netezza SQL interview questions that you may face: How do you improve performance of SQL queries? There are various options that you can use to improve the performance of Netezza queries. Read below post for all SQL optimization options. Steps to Optimize SQL Query Performance – Best Practices How to calculate the Cumulative Sum in Netezza? You can make use of the Netezza analytical functions to calculate the cumulative sum or running sum. Read: Netezza Cumulative Sum, Average and Example How do you Identify and…

Continue ReadingNetezza SQL Interview Questions and Explanation
1 Comment

Generate Netezza Table DDL using nz_ddl_table

If you are working as a Netezza admin then you may be asked to get DDL of all tables available in the particular database. You can still do that in hard way such as using Aginity workbench, WinSQL, or Squirrel workbench. This this article, we are going to discuss the easy way to generate Netezza Table DDL using nz_ddl_table. Generate Netezza Table DDL using nz_ddl_table nz_ddl_table is a Netezza provided utility and is used to generate the Netezza table DDL from particular database. Utility will generate the DDL for all table…

Continue ReadingGenerate Netezza Table DDL using nz_ddl_table
Comments Off on Generate Netezza Table DDL using nz_ddl_table

Netezza CREATE GROUP Command

A group with one or more members is a user group. User groups are used to simplify access management. In this article, we will discuss about the Netezza Create Group command. Netezza CREATE GROUP Command Each and every member of the user group inherits its privileges and other settings. For e.g. you may want to create the user groups called Developers, Admins etc. Each user group will be provided with set of privileges that each members inherits upon adding to it. Netezza CREATE GROUP command Syntax CREATE GROUP name [WITH…

Continue ReadingNetezza CREATE GROUP Command
Comments Off on Netezza CREATE GROUP Command