I have 3 tables, and I want to join all 3 table using pivot/crosstab. Let me give you structure of table.
Table name : wp_frm_item
id post_id user_id name 121 19241 3 balaji 120 19239 3 bajaj 119 19235 3 pressur Cooker
Table name : wp_postmeta
post_id meta_key meta_value 19241 Price: 590 19241 Shipping: 20 19241 Size: 250X20 19239 price 8412 19239 Shipping: 20
Table Name : wp_frm_item_meta
item_id field_id meta_value 121 96 happy 121 388 a:3 121 237 sell 120 96 no I'm sad 120 388 a:4 120 237 swap
And I want Output exactly like below:
post_id item_id user_id name price shipping size 96 388 237 19241 121 3 balaji 590 20 250X20 happy a:3 sell
Please help to execute query for this and thank you so much in advanced to read my post .