How do I write a query to join two tables
- Kelechi Kalu
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 6 months ago #6756
by Kelechi Kalu
How do I write a query to join two tables was created by Kelechi Kalu
Hello,
I would like to create a Table Chart Type containing values from two different tables within an existing Database in my Joomla website. How can I write a query to join two tables?
See the attached screenshot showing two tables that I need to extract information to populate my Table Chart Type.
Kindly provide me a sample query.
I would like to create a Table Chart Type containing values from two different tables within an existing Database in my Joomla website. How can I write a query to join two tables?
See the attached screenshot showing two tables that I need to extract information to populate my Table Chart Type.
Kindly provide me a sample query.
Please Log in to join the conversation.
6 years 6 months ago #6758
by Daniel
Thanks
Daniel
Replied by Daniel on topic How do I write a query to join two tables
Hello,
To write a query, you must have knowledge of MySql. The query would be like the following: select a.name, b.value from table1 as a join table2 as b on a.catid=b.id
To write a query, you must have knowledge of MySql. The query would be like the following: select a.name, b.value from table1 as a join table2 as b on a.catid=b.id
Thanks
Daniel
Please Log in to join the conversation.