Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get data from 2 tables
Message
De
08/02/2019 11:17:18
 
 
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 SP2
OS:
Windows Server 2008 R2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01666006
Message ID:
01666103
Vues:
40
Sir you used your following codes
SELECT Date, DatePart(hour,Date) as Hr, reading
FROM bin1_empty A
WHERE EXISTS( 
(SELECT Min(Date) as date_B
FROM bin1_empty B
WHERE DatePart(hour,A.Date) = DatePart(hour,B.Date) 
HAVING B.Date_B = A.Date)
OR EXISTS(
SELECT Min(Date) as date_C
FROM bin1 C
WHERE DatePart(hour,A.Date) = DatePart(hour,C.Date)
HAVING C.Date_C = A.Date)
but it has error shown in image.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform