I want to get distinctdistinct of two columns from an sqlSQL table.
I am getting this result can i Can I optimize this query.?
create TABLE #Temporary_tbl
(
ProductColour VARCHAR(50),
ProductSize VARCHAR(20),
)
insert into #Temporary_tbl (ProductColour)
select distinct productcolour
from shoptransfer
insert into #Temporary_tbl (ProductSize)
select distinct ProductSize
from shoptransfer
select * from #Temporary_tbl