Questions tagged [netezza]

Netezza is a line of high-performance data warehouse appliances and advanced in-database analytics applications for uses including enterprise data warehousing, business intelligence, and predictive analytics. In 2010, Netezza became a subsidiary of IBM, and the product was subsequently rebranded as "PDA” In 2019 IBM launched a new generation of Netezza/PDA on the CloudPack for data stack. It runs on both cloud and on-prem specialized CP4D hardware.

Filter by
Sorted by
Tagged with
1 vote
2 answers
44 views

Convert CHARACTER DATATYPE TO INTEGER DATATYPE in Netezza SQL

I have a table TABLE_A Which has all the column as CHARACTER DATATYPE. Let's say in one of the column I have the value like : Column_A <Blank_Value> 123 1,123 I have to insert this value in ...
ImSahil's user avatar
  • 65
0 votes
0 answers
36 views

SQL: Conditional Calculations by Group

I am working on Netezza SQL. I have the following table: var1 var2 var3 1 a c e 2 a d f 3 a c f 4 b d e 5 b c f 6 b d f My Problem: I am trying ...
stats_noob's user avatar
  • 5,299
0 votes
1 answer
51 views

Dbeaver / DBVisualizer with Netezza

Good afternoon, I'd been searching in a lot of websites (including the official IBM site) trying to find the nzjdbc.jar file, the JDBC driver for Netezza. I need to connect to a Netezza DB in my work, ...
Ignacio Morales's user avatar
0 votes
1 answer
34 views

Rolling 6 month in Netezza

I need to delete data older than 180 days from my agg table Below delete command doesn't seems to be working Delete from agg_table where sale_date <= '20231101' - 180 Delete from agg_table where ...
Vidhyut's user avatar
  • 11
0 votes
2 answers
50 views

SQL: Cumulative Sums by Month

I am working with Netezza SQL. I have the following table (my_table): type var1 var2 date_1 date_2 a 5 0 2010-01-01 2009-2010 a 10 1 2010-01-15 2009-2010 a 1 0 ...
stats_noob's user avatar
  • 5,299
0 votes
0 answers
19 views

Netezza SQL query to concatenate the records of the specific column when the unique keys are same for more than one records

Concatenate multiple records for the specific column when the unique keys are same Share the answer using subquery without inbuilt function I have used groupconcat , listagg, stringagg non of them are ...
Jeevitha R's user avatar
3 votes
3 answers
165 views

SQL: Creating Tables using CTEs

I am working with Netezza SQL. I have the following SQL code: create table sample1( var1 integer, var2 integer ); insert into sample1(var1,var2) values(1,1); insert into sample1(var1,var2) values(2,2)...
stats_noob's user avatar
  • 5,299
0 votes
1 answer
31 views

SPARK + JDBC Netezza - TypeError: An error occurred while calling file.save

I am using Spark to load a Dataframe into Netezza database. I'm getting an intermittent error on a Netezza JDBC connection and I don't know why. I have been following the error for a month and they ...
PAULO CRISTIANO KLEIN's user avatar
0 votes
1 answer
40 views

SQL: Making Automatic Groups in a Variable

I am working with Netezza SQL. I have a table (my_table) that looks like this: id var1 1 1 43.95244 2 2 76.98225 3 3 255.87083 4 4 107.05084 5 5 112.92877 6 6 271.50650 7 7 146....
stats_noob's user avatar
  • 5,299
0 votes
1 answer
40 views

Creating Netezza external table using zipped text file

I am new to IBM Netezza SQL. Is it possible to create Netezza external table using zipped text file? File is very large, I am trying to create external table directly from zipped text file if that is ...
Sandeep Pai's user avatar
0 votes
1 answer
41 views

SQL: Finding Out All Possible Combinations of Years Per ID per Group

I am working with Netezza SQL. I have the following dataset ("my_table") about students (over the years 2010-2015), the current degree major they are enrolled in, the date than an exam was ...
stats_noob's user avatar
  • 5,299
0 votes
1 answer
99 views

cannot connect to NZ database using NZPY in python with the user who can connect without a password

I am trying to connect to NZ db from python using NZPY. conn = nzpy.connect(user="DEV_USR", host="bac-nettezza", port =5480,database="DEV",securityLevel=1,logLevel=0) ...
Sparkles's user avatar
0 votes
0 answers
57 views

SQL: Min/Max Values of Group are Changing?

I am working with Netezza SQL. I have the following table ("my_table"): gender country favorite_color disease height weight id 1 m mexico blue n 193.6547 62....
stats_noob's user avatar
  • 5,299
0 votes
0 answers
46 views

SQL: Does the Partition Order Change the Results of a Query?

I am working with Netezza SQL. I have the following table (that I created with R and uploaded to a simulated Netezza SQL connection): set.seed(123) num_rows <- 10000 gender <- sample(c("m&...
stats_noob's user avatar
  • 5,299
1 vote
2 answers
86 views

SQL: Counting the Number of Times a "Type" of Row Appears

I am working with Netezza SQL. I have the following table: CREATE TABLE MY_TABLE ( id VARCHAR(50), year VARCHAR(50) ); INSERT INTO MY_TABLE (id, year) VALUES ('123', '2010'); INSERT INTO ...
stats_noob's user avatar
  • 5,299
0 votes
0 answers
38 views

How to sync an IBM Netezza table with a Power BI dataset

I'm using a Power BI report to display a chart based on a dataset that is extracted from a Netezza database. I used the odbc connector to extract the data from Netezza to Power BI and then used it for ...
Lucy toko's user avatar
0 votes
2 answers
136 views

R/SQL: Finding Out If Table Contains A Certain Value

I am working Netezza SQL. Suppose I have 3 tables located on a server (e.g. in real life there could be many such tables and each table with many rows and many columns): table1: col1,col2,col3 table2:...
stats_noob's user avatar
  • 5,299
1 vote
4 answers
195 views

SQL: Learning How to Use The Percentile Functions in SQL

I am working with Netezza SQL. I have the following table: CREATE TABLE MY_TABLE ( country VARCHAR(50), gender CHAR(1), age INTEGER, height FLOAT, owns_bicycle VARCHAR(3) ); ...
stats_noob's user avatar
  • 5,299
0 votes
4 answers
96 views

How to convert Netezza to_timestamp & tochar to SQL Server?

I want to convert Netezza TO_TIMESTAMP(TO_CHAR(POL.PERIOD_FROM_DATE, 'FM99999999999999999'), 'YYYYMMDDHH24MISSMS') AS EFFECTIVE_DATE to a SQL Server function to include this in IBM Cognos Framework ...
prudhvi's user avatar
-1 votes
2 answers
103 views

How to verify SSL Enablement in Netezza Database using a query in client tool like DBVISUALIZER?

I am trying to check or verify SSL is enabled or not for my current Netezza connection. I have tried multiple queries, but none of the them is working. Below are some listed queries, which I tried in ...
sujay777's user avatar
0 votes
0 answers
85 views

How to configure and enable SSL in Netezza Database on new port?

I want to enable SSL for Netezza DB. I have generated certificates and Key and placed over "nz/data/secuity" path on my server. Also configured postgresql.conf file and made ssl=true ...
sujay777's user avatar
0 votes
1 answer
80 views

Header row missing text while exporting to a file using CREATE EXTERNAL TABLE in Netezza

After the extract, the file is missing the header column text. It adds and empty line with delimiter. It only happens when I use an alias name with a function in Netezza. I have seen some solutions ...
need_the_buzz's user avatar
0 votes
0 answers
283 views

LDAP Authentication failure for user

I installed a software called Coginiti Pro (Aginity Pro), entered the license key to activate the software, and tried to connect to the Netezza database/driver. But when the credentials are entered, I ...
Sew3's user avatar
  • 9
-2 votes
1 answer
60 views

Trying to use join to aggregate data and getting odd output [closed]

When running this query been getting an odd error I've not yet encountered, this query is executed within Netezza SELECT a.CALENDAR_DATE, b.NewBusinessUnit, b.ResellerID, b.ResellerName,...
WildJester's user avatar
2 votes
1 answer
225 views

How to Bulk Import data from file into Netezza DB?

I want to bulk import data from a file present on my local into the Netezza Database using NZSQL language. I tried with below query but, I am not able to do it. create external table ext_tab ( ...
sujay777's user avatar
1 vote
4 answers
146 views

SQL: Learning About Gap-And-Island Problems

I am working with Netezza SQL. In a previous question (Replacing CTE's with Individual Queries) I learned about the basics of "Gap and Island Problems" in which the goal is to "fill&...
stats_noob's user avatar
  • 5,299
0 votes
2 answers
108 views

Replacing CTE's with Individual Queries

I am working with Netezza SQL. I have the following table: CREATE TABLE sample_table ( name VARCHAR(50), year INTEGER, color VARCHAR(50) ); INSERT INTO sample_table (name, year, color) ...
stats_noob's user avatar
  • 5,299
1 vote
1 answer
127 views

SAS Proc Append Column format change

I want to upload a table to Netezza SQL server. However, within my table I have 1 column which is of character format with len=20. However, in Netezza, I want this column to be in BIGINT format. Can I ...
AAKASH IYER's user avatar
0 votes
0 answers
51 views

Netezza SQL - Auto incrementing column duplicate

Rookie with Netezza SQL so need some guidance. I have a table TABLE_A in Netezza with 3 columns: Name Account_No Month TABLE_A gets updated every month with new data. The column Account_No however ...
AAKASH IYER's user avatar
-1 votes
1 answer
56 views

sql netezza case when, how to use a temporal variable?

How can i make this kind of CASE WHEN in Netezza: select case A+B+C when 0 then 1 else A+B+C end FROM X the idea is not to write again A+B+C like this select case 's' = A+B+C when 0 then 1 ...
Renzo's user avatar
  • 1
1 vote
1 answer
64 views

Converting code from Netezza to Snowflake stored procedures

I'm currently attempting to convert some code from Netezza code stored procedure to Snowflake stored procedure. There is one particular piece that I'm trying to convert by using a SQL cursor for loop. ...
Rose's user avatar
  • 19
1 vote
1 answer
84 views

Netezza to snowflake Replace, Trim, XML function conversion

We recently migrated our data servers from Netezza to Snowflake and all SQL queries that were originally running in Netezza need to be translated to be compatible to run in snowflake. I'm not able to ...
RUser876's user avatar
0 votes
2 answers
58 views

How do we list the columns of particular table in Netezza?

Result is fetching zero records. enter image description here
Tejaswini Gowda's user avatar
0 votes
0 answers
126 views

IBM Netezza Driver for C#: The given key was not present in the dictionary

I have been using the netezza driver in my application for a few months without issue. However, today, it has been throwing the following issue... System.Collections.Generic.KeyNotFoundException: The ...
Christian Phillips's user avatar
1 vote
0 answers
36 views

Netezza SQL + Correlated Subquery = ERROR: (2) This form of correlated query is not supported - consider rewriting

I need to match a date from one table based on the date from another table. Easy? Well. . . each date is dependent on the other one and TABLE A = 202212 and TABLE B = 2022-12-30 (last business day of ...
Paula's user avatar
  • 31
0 votes
0 answers
46 views

How to write correct stored procedure in netezza to fetch and display all records from table ? need select procedure

I have written a stored procedure for select operation in netezza db, but its throwing error while I try to execute that stored procedure. Below is my stored procedure for select operation to fetch ...
sujay777's user avatar
0 votes
1 answer
109 views

How can we call stored procedures in Netezza database?

I am not able to call stored procedures in Netezza database. Below is my procedure. CREATE OR REPLACE PROCEDURE "SUJAY"."ADMIN"."EMPSELECT"() RETURNS INTEGER LANGUAGE ...
sujay777's user avatar
0 votes
1 answer
113 views

Is there something similar to "SELECT FOR UPDATE" in MongoDB and Netezza as like SQL?

I want similar command or query for "SELECT FOR UPDATE" as like SQL in MongoDB and Netezza. In SQL we do it using BEGIN and COMMIT. I am trying to perform a operation which locks particular ...
sujay777's user avatar
0 votes
1 answer
31 views

How schedule events on the Netezza Events management

I want to undestand if the are some configuration to schedule the events rules that i have created, i follow the informations here Text the process that i follow it was : I Copy and enable a template ...
Bunny bit's user avatar
-1 votes
1 answer
104 views

How to remove decimal point and update without decimal for existing records?

I would like to remove the decimal point from the records and update the without decimal point which is already loaded records into the table for 4 fields datatype: VARCHAR(7) For example, D21.3 would ...
Krishna's user avatar
  • 25
0 votes
0 answers
54 views

How to restore the truncated data after decimal point for existing records using SQL or Datastage?

I want to restore the truncated data after the decimal point due to the insufficient length of the column it is truncated now I wish to restore truncated data and remove the decimal point also. We ...
Krishna's user avatar
  • 25
1 vote
2 answers
143 views

How to remove decimal point in DataStage?

I would like to remove the decimal point from the column. For example, D21.3 would become D213 Someone help me, please.
Krishna's user avatar
  • 25
0 votes
0 answers
21 views

Sumproduct in Netezza

I want to calculate sumproduct in netezza table, where one column is fixed. In frist column (A) I have some numbers in DISCOUNT are discount factors. As a result I want to get sumproduct bewteen A and ...
Kyoto's user avatar
  • 53
0 votes
1 answer
27 views

Can a materialized view in Netezza be created by the union of 2 base tables

I have 2 or more base tables representing subtype entities. The records in these are mutually exclusive - no intersection. I want to create a materialized view which represents the supertype entity. ...
Johan Wagener's user avatar
0 votes
1 answer
245 views

How to unlock a Netezza database after restore?

We are performing a production upgrade soon. I want to do a restore of the current backups onto the Disaster Recovery system, but leave the databases locked so that the incrementals can be applied ...
JerseyMike's user avatar
1 vote
1 answer
50 views

How to convert correlated subquery to join when using CASE WHEN clause in SQL

I have a query: CASE WHEN T3.ID_NUMBER IN (20216) THEN 'Retired' I wanted to add a subquery to it: CASE WHEN T3.ID_NUMBER IN (20216) AND T1.DEPARTMENT NOT IN (SELECT T1.DEPARTMENT WHERE ((T....
NoviK's user avatar
  • 17
0 votes
1 answer
93 views

Change source of data in Power BI

I have been using IBM Netezza as a source of data in Microsoft Power BI, but recently we moved our Data Warehouse on Cloud (Azure). The tables remain the same (only the prefixes are different). I have ...
Anne's user avatar
  • 3
0 votes
1 answer
112 views

Loading the data into Netezza database using xquery from XML source

I have a source as XML and has a huge number of records. just for the sample I have pasted 1 record below : <?xml version='1.0' encoding='UTF-8'?><wd:Report_Data xmlns:wd="urn:com....
ImSahil's user avatar
  • 65
0 votes
1 answer
84 views

Need SQL query to update the column using case when by joining two tables in Netezza Database

There are 2 tables : Sales & Transaction. I need to update the INDICATOR column of the Sales table using CASE WHEN by joining these two tables in Netezza database. Using below query but not ...
ImSahil's user avatar
  • 65
0 votes
1 answer
113 views

Netezza To snowflake migration of function Percent Rank

We are trying to migrate the SQL queries from Netezza to Snowflake. And got stuck in Percent_rank function of how differently they are used in both. below is the query getting fired in Netezza Netezza ...
danD's user avatar
  • 676

1
2 3 4 5
27