How to optimize query when join on varchar column in Sql Server -
i have 2 tables , b
select a.id, b.name inner join b on a.name = b.name
how optimize query? name
column varchar(8)
you should create index on both tables , b
create index index_name on table_name (column_name)
Comments
Post a Comment