Netezza EXPLAIN command and its Usage

Netezza uses a cost-based optimizer to determine the best method for scan and join operations, join order, and data movement between SPUs, that is, redistribute or broadcast operations. You can use the Netezza EXPLAIN command to display the actual execution plan that Netezza generates and uses while executing any query in the system. Netezza Optimizer Netezza uses the cost based optimizer to determine the best methods for the query to be executed in the Netezza system. Optimizer uses the statistics to determine the optimal and best execution plan for Netezza…

Continue ReadingNetezza EXPLAIN command and its Usage
Comments Off on Netezza EXPLAIN command and its Usage

Netezza and Redshift Comparison – Netezza vs Redshift

If you are performing PoC to choose between the Netezza and Redshift, then the common question arises which one is better compared to other. In this article, we will check Netezza and Redshift Comparison - Netezza vs Redshift.  These two data warehouse appliances have their own advantages and disadvantages. We will try to compare the features and difference between Netezza and Redshift. Read: Hadoop and Netezza Comparison - Netezza vs Hadoop Netezza Data Warehouse Appliance Features Read: Netezza TwinFin Architecture Following are some of the feature on Netezza data warehouse appliance:…

Continue ReadingNetezza and Redshift Comparison – Netezza vs Redshift
3 Comments

Commonly used Redshift Date Functions and Examples

Redshift is a data warehousing solution provided by Amazon Web Services (AWS). It supports a variety of date and time functions that can be used to perform operations on date and time data stored in Redshift tables. This article is about detailed descriptions and examples of the commonly used Amazon Redshift date functions that you can use to manipulate date data types in Resdshift SQL. In the real word scenarios many application manipulate the date and time data types. Date types are highly formatted and very complicated. Each date value…

Continue ReadingCommonly used Redshift Date Functions and Examples
Comments Off on Commonly used Redshift Date Functions and Examples

Netezza Recover Deleted Rows

Netezza data warehouse appliance does soft delete until the groom process is performed. Netezza logically deletes the rows by flagging deletexid. The data will be there in the system and you can recover the same whenever you accidentally delete the rows from the table. In this article, We will check how to perform Netezza recover deleted rows. Netezza Recover Deleted Rows Every table has the system columns such as createxid, deletexid and rowid. You can check the column by querying these columns from the table. Whenever you delete the record…

Continue ReadingNetezza Recover Deleted Rows
1 Comment

Netezza Rollup Group Aggregates using Grouping sets

The Netezza rollup functionality gives aggregation results at multiple grouping levels in a single result set. In this article, we will check Netezza rollup group aggregates using grouping sets. Netezza Rollup Group Aggregates using Grouping sets You may want to aggregate the records in the tables for each records partition in the group. For examples, consider you want to find out sum of salary of the all employees in the department as a different rows in the query result (row with NULL employee name as highlighted in the image). To…

Continue ReadingNetezza Rollup Group Aggregates using Grouping sets
Comments Off on Netezza Rollup Group Aggregates using Grouping sets

Netezza Table Row Size Details

When you create a table in IBM Netezza, the table usually does not take any space on the data slices. Once you insert the rows then only system allocates the space to the rows. In this article, we will see the Netezza table row size details and what are the system columns and their size when you insert rows into the created table. Netezza Table Row Size Details When you insert new row to the created table, IBM Netezza system allocates at least one extent of size 3 MB of…

Continue ReadingNetezza Table Row Size Details
Comments Off on Netezza Table Row Size Details

Netezza nzsql Query Buffer to Edit Command Line Queries

Life is much easier if you use any query tools to access Netezza nzsql queries. Some people do not like to use specific tool, instead they use Netezza command line. In this article, we will check on Netezza nzsql Query Buffer to edit command line Queries. Netezza nzsql Query Buffer Because the nzsql command is line oriented, it is difficult to edit a complex, multiline SQL statement. Netezza sql supports query buffer that you can use to edit complex and multiline queries. Netezza nzsql Query Buffer Options \e — Edit…

Continue ReadingNetezza nzsql Query Buffer to Edit Command Line Queries
Comments Off on Netezza nzsql Query Buffer to Edit Command Line Queries

Netezza nzsql Internal Slash Options

When you use the Netezza nzsql command in interactive mode, there are many options that you can use. These options, known as Netezza nzsql internal slash options, are called with a backslash (\). Many of the internal slash options are the same as those available on the command line. In this article, we will check some of commonly used Netezza nzsql Internal Slash Options. Netezza nzsql Internal Slash Options Following are some commonly used Netezza nzsql internal slash commands: Command Description \? Lists the available internal slash commands. \h Lists…

Continue ReadingNetezza nzsql Internal Slash Options
Comments Off on Netezza nzsql Internal Slash Options

Cloudera Impala Performance Tuning Best Practices

When it comes to SQL-on-Hadoop, there are handful frameworks available in market. Hive and Impala are most widely used to build data warehouse on the Hadoop framework. In this article, i will explain you on Cloudera Impala performance tuning best practices. When it comes to SQL-on-Hadoop, there are number of choices available in tools, file formats, schema design, and configurations. Making good design choices when you start is the best way to avoid some of the common mistakes later on. Cloudera Impala Performance Tuning Best Practices Following sections explain you…

Continue ReadingCloudera Impala Performance Tuning Best Practices
Comments Off on Cloudera Impala Performance Tuning Best Practices

Netezza SQL Query formatter – nz_format and Examples

Sometimes you may have to get the view or any object DDL directly from the Netezza database, in that case you might have noticed that query will not be in proper format. In this article, we will check Netezza SQL query formatter - nz_format with an example. Netezza SQL Query formatter - nz_format You can use the nz_format script functionality to format the Netezza SQL query which is not in proper format. Script will generate the formatted SQL if you pass raw query in form of file or standard input.…

Continue ReadingNetezza SQL Query formatter – nz_format and Examples
Comments Off on Netezza SQL Query formatter – nz_format and Examples