Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join on inequality
Message
 
 
To
11/10/2001 10:45:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00566970
Message ID:
00566977
Views:
15
Hi Hilmar,

Is a date one and only join condition? Can you provide little bit more info about relationship between those two tables?

>I want to JOIN one table with another one. The fields should be joined by date. Instead of the exact date, I want to find a record, in the second table, whose date is closest (<=) to a certain date in the first table. In other words, an exact match may, or may not, exist.
>
>Can this be done with SQL - SELECT syntax? I was thinking about the workaround of writing a function that gets the PK of the second table, and then use that field for the join. However, I was wondering whether there was a simpler way to do this.
>
>TIA, Hilmar.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform