Yii2 Displaying relation table data

I have a table with three columns namely "id, category, parent". How do I show data by category name by parent? If in query logic looks like this: select category from table.category where parrent = 01.

How do I display in gridview inside yii2?

Would you please describe more clearly your table schema and the construction of the relevant models with more details? What is the name of the table? What types the columns are? And what foreign key constraints do they have?