My problem seems simple but I just can't figure it out. I have a single table that I need to construct a two column result from, using the values out of just one column in that table...
ID - ENTITY - CATEGORY
1 Bread Food
2 Apple Food
3 Computer Electronics
4 Chair Furniture
5 TV Electronics
6 Sofa Furniture
The results I need should look like this...
EAT_THIS - SIT_HERE
Bread Chair
Example (wrong) code...
select ENTITY as EAT_THIS from table where CATEGORY = 'Food'
select ENTITY as SIT_HERE from table where CATEGORY = 'Furniture'
.... but I can't seem to figure out how to get these two results on the same line like my example results show. Not sure if this makes sense, please let me know if further detail is needed.
Thanks