Question : Select Records in a particular priority

Hello Experts,

I've got a perplexing issue (at least for me).  I've got a sales manager that wants to assign customers to certain sales reps based off the customer purchase history.  

1.  If a sales rep with a "t" in their rep number has ever assisted a customer, then that customer is assigned to that last sales rep with a "t"

2. All other customers are assigned to the last sales reps (if any) that assisted them.  

So, if we look at the data:

tblA                                  tblB
 transID,CustID,Date       TransEntryID, TransID, Item, SalesRep
1, 1, 6/2/2010                  1 ,1,Item2, 8t
2, 1, 7/1/2010                  2, 2,Item3, 65t
3, 1, 8/4/2010                  2, 3,Item3, 32
                                        3, 3,Item4, 32
4, 2, 6/5/2010                  4, 3,Item2, 32
5, 2, 7/2/2010                  5, 4, Item1, 45
6, 2, 7/8/2010                  6, 5, Item3, Null
7, 3, 5/1/2010                   7, 6, Item1, Null

So the query results need to look like this:
CustID, SalesRep
1, 65t
2, 45
3, Null

AAAAGHHH!!!

Thank you :)



 

Answer : Select Records in a particular priority

Hi,

 During OS installation the installation routine will create (or will  have created) a volume group called rootvg consisting of hdisk0 containing the logical  volumes and filesystems pertaining to the OS (e.g. /, /usr, /var etc.)

 Next, you will have to decide whether to create an additional volume  group consisting of hdisk1 and hdisk2 to contain your data, or whether  to extend rootvg by hdisk1 and hdisk2 to place the data there.

 It's good and normal practice to create an additional volume group, so  I'd recommend doing it this way.

 The simplest way is to use "smitty mkvg" (choose "Scalable ...") to create the volume group and "smitty crfs" (choose "Enhanced...") to create filesystems along with their mountpoints (that's probably what you call "folder").

Should you need assistance with this, please let me know. I'll help you.

wmp


Random Solutions  
 
programming4us programming4us