craigwoods
MIS
Hi
This problem has been driving me potty for some time now! I have an SQL Server 2005 database and am using CR XI.
I need to produce a report that is printed copy of the information held on the database. The report will show all of the valid options that are available to be selected and then tick off the details that have been selected on the database.
To do this i thought i would use a Left Outer Join between the lookup table and the data table, but all that happens is that only the matching data is returned and not the unmatched data.
For example:
Lookup
Strategic ID, Description
1, Safe
2, Healthy
3, Economic
4, Enjoy
5, Positive
Table:
Project ID, Strategic ID
1, 1
1, 2
1, 3
1, 4
2, 2
2, 3
What I get is
1, 1
1, 2
1, 3
1, 4
2, 2
2, 3
But what i want is
1, 1
1, 2
1, 3
1, 4
null, 5
null, 1
2, 2
2, 3
null, 4
null, 5
There are no selection criteria at the moment.
I think i'm missing something major, but i'm not sure what!!
Any help gratefully appreciated.
Craig
This problem has been driving me potty for some time now! I have an SQL Server 2005 database and am using CR XI.
I need to produce a report that is printed copy of the information held on the database. The report will show all of the valid options that are available to be selected and then tick off the details that have been selected on the database.
To do this i thought i would use a Left Outer Join between the lookup table and the data table, but all that happens is that only the matching data is returned and not the unmatched data.
For example:
Lookup
Strategic ID, Description
1, Safe
2, Healthy
3, Economic
4, Enjoy
5, Positive
Table:
Project ID, Strategic ID
1, 1
1, 2
1, 3
1, 4
2, 2
2, 3
What I get is
1, 1
1, 2
1, 3
1, 4
2, 2
2, 3
But what i want is
1, 1
1, 2
1, 3
1, 4
null, 5
null, 1
2, 2
2, 3
null, 4
null, 5
There are no selection criteria at the moment.
I think i'm missing something major, but i'm not sure what!!
Any help gratefully appreciated.
Craig