Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique identifier in SQL statement from multiple tables?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Unique identifier in SQL statement from multiple tables?
Divers
Thread ID:
00367710
Message ID:
00367710
Vues:
53
Hi everyone,

Do you know, is there a way to add unique identifier in SQL, which operates on several tables. I know, it could be done on one table:
select recno() as RecNum, * from MyTable into table OutTable
or it could be done in 2 steps for multiple tables:
select * from MyTable1 inner join MyTable2 on MyTable1.Pk=MyTable2.Fk into cursor MyCursor
select recno() as RecNum, * from MyCursor into table OutTable.

My question is: can we combine these two steps into one?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform