I am having two tables table_purchase1 and table_purchase2. From these tables i want to list purchase history with order by date.
My tables
table_purchase1
purchase_id user_id item date
1 1 AA1 2011-06-10
2 1 AA2 2011-06-12
table_purchase2
purchase_id user_id item date
1 1 BB1 2011-06-11
2 1 BB2 2011-06-13
Expecting result
item
BB2,AA2,BB1,AA1
How can i do this
Thanks
You can use UNION:
If you need single row following might work: