How to check A, b, c corresponds to A table of values
CodePudding user response:
Pray god help MySQL queryCodePudding user response:
The column can be repeated, not can't repeat, you first table column B turned, and then related queriesCodePudding user response:
The select B.n ame,
(case biggest olumn
When 'a1' then A.a 1
When 'a2' then A.a 2
When 'a3' then A.a 3
The else 0
End value
From A, B where Anderson, d=B.i d