Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best performance ?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00934134
Message ID:
00934628
Views:
23
__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/
Previous
Reply
Map
View

Click here to load this message in the networking platform