Mam dwa pytania:Nie można rozwiązać konflikt sortowania w Unii wybrać
pierwsze nie działa:
select hotels.TargetCode as TargetCode from hotels
union all
select DuplicatedObjects.duplicatetargetCode as TargetCode
from DuplicatedObjects where DuplicatedObjects.objectType=4
ponieważ otrzymuję błąd:
Cannot resolve collation conflict for column 1 in SELECT statement.
drugie działa:
select hotels.Code from hotels where hotels.targetcode is not null
union all
select DuplicatedObjects.duplicatetargetCode as Code
from DuplicatedObjects where DuplicatedObjects.objectType=4
Struktura:
Hotels.Code -PK nvarchar(40)
Hotels.TargetCode - nvarchar(100)
DuplicatedObjects.duplicatetargetCode PK nvarchar(100)
Jakie jest znaczenie C# tutaj? –
@John Skeet Poprawiłem to – user278618