Quantcast
Channel: DB2 SQL – IT Answers
Browsing latest articles
Browse All 17 View Live

iDB2 connection lifetime fails

New Answer by Michael Tidmarsh The post iDB2 connection lifetime fails appeared first on IT Answers.

View Article



SQL error message when creating procedure containing three cursors

New Answer by carlosdl The post SQL error message when creating procedure containing three cursors appeared first on IT Answers.

View Article

DB2 SQL Confusion

I am failing to understand why the following won’t work SELECT m.index, SUM(d1.amt), SUM(d2.amt) FROM master m, detail d1, detail d2 WHERE m.index = d1.index AND m.index = d2.index AND d2.qalif = 1...

View Article

SQL Table Join when the name of a column in Table1 equals the value of a...

Does anyone know how to write the SQL to join two DB2 tables when the name of Table1.columnA equals the data values stored in Table2.columnB? In the table structure examples listed below, I’m trying to...

View Article

SQL Work Files

In the FOCUS programming language, you can retrieve data and hold that data for further processing at some point later in the program.  What is the best technique for doing this in SQL? The post SQL...

View Article


Running Multiple SQL statements through JCL

I need to run multiple sql statements seperatd by ‘;’. I want the execution to continue for all the SQL statements even if any of the SQLs throws out error. Is it possible? The post Running Multiple...

View Article

iSeries SQL case on AS/400

Is there an equivalent to case when exists on the as/400? The post iSeries SQL case on AS/400 appeared first on IT Answers.

View Article

Data type for output file in DB2 SQL

I am using DB2 SQL on the mainframe – not sure of the version – I want to write out a file and transfer it down to the PC – how do I specifiy numeric values for dollar values so that when I bring the...

View Article


DB2 Recursive UDF

I am looking to create a SQL table UDF on my AS400(v5r2) that will return a listing of suboridinates for a given manager. Is it possible to use recursion? Since we are on v5r2 recursive SQL is not an...

View Article


DB2 hex values in SQL causing problem

New Answer by Michael Tidmarsh The post DB2 hex values in SQL causing problem appeared first on IT Answers.

View Article
Browsing latest articles
Browse All 17 View Live




Latest Images