Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fine tuning a SPROC
Message
 
 
À
21/06/2007 13:36:21
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:
01234803
Vues:
13
Did you try (just in case) to switch tables around, e.g.
select * from Table2 ;
inner join table1 ;
on table2.StartDate <= table1.RecordDate and table2.EndDate >= table1.RecordDate
>Table1 contains a record for each day that contains certain interest rates.
>Table2 contains a record for a range of days (specified by StartDate and EndDate - no overlap) that contains other interest rates.
>
>I want to link the tables, and view the corresponding Table2 record with each Table1 record. The tables are unrelated otherwise.
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform