Netezza DROP TABLE IF EXISTS Syntax and Examples

This is the one of the feature that most of people are waiting since long time. Finally, IBM has added Netezza DROP TABLE IF EXISTS feature in its latest release i.e. Netezza 7.2.X. We will discuss this feature with an example in this article. Netezza DROP TABLE IF EXISTS The Netezza DROP TABLE IF EXISTS option is typically used for scripted applications that are running lot of SQL commands, and you want to suppress the ‘table already exists error message so that it does not halt the scripted application. The…

Continue ReadingNetezza DROP TABLE IF EXISTS Syntax and Examples
Comments Off on Netezza DROP TABLE IF EXISTS Syntax and Examples

Netezza CREATE TABLE IF NOT EXISTS Syntax and Examples

This is the one of the feature that most of people are waiting since long time. Finally, IBM has added Netezza CREATE TABLE IF NOT EXISTS feature in its latest release i.e. Netezza 7.2.X. We will discuss this feature with an example in this article. Netezza CREATE TABLE IF NOT EXISTS The IF NOT EXISTS option is typically used for scripted applications that are running lot of SQL commands, and you want to suppress the ‘table not found’ error message so that it does not halt the scripted application. The…

Continue ReadingNetezza CREATE TABLE IF NOT EXISTS Syntax and Examples
Comments Off on Netezza CREATE TABLE IF NOT EXISTS Syntax and Examples

Hadoop Streaming Map Reduce using Python

In this article, we will check how to work with Hadoop Streaming Map Reduce using Python. Hadoop Streaming First let us check about Hadoop streaming! Hadoop streaming is a utility that comes with the Hadoop distribution. The utility allows you to create and run Map/Reduce jobs with any executable or script as the mapper and/or the reducer. If you are using any language that support standard input and output, that can be used to write the Hadoop Map-Reduce job for examples, Python, C# etc. Read: Hadoop HDFS Schema Design for…

Continue ReadingHadoop Streaming Map Reduce using Python
1 Comment

Netezza Unload Table using External Tables and Examples

You can unload the tables for number of reasons such as take backup of table, send data to external customer or copy data to other appliance. In this article, we will check on Netezza Unload table using external tables and some examples. Netezza Unload Table using External Tables You can unload data from a user table into an external table and load data from an external table into a user table by using the text-delimited format. If you want to create the fixed-width file using external tables then you will…

Continue ReadingNetezza Unload Table using External Tables and Examples
Comments Off on Netezza Unload Table using External Tables and Examples

Netezza SET ON_ERROR_STOP and Examples

When you are working on Netezza data warehouse (IBM Puredata Systems) appliance, you will be executing multiple SQL statement in single SQL file. In this article, we will discuss about the Netezza SET ON_ERROR_STOP variable to stop the execution in case one of the sql statement encountered error inside script. Without this variable, Netezza will continue with other statements ignoring the failed query. Netezza SET ON_ERROR_STOP Netezza nzsql command with option -f executes all sql statements in the files. If you want the nzsql command to stop and exit when…

Continue ReadingNetezza SET ON_ERROR_STOP and Examples
Comments Off on Netezza SET ON_ERROR_STOP and Examples

Python File Word Count using Dictionary

Dictionaries are one of the best data types introduced in the Python. The dictionary holds data in form on Key:value pair. In this article, will present you the solution to Python File Word Count using Dictionary. Text File Acquire the text file from which you want to count repetition of each and every word. For the testing purpose, create any file with some of your favourite story or anything. Python File Word Count using Dictionary Let's work step by step on building this game. In this program, we are going…

Continue ReadingPython File Word Count using Dictionary
Comments Off on Python File Word Count using Dictionary

Netezza Just In Time (JIT) statistics

You might know how the Netezza generate statistics works and how to generate the stats on the tables. Read my other post Netezza generate statistics: Best Practices. In this post, we will discuss about the Netezza Just in Time (JIT) statistics. Netezza Just in Time (JIT) statistics The Netezza system automatically generates Just in Time (JIT) statistics on user tables to help the optimizer refine planning when you fire the query to Netezza system. Netezza JIT statistics comes handy when there is a skew in the table, it improves the…

Continue ReadingNetezza Just In Time (JIT) statistics
Comments Off on Netezza Just In Time (JIT) statistics

Netezza External Table DATAOBJECT Option

In this article, we will discuss about the Netezza external table DATAOBJECT and REMOTESOURCE option and how these options work. You must specify these options in case if you are using separate Linux host or an edge node to connect to Netezza data warehouse appliance. Edge Node Background An edge node is something that most of the organisations uses to connect to Netezza server. The edge node will have the all the required scripts to perform the ETL or ELT operations. Normally, edge nodes are installed with JDBC, ODBC or…

Continue ReadingNetezza External Table DATAOBJECT Option
Comments Off on Netezza External Table DATAOBJECT Option

Netezza SET CATALOG command: Connect to Different Database from same Session

If you are a business analyst or data architect then you have to work on the different database to identify the relevant data to come up with business decisions on a particular design. You can connect to multiple databases from the current Netezza sessions using Netezza SET CATALOG command Use the SET CATALOG command to connect to a different Netezza database in the same session. This command is the session specific i.e. as soon as the execution ends in current session; Netezza reverts back to the original database. Read: Commonly…

Continue ReadingNetezza SET CATALOG command: Connect to Different Database from same Session
Comments Off on Netezza SET CATALOG command: Connect to Different Database from same Session

Redshift Install SSL Certificate in Local Windows System

Redshift SSL Certificates are small data files that digitally bind a cryptographic key to redshift cluster connection details. In this article, we will discuss on Redshift install SSL certificate in local system. Redshift SSL Certificate You have to login to AWS console to download the .pem file. To support SSL connections, Amazon Redshift creates and installs a self-signed SSL certificate on each cluster. To login to cluster, you should have an account created with Amazon AWS cloud. You can obtain the account by yourself or use the corporate account. The public…

Continue ReadingRedshift Install SSL Certificate in Local Windows System
Comments Off on Redshift Install SSL Certificate in Local Windows System