Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2014-02-07 : 01:36:11
|
select * from tableAPinID Curency Reference MGGNKH EUR PBBSF3PSN EUR PBBZC5G7G EUR PBB'''select * from tableBID PinID 12 MGGNKH 40 SF3PSN 79 ZC5G7G '''how can i inner join to get tableB details?If i join using the PinID it will take very long as the PinID is not index. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-02-07 : 02:11:51
|
You need to add the index to PinID.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|