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

Unique on multiple feilds


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Tue Mar 18, 2008 2:15 pm
Reply with quote

Can anyone suggest me how to use the UNIQUE command on multiple columns ?

Thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2008 11:45 pm
Reply with quote

Hello,

Please post an example of your "input" data values and what you want "unique" to accomplish as "output".
Back to top
View user's profile Send private message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Wed Mar 19, 2008 11:18 am
Reply with quote

Thanks

I need only on row to be displayed for a set of values for all the feilds.


DATA_GRP_ID | VERSION | ACCESS_ID | FUNCTION | QUAL
CD020 01 CA010 R UNIQUE
CD030 12 CA010 R UNIQUE
CD232 01 CAD10 R UNIQUE
CD020 01 CA010 R UNIQUE
CD480 03 CA01W R CLOSE
CD020 01 CA010 R UNIQUE
CD030 12 CA010 R UNIQUE
CD020 01 CA010 R UNIQUE
CD232 01 CAD10 R UNIQUE
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 19, 2008 7:28 pm
Reply with quote

Hello,

Quote:
I need only on row to be displayed for a set of values for all the feilds.
Sorry, but i do not understand what this tells me. If you want "only one row" what would it contain?

Is there a reason the .jpg is posted twice?

Once your requirement is understood, we may be able to offer some usable suggestions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top