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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 inner join not index

Author  Topic 

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2014-02-07 : 01:36:11
select * from tableA

PinID Curency Reference
MGGNKH EUR PBB
SF3PSN EUR PBB
ZC5G7G EUR PBB
'
'
'

select * from tableB

ID 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 Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -