I have a table with related data across multiple rows that I need to query as one row IF the meta_key value is in ('A', 'B', 'C')
.
meta_id | post_id | meta_key | meta_value
--------+---------+----------+-----------
1 | 1234 | A | Foo
2 | 1234 | B | Bar
3 | 1234 | C | Baz
4 | 1234 | D | junk
What I am looking to end up with is a query that gives me results
Output
A | B | C
----+-----+----
Foo | Bar | Baz