Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select max(date) from 3 tables
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 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01643159
Message ID:
01643160
Vues:
59
J'aime (1)
>
SELECT max(date) as date 
from (
select max(date) as date from crprp
union all
select max(date) as date from pouring
union all
select max(date) as date from product
) as data
MartinaJ

>Sir I am using these codes
>
>
>SELECT data.date
>from (
>select max(date)as date from crprp
>union all
>select max(date)as date from pouring
>union all
>select max(date)as date from product
>) as data
>group by data.date
>
>
>It displays 2 different dates shown in attachment but I need only one data that is maximum DATE from 3 tables.
>
>Please help
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform