Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple SQL Syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01119978
Message ID:
01119982
Vues:
23
This message has been marked as the solution to the initial question of the thread.
SELECT * FROM f:\5star\updates\new\supplier;
UNION ALL;
SELECT * FROM f:\5star\updates\amend\supplier;
INTO CURSOR suppliertmp
INDEX ON DateTimeField TAG suppliertmp
If you want to use ORDER you must use Field list in SQL Stements above and use position of DateTime in ORDER BY clause:
i.e
SELECT Fld1, fld2, DateToOrder, fld4 ....FROM f:\5star\updates\new\supplier;
UNION ALL;
SELECT Fld1, fld2, DateToOrder, fld4 .... FROM f:\5star\updates\amend\supplier;
ORDER BY 3
INTO CURSOR suppliertmp
>Hi Borislav
>
>I don't want to join tables for specific fields, just want to create a new table with everything from both tables and sort it into date & time order.
>
>>>Hi!
>>>
>>>All I want to do is join two tables together of identical file structure,
>>>
>>>
>>>SELECT * from f:\5star\updates\new\supplier FULL OUTER JOIN f:\5star\updates\amend\supplier INTO CURSOR suppliertmp
>>>
>>>
>>>Can't work out whats wrong with the above line? Ah well, it is Monday morning
>>>
>>>TAI
>>
>>You didn't specify the fields for joining tables.
>>also, did you want JOIN or you want UNION ALL?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform