I’m not sure if “linearization” is the proper term, but I need a query that will output something like this:
item_name item_price first_name last_name
-----------------------------------------------
'camera' '100' 'Little' 'Timmy'
'computer' '200' 'Little' 'Timmy'
Here’s my DB: http://pastebin.com/iS4QKHEb
Any help is greatly appreciated. Thanks.
Here’s:
But the problem is I don’t see what there is to group by in order to get the two rows you want as output – the
datasourceidis the same for all the records, so it can’t be used.And if you [likely] want this to be dynamic, it’ll require dynamic SQL via MySQL Prepared Statement syntax.