Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best performance ?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00934134
Message ID:
00934628
Vues:
22
__Stephan,

I thought you were creating a physical table, this way there is less locations to modify.

create table DistributionList (
dtrkey int autoincrement not null
dtrtype varchar(50)
)

index on dtrkey

in your stored proc I would just reference this as follows.

select ytdsales, dtrtype
from ytdSalesTable inner join DistributionList
FROM ytdSalesTable INNER JOIN DistributionList ON ytdSalesTable.dtrkey = DistributionList.dtrKey

I would think a list would be better maintained from a permanent table.
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform