select division.wid, dbid.xid from dbid, division where division.wid = dbid.otherwid;
