Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Can we combine the rows with same key... V S Amarendra Reddy DB2 12 Fri Dec 01, 2017 10:29 pm
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us