答案 0 :(得分:4)
使用自交叉连接:
Entity contact = new Entity("contact")
Guid contactId = _service.Create(contact);
Entity refreshedContact = _service.Retrieve("contact", contactId, new ColumnSet("new_fieldupdatedbyplugin"));
请参见demo。
结果:
select
t1.name TeamA,
t2.name TeamB
from tablename t1 cross join tablename t2
where t1.name < t2.name
order by t1.name, t2.name
答案 1 :(得分:1)
您需要的是交叉连接:
SELECT a.name, b.name
FROM test a
CROSS JOIN test b
where a.name < b.name