Hi, I'm using CR-8.5 with 1 SQL DB.
My DB has 2 tables. Table1 is my main table, and Table2 is my lookup table which supplies additional information, (kind of a Master lookup list)
I'm linking from Table1 to Table2 by a common string field.
Table1.ip --> Table2.ip
Table1 has 100 records, Table2 has 500 records.
my problem is that when I run a report I only get the 100 records from Table2 that have matches in Table1.
I need to be able to get a count of 500 from Table2 to use in calculations no matter how many records Table1 has.
I think I need a Right Outer Join, but get this error message:
ODBC error: [MySQL][ODBC 3.51 Driver][mysqld-4.0.16-standard] You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'RIGHT OUTER JOIN 'databasename'. 'TableName' TableName
I can do a Left outer join without getting the error, but it does change my output like I need above.
Any Ideas?
Thanks,
HC
My DB has 2 tables. Table1 is my main table, and Table2 is my lookup table which supplies additional information, (kind of a Master lookup list)
I'm linking from Table1 to Table2 by a common string field.
Table1.ip --> Table2.ip
Table1 has 100 records, Table2 has 500 records.
my problem is that when I run a report I only get the 100 records from Table2 that have matches in Table1.
I need to be able to get a count of 500 from Table2 to use in calculations no matter how many records Table1 has.
I think I need a Right Outer Join, but get this error message:
ODBC error: [MySQL][ODBC 3.51 Driver][mysqld-4.0.16-standard] You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'RIGHT OUTER JOIN 'databasename'. 'TableName' TableName
I can do a Left outer join without getting the error, but it does change my output like I need above.
Any Ideas?
Thanks,
HC