If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > IBM Universe - count multi value entries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-09, 06:00
Martin.Hughes Martin.Hughes is offline
Registered User
 
Join Date: Apr 2009
Posts: 2
Question IBM Universe - count multi value entries

Hi
Our Manufacturing system is based on an IBM Universe DB, I use smart query to extract data which I then use in MS Access to provide users with reports and queries.
I have an issue with a multi-value (currently 10 values) field, I have created a new field in the file combining the product code with the multi-value element which gives me something I can use in access but I need to add to this new field a count 1-10 so that I can identify the first to the 10th values which can then be used for sorting etc
I currently manipulate the output in Excel to add a field which counts the records per product code, but would dearly like to eliminate this step.
Anyone know how to achieve this?
Regards
Martin
Reply With Quote
  #2 (permalink)  
Old 04-15-09, 08:31
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
I'd just use the row identifier in the MS-Access query, or add an element counter to the Universe PROC query.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 04-15-09, 08:50
Martin.Hughes Martin.Hughes is offline
Registered User
 
Join Date: Apr 2009
Posts: 2
Thanks Pat
My derived Field is PRODCODE : ":" : SELLPRICE
I have tried adding @CNT but that doesn't work.
How do I add an "Element Counter"
Regards
Martin
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On