IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Duplicate rows: it a code problem or Data problem?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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: 1209
Location: Bangalore,India

PostPosted: Fri Apr 07, 2006 1:17 pm
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts To Discard record with 0 entry if Dup... SYNCSORT 7
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
Search our Forums:


Back to Top