Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Duplicate rows: it a code problem or Data problem?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
padma_prakasam

New User


Joined: 06 Oct 2005
Posts: 31

PostPosted: Fri Apr 07, 2006 12:37 pm    Post subject: Duplicate rows: it a code problem or Data problem?
Reply with quote

For a select query I'm getting duplicate rows.Is it a code problem or Data problem? What may be solution for both the cases?
Back to top
View user's profile Send private message

perez_a

New User


Joined: 02 Feb 2006
Posts: 25
Location: Italy

PostPosted: Fri Apr 07, 2006 1:12 pm    Post subject: Re: Duplicate rows
Reply with quote

HI padma,
ARE U SURE THAT YOUR QUERY IS CORRECT?
WRITE YOUR QUERY FOR MORE DETAIL.
TRY TO USE "DISTINCT" CLAUSE TO SOLVE THE PROBLEM
HAVE A NICE DAY perez_a
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Apr 07, 2006 1:17 pm    Post subject:
Reply with quote

Hi padma,
In order to identify whether it is data problem i have a question.
IF business requirement says that there should be only one row for that particular selection criteria than it is data problem
if it says there can be more than one row than u have to
- Either include more condn in search criteria so that every time it gives only one row in result
- Or Use the cursor

Hope it will be helpful
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us