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?

Query help
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Query help
#47573
Query help 10 Years, 10 Months ago Karma: 0
Hello, thank you for helping with this query; it works perfect.

How would I display data for a specific quiz ID? Table is c_quiz_id.

SELECT
QU.c_date_time,
U.name,
QU.c_quiz_id,
QU.c_total_score,
QU.c_passing_score,
QU.c_max_score,
QU.c_passed,
QU.c_total_time,
U.email
FROM
#__quiz_r_student_quiz QU INNER JOIN #__users U
ON QU.c_student_id = U.id

example would only like to display above results for quiz 5 only.
Last Edit: 2014/01/29 06:11 By xcarlson.
The administrator has disabled public write access.
 
#47574
Re:Query help 10 Years, 10 Months ago Karma: 760
Hello,

Use the following query:

SELECT
QU.c_date_time,
U.name,
QU.c_quiz_id,
QU.c_total_score,
QU.c_passing_score,
QU.c_max_score,
QU.c_passed,
QU.c_total_time,
U.email
FROM
#__quiz_r_student_quiz QU INNER JOIN #__users U
ON QU.c_student_id = U.id
WHERE
QU.c_quiz_id = 5

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47588
Re:Query help 10 Years, 10 Months ago Karma: 0
Awesome! and if I wanted to report on just quiz 5 and 2?

Thanks in advance...
The administrator has disabled public write access.
 
#47590
Re:Query help 10 Years, 10 Months ago Karma: 760
Use the following query:


SELECT
QU.c_date_time,
U.name,
QU.c_quiz_id,
QU.c_total_score,
QU.c_passing_score,
QU.c_max_score,
QU.c_passed,
QU.c_total_time,
U.email
FROM
#__quiz_r_student_quiz QU INNER JOIN #__users U
ON QU.c_student_id = U.id
WHERE
QU.c_quiz_id IN (2,5)

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