Hi,
I have a main transaction table which is related to a department table via a department_id field. The department table is then related to a workgroup table via a group_id field and then the workgroup table is related to a business table via a business_id. This then enables you to search by different business id's to identify transactions made in those businesses. The department_id field is recorded as a single number in the transaction table, this then relates to a bunch of departments in the dept table, which is related/grouped in the workgroup table which is related to business table. So you can search for business id 1 for example, and it will find all relevant department id's associated with that business.
There are 7 business id's in the business table relating to the following businesses:
Hair
Beauty
SunBed
.
.
.
.
etc
What I want to be able to do is to find people who have made a transaction in more than one business eg I want to be able to find someone who has spent in Hair , Beauty and Sunbed. At the moment I can search by one business by running a query and searching for a single businees id in the business_id field, but i need to search by more than one busines_id. How do i do it??
Cheers
Paul
I have a main transaction table which is related to a department table via a department_id field. The department table is then related to a workgroup table via a group_id field and then the workgroup table is related to a business table via a business_id. This then enables you to search by different business id's to identify transactions made in those businesses. The department_id field is recorded as a single number in the transaction table, this then relates to a bunch of departments in the dept table, which is related/grouped in the workgroup table which is related to business table. So you can search for business id 1 for example, and it will find all relevant department id's associated with that business.
There are 7 business id's in the business table relating to the following businesses:
Hair
Beauty
SunBed
.
.
.
.
etc
What I want to be able to do is to find people who have made a transaction in more than one business eg I want to be able to find someone who has spent in Hair , Beauty and Sunbed. At the moment I can search by one business by running a query and searching for a single businees id in the business_id field, but i need to search by more than one busines_id. How do i do it??
Cheers
Paul