If anyone can help. When using Query Analyzer the Top query and the bottom query both produce valid results but when run together i get a error .
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
The bottom returns a list of names joe,jack etc.
Any Help would be great
select d.clerkname,d.slatype,d.amount,d.invoicenum
from dt..reportingdata d
inner join dt..transactions b
on d.cardnumber=b.customer and d.invoicenum = b.invoicenum
where
clerkname in
(
SELECT distinct Clerk_Name
FROM [T C]..clerk_table c
INNER JOIN [T C]..terminals t ON
c.Terminal_Id = t.Id
INNER JOIN [T C]..company_names n ON t.Customer = n.Id
WHERE (t.Number LIKE '96%')
)
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
The bottom returns a list of names joe,jack etc.
Any Help would be great
select d.clerkname,d.slatype,d.amount,d.invoicenum
from dt..reportingdata d
inner join dt..transactions b
on d.cardnumber=b.customer and d.invoicenum = b.invoicenum
where
clerkname in
(
SELECT distinct Clerk_Name
FROM [T C]..clerk_table c
INNER JOIN [T C]..terminals t ON
c.Terminal_Id = t.Id
INNER JOIN [T C]..company_names n ON t.Customer = n.Id
WHERE (t.Number LIKE '96%')
)