D
drolfe
Preface:
Table A:
Primary Key - Foreign Key - OutValueA - OutValueB - OutValueC
--------------------------------------------------------------------------------------------------
1 1 3 0
20
2 2 2 1
30
Table B:
Primary Key - Foreign Key - InValueA - InValueB
-------------------------------------------------------------------------
1 1 -1 0
2 1 -1 0
3 1 -1 0
4 2 0 -1
5 2 -1 0
6 2 -1 0
Table C:
Primary Key - Foreign Key - InValueC
--------------------------------------------------------
1 1 20
2 1 20
3 2 30
4 2 30
Requirement:
I need to count the check boxes from InValueA and InValueB into
OutValueA and OutValueB
To average the TableC (per Foreign Key) into OutValueC
I made some crosstab querys and was able to get the desired result, but
was unable to combine the three querys into a single table.
Any ideas??
Table A:
Primary Key - Foreign Key - OutValueA - OutValueB - OutValueC
--------------------------------------------------------------------------------------------------
1 1 3 0
20
2 2 2 1
30
Table B:
Primary Key - Foreign Key - InValueA - InValueB
-------------------------------------------------------------------------
1 1 -1 0
2 1 -1 0
3 1 -1 0
4 2 0 -1
5 2 -1 0
6 2 -1 0
Table C:
Primary Key - Foreign Key - InValueC
--------------------------------------------------------
1 1 20
2 1 20
3 2 30
4 2 30
Requirement:
I need to count the check boxes from InValueA and InValueB into
OutValueA and OutValueB
To average the TableC (per Foreign Key) into OutValueC
I made some crosstab querys and was able to get the desired result, but
was unable to combine the three querys into a single table.
Any ideas??