Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Join
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00669751
Message ID:
00669900
Vues:
13
Did you include the changes to the Where clause that Sergey suggested?
FROM 
	holding thold 
	left outer join holding yhold on (thold.portid = yhold.portid and thold.securityid = yhold.securityid) 
	inner join security on thold.securityid = security.securityid 
	inner join portfolio on thold.portid = portfolio.portid 
WHERE 
	thold.date = @asofdate 
	and (yhold.date IS NULL OR yhold.date = @prevdate)
I can think of no reason that this wouldn't work.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform