I have 3 tables, Tickets, Category, and Sub Category. In Yii2 Reportico in order to generate reports you need to configure the SQL Query.
SELECT id, time_start, time_end, details, room_no, employee_id, category_id, sub_cat_id FROM tickets
This is my SQL Query for getting data in tickets table, instead of displaying the category_id and sub_cat_id. I want to display the category_name and sub_category, what is the proper sql syntax?
You can try something like this and see if you get the category name:
I'm not aware of field names you have in Category and Sub Category tables, but if it works for Category, try adding Sub Category table in a similar manner, or post the field list of both tables.