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?

Ari Quiz QuestionVersion
(1 viewing) (1) Guest
component
Go to bottomPage: 12
TOPIC: Ari Quiz QuestionVersion
#59723
Re:Ari Quiz QuestionVersion 7 Years, 9 Months ago Karma: 2
mailllesek
The administrator has disabled public write access.
 
#59724
Re:Ari Quiz QuestionVersion 7 Years, 9 Months ago Karma: 2
sizin yerinize ben sorabilirim....
The administrator has disabled public write access.
 
#59726
Re:Ari Quiz QuestionVersion 7 Years, 9 Months ago Karma: 0
Hocam tabi ki mailleselim
zaten joomla ve eklentilerindeki en buyuk problemimiz genelde konusacak pek kisi bulamiyoruz. Herhangi bir problem ile karsilastigimizda cevabini zor buluyoruz. Buyrun mail adresim hocam:
mehmetyenidogan32@gmail.com
Last Edit: 2017/02/19 22:37 By babayorgun.
The administrator has disabled public write access.
 
#61200
Re:Ari Quiz QuestionVersion 7 Years, 2 Months ago Karma: 2
admin wrote:
Hello,

It requires to create an SQL query (or stored procedure) which will check that the not latest question versions have not references in #__ariquizstatistics table and then these records can be deleted from #__ariquizquestionversion table.

Regards,
ARI Soft

Help with this request. I just need to delete all versions of the question, leaving only the last one. Check for #__ariquizstatistics not needed
Last Edit: 2017/09/11 08:32 By stepan39.
The administrator has disabled public write access.
 
#61260
Re:Ari Quiz QuestionVersion 7 Years, 2 Months ago Karma: 760
Hello,

Try the following query:

Code:


DELETE FROM #__ariquizquestionversion WHERE QuestionVersionId IN (
SELECT
  *
FROM (
SELECT
 DISTINCT QV.QuestionVersionId
FROM
 #__ariquizquestionversion QV INNER JOIN #__ariquizquestion QB
  ON QV.QuestionId = QB.QuestionId
 LEFT JOIN #__ariquizquestion Q
   ON QV.QuestionVersionId = Q.QuestionVersionId
 LEFT JOIN #__ariquizstatistics S
   ON QV.QuestionVersionId = S.QuestionVersionId
WHERE QB.QuizId <> 0 AND Q.QuestionId IS NULL AND S.StatisticsId IS NULL
) T
)



PS: Create a backup before executing the query.

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