i have a table which contain all values of items for all dates. table name is item_data
╔═════════╦═══════╦═════════════╗
║ item_id ║ value ║ report_date ║
╠═════════╬═══════╬═════════════╣
║ 101 ║ 50 ║ 2014-10-11 ║
║ 102 ║ 50 ║ 2014-10-11 ║
║ 101 ║ 100 ║ 2014-10-12 ║
║ 102 ║ 11 ║ 2014-10-12 ║
╚═════════╩═══════╩═════════════╝
and i have another table which contain item names table name is page_items
╔═════════╦═══════════╗
║ item_id ║ item_name ║
╠═════════╬═══════════╣
║ 101 ║ sprite ║
║ 102 ║ egg ║
╚═════════╩═══════════╝
my requirement is i want to display values as below
╔═════════════╦════════╦═════╗
║ report_date ║ sprite ║ egg ║
╠═════════════╬════════╬═════╣
║ 2014-10-11 ║ 50 ║ 50 ║
║ 2014-10-12 ║ 100 ║ 11 ║
╚═════════════╩════════╩═════╝
can any one plz help me i am using mysql database please tell me the process to get this result