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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Deleting single entries from the results
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Deleting single entries from the results
#14803
Deleting single entries from the results 12 Years, 11 Months ago Karma: 0
Is there a way to delete a single entry from the results table?
I found a thread describing the way to empty out the sql table, but that clears out everything.

Cheers!
The administrator has disabled public write access.
 
#14807
Re:Deleting single entries from the results 12 Years, 11 Months ago Karma: 747
Hello,

You can use the next SQL query:

Code:


DELETE FROM
  jos_ariquizstatistics,
  jos_ariquizstatisticsinfo
USING
  jos_ariquizstatisticsinfo LEFT JOIN jos_ariquizstatistics
    ON jos_ariquizstatisticsinfo.StatisticsInfoId = jos_ariquizstatistics.StatisticsInfoId 
WHERE
  jos_ariquizstatisticsinfo.StatisticsInfoId = STATISTICS_INFO_ID



Where STATISTICS_INFO_ID is ID of necessary results. For example if ID equals to 3, use the next query:

Code:


DELETE FROM
  jos_ariquizstatistics,
  jos_ariquizstatisticsinfo
USING
  jos_ariquizstatisticsinfo LEFT JOIN jos_ariquizstatistics
    ON jos_ariquizstatisticsinfo.StatisticsInfoId = jos_ariquizstatistics.StatisticsInfoId 
WHERE
  jos_ariquizstatisticsinfo.StatisticsInfoId = 3



Regards,
ARI Soft
The administrator has disabled public write access.
 
#14885
Re:Deleting single entries from the results 12 Years, 11 Months ago Karma: 0
Thanks for the assistance.
The administrator has disabled public write access.
 
Go to topPage: 1