MySQL Forums
Forum List  »  Newbie

Re: two results from column, as two columns
Posted by: Peter Brawley
Date: March 13, 2020 12:50PM

It's an EAV table? You need to pivot on the attribute column. There's a collection of EAV sources under "EAV designs and queries" at https://www.artfulsoftware.com/infotree/mysqltips.php, and a collection of articles on pivot tables under "Pivot tables (corsstabs)" at https://www.artfulsoftware.com/queries.php.

But consider redesigning the table to standard relational model.

Options: ReplyQuote


Subject
Written By
Posted
Re: two results from column, as two columns
March 13, 2020 12:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.