Nesting queries
Hi
I am trying to generate a table which when a user filters on a variable the variable column remains but the values in col 1 change.
example
Col1 Col2
A 4
B 5
C 6
D 7
The user has an option to filter on ABC or D.
My table /query returns (D chosen)
Col1 Col2
D 7
However I would like it to return
Col1 Col2
A 0
B 0
C 0
D 7
Im wondering if a nested querie is the answer like
Select Col1 From ColTable, (Select Col2 From Datatable Where Col1 = D) as Col2
Then I get stuck
Can any one help or suggect anything for fixing report columns
