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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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 12 Months ago Karma: 671
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 12 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 12 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 07:33 By mkcup.
The administrator has disabled public write access.
 
#59211
Re:Problem making the module work 12 Months ago Karma: 671
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 12 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 10:24 By mkcup.
The administrator has disabled public write access.
 
#59213
Re:Problem making the module work 12 Months ago Karma: 671
You can try to use this solution.

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