Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fine tuning a SPROC
Message
 
À
21/06/2007 14:45:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01234693
Message ID:
01234861
Vues:
8
>Am I doing something out of the ordinary here? I thought this was a pretty basic query.
>
No you didn't. But both tables are not related, that way SQL Server must compare each record from Table1 with all records in Table2.

BTW with LEFT JOIN you will get as many records as there are matching date intervals in Table2. Can you post some example data and desired result from it?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform