Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2005



Tip: Looking for answers? Try searching our database.

Help with query problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ltsakiris - 30 Aug 2005 20:49 GMT
I really hesitated posting this problem here, however I have tried over and
over to find a solution to this problem with no luck at all and Im really
stuck!!

We have a form that gets users to rank various 'skills' - each skill can have
a value from 1-5, and then stores the result in the db. There are 25 skills
they need to rank, and the values are stored in columns named 1 through 25. Its
been done this way because of the need to have a generic storage system for
various different forms.

The next step needs to then query these results, selecting the top 10 values
for that one user, and create another form for the user to 're-rank' these top
10 values to get the top 5.

At first I thought I could just pull the results into an array and then sort
them, however I then discovered I couldnt figure out how to re-associate the
values with the initial skills.

Im at the point right now where I've been spinning over this so many times I
cant see any type of solution. ANY HELP is greatly appreciated!!!
mxstu - 30 Aug 2005 21:41 GMT
I know this does not answer your question, but .... I'm not sure I see why this
generic format cannot be achieved with a row based table format.  Aside from
other benefits it would definitely make it easier to handle this type of
situation.
ltsakiris - 30 Aug 2005 22:51 GMT
Originally posted by: mxstu
I know this does not answer your question, but .... I'm not sure I see why
this generic format cannot be achieved with a row based table format.  Aside
from other benefits it would definitely make it easier to handle this type of
situation.

Thanks for the reply mxstu. HOwever, Im not sure I understand what you mean by
'row based table format'. ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.