Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to display Joint tables in a module or article
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to display Joint tables in a module or article
#58005
How to display Joint tables in a module or article 8 Years, 4 Months ago Karma: 0
Hi,

I have set up my relational database consisting of 4 tables and I have come up with problems of where to go next. I can show individual tables in modules and articles but don't know how to show the relevant data when the tables are joint. I actually want to give an option to the user to check his status/ his relevant data such as his exam marks etc, that are recorded on the relational tables.
Can you help, i am not a coder but just a guy using extensions such as yours to configure joomla for a specific user group.

Kind regards
Last Edit: 2016/07/10 12:10 By admin.
The administrator has disabled public write access.
 
#58007
Re: How to display Joint tables in a module or article 8 Years, 4 Months ago Karma: 760
Hello,

It is possible to use JOIN construction in "SELECT" SQL query to combine data from several tables. For example the following SQL query get data from #__content and #__categories tables:

Code:


SELECT
 C.id AS ArticleId,
 C.title AS Article,
 CAT.title AS Category
FROM
 #__content C INNER JOIN #__categories CAT
   ON C.catid = CAT.id



Regards,
ARI Soft
The administrator has disabled public write access.
 
#58008
Re: How to display Joint tables in a module or article 8 Years, 4 Months ago Karma: 0
Got it thank you very much for the prompt reply
The administrator has disabled public write access.
 
Go to topPage: 1