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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -