Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select max(date) from 3 tables
Message
 
To
11/11/2016 06:10:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01643159
Message ID:
01643160
Views:
58
Likes (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
Previous
Reply
Map
View

Click here to load this message in the networking platform