There's more to experience when you log in!
From Counties, Counties2
WHERE Counties.A2_Code <> Counties2.A2_Code
and Counties.Obj Intersects Counties2.Obj
t1.SomeIDColumn <> t2. SomeIDColumn
t1.SomeIDColumn < t2. SomeIDColumn
Select t1.KOMKODE + "-" + t2.KomKode "BorderName"
, Overlap(CartesianBuffer(t1.obj, 12, 5, "cm"), ConvertToPline(t2.obj)) object
From Kommune_99_poster As "t1", Kommune2 As "t2"
Where t1.KOMKODE < t2.KomKode
And t1.Obj Intersects t2.obj
Select *From Counties, Counties2WHERE Counties.A2_Code <> Counties2.A2_Codeand Counties.Obj Intersects Counties2.ObjInto Selection