Show Bid Request
Single MSSQL Query
Bid Request Id: 12464
|
|
|
Description:
I'm using MS FTS (Full Text Search) Service on MS-SQL2K. For some reason, I can't seem to get this query to work for me.
I have a products table of computer related hardware, sorted out by Category_id (i.e - hp5l and hp6l have a category_id of 6 which is "laser printers"). I want to output a FTS query (using containstable), but to output only a maximum of 2 records PER CATEGORY_ID.
The FTS query is working great, it's just the distinct issue causing me problems:
SELECT Product.Product_id,Product.Product_title,Product.Category_id FROM Product INNER JOIN CONTAINSTABLE(Product,*,SearchTerm,10) AS Ranking ON Product.Product_id=Ranking.[key] LEFT JOIN Category ON Product.Category_id=Category.Category_id WHERE Product.Product_status IS NOT NULL ORDER BY Ranking.RANK DESC
I need a TSQL query to output a sorted FTS (based on the above query) by rank (desc) and then, "grouped" by Category_id. Very similiar to what Google does on this link: http://www.google.com/search?hl=en&q=Hewlett+Packard (Notice that ONLY the first 2 results come from Hp.com)
Anyone who knows SQL, that should be easy for you (I guess), I will post perfect feedback on whoever can get this working by tommorow. Let me know what's your bid too, and if you need more information. Thanks!
Michael.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Win2K,SQL2K
Must be 100% finished and received by buyer on:
Apr 8, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
I can beta test and debug your query as I have enough content to try it on.
Do not forget to optimize this as much as possible.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
|
$100 (USD)
|
Apr 2, 2002 3:57:15 PM EDT
|
10
(Excellent)
|
|
|
EASILY. Give me a database script and I'll send you work done. Regards |
|
|
|
This bid was accepted by the buyer!
|
$15 (USD)
|
Apr 4, 2002 6:17:00 AM EDT
|
10
(Excellent)
|
|
|
Intresting job |
|
|
|
|
|