Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 average member rating
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sr_erick
Senior Member

USA
1318 Posts

Posted - 01 March 2005 :  02:50:36  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Hello all, what I'm looking for is a solution to my problem. I want to display a calculated average from another table along side the username in the forum with every post that user makes. The only problem is I cannot use an aggragete function such as avg(RATE) in with the main queries which call the topic and all the replies because of the nText fields.
What I have is a table with three fields:
-The user being rated
-The user making the rating
-The rating that user gave (1-5)

If I remove all of the nText fields from the query everything works as I want but I need to get the reply text too. I don't want to send 20 queries per page of replies to the database just for an average member rating. There has to be some clever way around this.

Any ideas? The file is topic.asp, if you know snitz you'll know which queries I'm talking about. One to get the topic and the other to get all the replies.




Erick
Snowmobile Fanatics


Edited by - sr_erick on 01 March 2005 02:51:25
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07