>>>SELECT table1.DATA_CLERK, "1" as Origin;
>>> FROM table1;
>>> HAVING table1.date1 <= m.date1;
>>> AND table1.date2 >= m.date2;
>>>UNION ALL;
>>>SELECT table2.data_clerk, "2" as Origin;
>>> FROM table2;
>>> HAVING table2.date1 <= m.date1;
>>> AND table2.date2 >= m.date2;
>>> into cursor Temp;Çetin Basöz
The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses
LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad