Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ccb-it2013
Contributor
Contributor

How do a join with 2 dbf files?

Hi there,

For the life of me I can't join 2 dbf files so that I can get the necessary data I need from the second database.

In my script I have this:

SELECT * FROM ADO CONMANPO_H

The name of the second dbf I need to get data from is called say CONMANPO_D . They field they have in common is called PONO.

I tried this:

LEFT JOIN CONMANPO_H on  PONO as CONMANPO_D

However I get a script error when I try running the script.

What am I doing wrong?? I am sure it is something really simple.

Thanks for your help!

49 Replies
vishsaggi
Champion III
Champion III

I am sorry, my mistake use i meant OLEDB not ODBC.

OLEDB CONNECT32 TO [Provider=VFPOLEDB.1;Data Source=G:\AIMS\QVDATA\CMP4\;Collating Sequence=general;];

Table1:

SELECT * FROM ADOCONMANPO_H;

OLEDB CONNECT32 TO [Provider=VFPOLEDB.1;Data Source=G:\AIMS\QVDATA\CMP4\;Collating Sequence=general;];

Table2:

SELECT * FROM ADOPOLINS;

ccb-it2013
Contributor
Contributor
Author

I think you must use the VFPOLEDB driver or else the tables can not be read.

I apologize for the frustration and I appreciate your efforts to help me, I don't have anywhere else to turn to...

vishsaggi
Champion III
Champion III

What is VFPOLEDB?

ccb-it2013
Contributor
Contributor
Author

Qv_2018-04-20_16-40-30.jpg

This is the script I have:

SQv_2018-04-20_16-41-57.jpg

So it would seem using the OLEDB driver works!

ccb-it2013
Contributor
Contributor
Author

VisualFoxPro OLEDB driver

vishsaggi
Champion III
Champion III

Ok you have that driver?

ccb-it2013
Contributor
Contributor
Author

Yes, this is what I have been using since we started using QV.

vishsaggi
Champion III
Champion III

Hi Edward,  you still facing issues with this? What time zone you are in?

ccb-it2013
Contributor
Contributor
Author

Hi Vishwarath,

Yes, I am still having issues with joining the 2 tables to get the information needed for my report.

I am in the Eastern Daylight Savings Time zone.

Regards,

Edward

vishsaggi
Champion III
Champion III

We can screenshare if that is ok with you. Email me on vishsaggi@gmail.com