Forums.Sureshkumar.net : A Perfect Place to Share Knowledg Blogs   Games  Magazines   click here

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > Interview Questions > Interview Questions > Dot Net > ASP.NET
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

ASP.NET ASP.NET Interview Questions asked in various Interviews. Professionals are invited to share Answers for these ASP.NET Interview Questions. ASP.NET Interview Questions with answers, Experiences, Career Advices, Tips and more.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 22-09-08, 03:15 PM   #1 (permalink)
Junior Member
 
Join Date: Sep 2008
Age: 28
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 Phanikumar.J is on a distinguished road
SQL Query Using Full Text Engine inSQL 2005



Hello
I need help regarding a SQL Query
We are designing a job site, and there is a job search. In this search
There is a textbox for entering the keywords or any string for the search.
After the Search button click I should give results of the string in a data grid.
But I had doubt in SQL Query. Here I am using Full text engine in SQL 2005. And the queries are FREETEXTTABLE and COTAINSTABLE.
The rank differs for both.
Example:
Enter Keywords : I want job in c ,vb company is Microsoft.
FREETEXTABLE QUERY:

Select * From jobposting as posting Innerjoin Freetextable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc








CONTAINSTABLE QUERY:

Select * From jobposting as posting Innerjoin Containstable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc



Suggest me the appropriate query for my search,

Thanking You,
Phani.
Phanikumar.J is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-08, 01:50 PM   #2 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 platha is on a distinguished road
Re: SQL Query Using Full Text Engine inSQL 2005

Hi, Search with every word in each and details table, because the format may not be in the same order. we cant find the primary id, search with every word once by esuming each and every as the Id.
platha is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega Free Download S/W Links A-Z yathish OTHERS 514 26-12-08 05:16 PM
Requirement for SQL DBA /SQL Database Administrator jobs EXPERIENCED JOBS 1 13-06-08 11:02 AM
1000 Softwares ....Get Down load All yathish System Trouble Shooting 16 21-04-08 11:51 AM
1000 Softwares ....Get Down load All yathish OTHERS 13 05-01-07 11:59 PM
SQL SERVER 2000 QUESTIONS.... LALIT KUMAR VB / ASP.NET Technologies 2 16-12-06 06:29 PM


All times are GMT +6.5. The time now is 06:15 PM.




Get Short Listed Fast !! Upload Your CV here & Apply New Jobs Everyday.

Search Engine Optimization by vBSEO 3.1.0