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?

Problem making the module work
(1 viewing) (1) Guest
Go to bottomPage: 12345678
TOPIC: Problem making the module work
#59193
Re:Problem making the module work 7 Years, 11 Months ago Karma: 760
Your query doesn't contain FROM, see the query from our previous message please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59194
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Super works
I forgot FROM
Thanks for the help
The administrator has disabled public write access.
 
#59207
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Hello,
I grouped the id field, I need to show more fields from the smallest numbers.
Code:

SELECT
C.id,
C.user_id,
C.tc1,
C.tc2,
C.tc4,
C.tc5,
CAT.avatar,
B.username,
@curRank := @curRank + 1 AS Pozice
FROM
#__chronoengine_chronoforms_datatable_treningove_casy C INNER JOIN
#__jsn_users CAT ON C.user_id = CAT.id INNER JOIN
#__users B ON C.user_id = B.id
, (SELECT @curRank := 0) r
GROUP BY C.user_id
ORDER BY C.tc5 ASC

Last Edit: 2016/12/14 14:33 By mkcup.
The administrator has disabled public write access.
 
#59211
Re:Problem making the module work 7 Years, 11 Months ago Karma: 760
Hello,

Could you explain in more details what do you want to show? When "GROUP BY" is used, only one record is selected according to "GROUP BY" filter. In your case only one record for each user will be selected, ORDER BY is applied by database after "GROUP BY" selection and it doesn't affect on "GROUP BY" selection.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59212
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Thanks for the reply
I need GROUP BY 1 record of each user.
I need to record with the lowest value in the table Nejlepší Cas;as
according to the image above
Last Edit: 2016/12/14 17:24 By mkcup.
The administrator has disabled public write access.
 
#59213
Re:Problem making the module work 7 Years, 11 Months ago Karma: 760
You can try to use this solution.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345678