problem joining tables using vfpoledb in c#
hi everybody out there, i'm facing a problem trying to joining dbf tables. this is my scenario:
i'm using oledb provider for visual fox pro 9.0 to access dbf tables in a free table directory. i have two tables i like to join, the resumed tables are:
table m_solic fields: fech, cod_est, cod_est_rc.
table c_est_solic fields : cod_est, estado.
and i want to make a query with this result:
table (query) solic: fech, cod_est, desc_est, cod_est_rc, desc_est.
so when i'm configuring the oledbdataadapter i wrote directly the following sql sentence in the wizard:
SELECT m_solic.*, c_est_solic.ESTADO, c_est_solic_1.ESTADO
FROM (m_solic INNER JOIN c_est_solic ON m_solic.COD_EST = c_est_solic.COD_EST) LEFT JOIN c_est_solic AS c_est_solic_1 ON m_solic.COD_EST_RC = c_est_solic_1.COD_EST
which apparently is right!!! but the wizard give errors in select sintax, and unrecognized phrase or keyword.
i use the query builder in the oledbdataadapter configuration wizard and it builds a similar statement but it doesn't work too giving the same errors.
any idea whats happening in here???? thanks in advance!!!!
|