Print Page | Close Window

return 6 out of 7

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15920
Printed Date: 29 March 2026 at 7:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: return 6 out of 7
Posted By: urbantruth
Subject: return 6 out of 7
Date Posted: 20 July 2005 at 11:10pm
I'm trying to return records starting with the most relevant desending to the lest relevant bast on 7 veriables.
How do you write a SQL statment to return a bunch of records and order by matching of the veriables.
 
so return 7 out of 7 first but then any of the 6 out of the 7 and then any of the 5 out of 7.
 
i'm only been doing this for a year so any help would be appreciated.
 
mark



Replies:
Posted By: michael
Date Posted: 21 July 2005 at 2:08pm
how do you calculate the relevance? Is this a calcualted column or what? If it was you simple do 'order by relevance desc' but I guess thats not what you are after. go ahead and post your table/view and we can help you better.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net