Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
Articles & Videos
IBM DB2 is a family of relational database server products developed by IBM that have been extended to support object-relational features and non-relational structures like JSON and XML. There are three main products in the DB2 family: DB2 for Linux, UNIX and Windows (informally known as DB2 LUW), DB2 for z/OS (mainframe), and DB2 for i (formerly OS/400), plus a version for IBM's Virtual Storage Extended (VSE) operating system.
The following query grabs data that I need to pivot but Max and Sum don't play well in the same sentence so to speak. Stubborn Aggregates. I have tried various sub selects but the results come out inc…
I have data as below
I want result like
I am a a Oracle dba with an issue with a DB2 database system.
The DB2 generates files *.LOG located in a specific drive, and sometimes the drive is running out space.
There are files…
Emplid. Code. Period
123 744 3
123. 510. 3
123. 744. 4
123. 890. 4
123. 615. 5
123. 510. 5
I want to q…
I have to filter based upon four columns emplid,empl_rcd,effdate ,seq filter is like 1000 rows in xls.
i can just do select can't create any tables etc.
i am doing
select * from tab
I have a PowerShell script that am using to connect to a DB2 database.
The script has the credentials hard coded at this point, and everything works fine.
I am trying to encrypt the password and…
When in DB2 95, I used to use DB2 Configuration Assistant to create and share the Database profiles and share them with other developers. With DB2 10.1, there is no DB2 Configuration Assistant…
I get an error with a SQL statement getting data in a DB2/400 database when the WHERE clause contains a LIKE clause where the content of the LIKE includes the star character, "*", and this in a …
We want to create materialized view in IBM i series v7R1 instead of normal views as we are having performance issue. Could anyone let us know how to create & maintain materialized view .
Ok this is great all the advice was noted and the procedure ran great for one Plant. That was the first test and, then the second test was with a string of plants. The way I constructed the parm was…
I'm looking for a SQL example on how to create one SQL select statement to query across two iSeries with instances of DB2.
Presently, the SQL is being ran interactively from the 5250 Emulator.
While running SQL commands in some own (customer tool) SQLRPGLE, I have the problem that a execute immediate command, exceeds the length of 32700.
If I extend this variable, I get a pr…
I have 2 tables, tbINVOICE and tbFEE. tbFee contains fees that get populated at the end of an invoice. As a result of a setup error, I have some invoices that are missing a fee that should have been a…
I need to create a store procedure which calls a CL program.
I want the stored procedure to return the output when called.But when i define a stored procedure with input and output parameters im not …
Hi DB2 gurus,
I am trying to compile a simple score to assist in determining the type of tool I will like to have for my new brand new DB2 environment. I have worked with a few but I do need some a…
I hear db2 can't snapshot... we just have to live with the fact that during backup some oprations (like changes to tables) might hang.... Is this true?
I am able to query a DB2 table from SAS EG using a connection to DB2.
I can assign a library using:
LIBNAME TST DB2 USER=&USR. PASSWORD=&PWD. DATASRC=&SRC.;
The problem is the lib is…
Historically our IBM i Developers have done their own "Database Administration". We recently got a new manager for our IBM i Development team and they are requesting that our System Administrators t…
I want to check if a Month-Year falls in a date range.
Example: 10-2014 between 01/01/2014 and 12/31/2014
How can i do this in DB2 UDB SQL?
I have to create a table output based on the following conditions.
Three COLUMNS : TX_Vereinbart, DISCOUNTS, IA_Vereinbart
They all are coming from table called EP101T
The below ar…
Well, this is an Oracle DBA helping an application user that uses DB2.
I am having the below error register in the event viewer of the database server.
Also when i execute the co…
Is there a query to run in DB2 (or a command to run that would accomplish the same thing) that will show me all tables with an owner of "username".
I know in Oracle - we would run the following com…
Using DB2 on an iSeries I need to create a query that will produce sales results for the week, month, and year in one query. I can create them individually and my code for the week is as follows:
I am writing a program where the boss wants the calc specs in RPG Free. I am struggling with what used to be a simple thing but its not so simple for me in Free format . The input file has a single …
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions. It's not alway…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns. A previous article described the process of con…
2,144 points this week
2,000 points this week
Greater Los Angeles Area, United States
2,000 points this week
Pawan Kumar Khowal
Railway Road Gurgaon, Haryana, India
2,000 points this week
Sellersburg, Indiana, United States
10 points this week