Tell me something about the specific requirements,
CodePudding user response:
The subquery:
Select, Anderson d (select Max (name) from B to B where b.a ID=Anderson d and b.t ype=1) BName1, (select Max (name) from B to B where b.a ID=Anderson d and b.t ype=2) BName2, a.N ame from aa