Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION with ORDER BY
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
UNION with ORDER BY
Divers
Thread ID:
01234316
Message ID:
01234316
Vues:
43
Hi Gang....

This code throws up a "SQL: Order By clause is invalid" error.
SELECT * from regtrans ;
	WHERE regtrans.trans_date >= Thisform.cntDates.txtFrom.Value AND ;
		  regtrans.trans_date <= Thisform.cntDates.txtTo.Value ;
	UNION ;
SELECT * from tranhist ;
	WHERE tranhist.trans_date >= Thisform.cntDates.txtFrom.Value AND ;
		  tranhist.trans_date <= Thisform.cntDates.txtTo.Value ;
	INTO CURSOR csrTotalTran ORDER BY trans_date, trans_time
What is wrong?

Thanks!
Tommy Tillman A+ NetWork+ MCP
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform