I have a database related question for WordPress.
My table is represented as follows:
ID | customID | column1 | column2
1 8 _item item number
2 8 _price item price
3 9 _item item number
4 9 _price item price
I want to retrieve the following rows using a MySQL SELECT statement:
CustomID | _price | _item |
8 item price(from col2) item number(from col2)
9 item price(from col2) item number(from col2)
Is this possible? The value _price and _item should be shown as columns with values from column2. How to solve this?