G
Guest
I wrote a report writer and it suffers from a lack of left and right joins.
Quite frankly, the results are useless without them.
For simplicity (and I wasn't thinking here), my joins are all ...
Can anyone suggest any better [a method - period] methods for building LEFT
and RIGHT joins dynamically? I don't think I can pull off the syntax with
all the uncertainty. Although, I did good so far
1. All the SQL is dynamic: select list; from clause; and where clause
2. All the information I need to know about my data model is stored in tables
3. Based on user's selections, I build three temp tables
4. Temp table 1 has select list information
5. Temp table 2 has from clause information
6. Temp table 3 has where clause informaiton
7. From those temp tables, I assemble a SQL statement
Any suggestions including good reading welcome. Thanks.
Quite frankly, the results are useless without them.
For simplicity (and I wasn't thinking here), my joins are all ...
Can anyone suggest any better [a method - period] methods for building LEFT
and RIGHT joins dynamically? I don't think I can pull off the syntax with
all the uncertainty. Although, I did good so far
1. All the SQL is dynamic: select list; from clause; and where clause
2. All the information I need to know about my data model is stored in tables
3. Based on user's selections, I build three temp tables
4. Temp table 1 has select list information
5. Temp table 2 has from clause information
6. Temp table 3 has where clause informaiton
7. From those temp tables, I assemble a SQL statement
Any suggestions including good reading welcome. Thanks.