arvids Posted January 25, 2005 Posted January 25, 2005 I have a DB with a varying number of records per client. (I.e. client A have 5 records, client B have 1 record, client C have 12 records, client D have 0 records and client E have 3 record) One part of the DB shold in a portal reflect what clients (at that time) have records, and how many. Something like this: Portal ------- A 5 B 1 C 12 E 3 ------- This portal will serve as an index, for a CD backup of client material. Is this possible? I have a feeling I have seen something similar before, but can not remember how/where?? Regards!
transpower Posted January 25, 2005 Posted January 25, 2005 I wonder about your database structure. There should be at least two tables here: Client and Activity. (Client and Activity are linked by ClientID). You can show Activity records in a portal in Client. Add a field (in Client) to count the records in the portal: count_act = Count(Activity::clientID).
arvids Posted January 25, 2005 Author Posted January 25, 2005 Yes, you made me see it a lot more clear! I'll rearrange and add another table, that will work. Thanks!
Recommended Posts
This topic is 7242 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now