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
 

 

Unique on multiple feilds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Unique on multiple feilds
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

Site Director


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

PostPosted: Tue Mar 18, 2008 11:45 pm    Post subject:
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    Post subject: Reply to: Unique on multiple feilds
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

Site Director


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

PostPosted: Wed Mar 19, 2008 7:28 pm    Post subject:
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    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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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