mysql - Merging and converting rows to columns -
i have list of data happens have been set this:
entryid fieldid value 100 1 john 100 2 smith 100 3 usa 101 1 jane 101 2 doe 101 3 usa
the way works is, when "ticket" created, assigns entryid data in ticket, each field has it's own fieldid. first name fieldid of 1, last name 2, etc. need able create view this:
first name last name country john smith usa jane doe usa
i need able in mysql, , not sql or excel, other similar problems have addressed.
i found answer own question, post here future users. website explains how asking for: http://stratosprovatopoulos.com/web-development/mysql/pivot-a-table-in-mysql/
Comments
Post a Comment