clear markdown compare help best fiddles feedback dbanow.uk a leap of faith?
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 1305687 fiddles created (20236 in the last week).

create table xxx (keynumber nvarchar(10) primary key clustered, comment nvarchar(20))
 hidden batch(es)


insert into xxx (keynumber,comment) values ('12345','First Comment'), ('''12345','Second Comment'), ('12346','Third Comment'), ('''12346','Fourth Comment'), ('123457','Fith Comment')
5 rows affected
 hidden batch(es)


SELECT x1.keynumber, x2.keynumber FROM xxx as x1 JOIN xxx as x2 ON '''' + x1.keynumber = x2.keynumber
keynumber keynumber
12345 '12345
12346 '12346
 hidden batch(es)