Advertisement

01.15.2007 at 07:22AM PST, ID: 22122982
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

How to split a sentence, and display results based on the words

Asked by mousemat24 in MS SQL Server

Tags:

Hi there,

Wonder if you can help me?

I have the following Stored procedure:

@GUID            varchar(16),
@LOS            varchar(16),
@CostCentre      varchar(16),
@BusinessUnit      varchar(16),
@Grade      varchar(16),
@Search      varchar(300)

select *,
ISNULL(MNU_Menu.MNU_CNT_ID + '&id=' + CONVERT(VARCHAR,MNU_Menu.MNU_ID),CONVERT(VARCHAR(100),con.CNT_ID) + '&id=1') AS ID
from cnt_content con
    CROSS JOIN MNU_Menu
where  convert(varchar(800),con.cnt_id) in (SELECT SUBSTRING (dbo.MNU_Menu.MNU_URL, CHARINDEX('{',dbo.MNU_Menu.MNU_URL)+1, 36)
FROM         dbo.MNU_Menu INNER JOIN
                      dbo.ACL_AccessControl ON dbo.MNU_Menu.MNU_ID = dbo.ACL_AccessControl.ACL_MNU_ID INNER JOIN
                      dbo.ROL_Roles ON dbo.ACL_AccessControl.ACL_ROL_ID = dbo.ROL_Roles.ROL_ID INNER JOIN
                      dbo.USR_Users ON dbo.ROL_Roles.ROL_ID = dbo.USR_Users.USR_ROL_ID INNER JOIN
                      dbo.UST_UserType ON dbo.USR_Users.USR_UST_ID = dbo.UST_UserType.UST_ID CROSS JOIN
                      dbo.CNT_Content
WHERE     dbo.USR_Users.USR_Name = @GUID) and con.cnt_body like ('%'+@Search+'%') and MNU_Menu.MNU_CNT_ID like '%'+CONVERT(VARCHAR(100),con.CNT_ID)+'%'
ORDER BY con.cnt_title ASC
GO


What this does it will search based on what ever the user enters i.e. @Search. It all works ok, so if the user entered

apple orange

It will bring back all records that have the sentence "apple orange"

Can someone please help me in changing this, so that if a user enters

apple orange

it will display all records that have a "apple" OR "orange"

and of course, the user can type x amonunt of words

Hope that  makes sense?
Thanks
Mosuemat24Start Free Trial
 
Keywords: How to split a sentence, and display r…
 
Loading Advertisement...
 
[+][-]01.15.2007 at 08:01AM PST, ID: 18316892

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:03AM PST, ID: 18316905

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:17AM PST, ID: 18317056

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:29AM PST, ID: 18317134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:29AM PST, ID: 18317157

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:32AM PST, ID: 18317180

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:45AM PST, ID: 18317273

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 08:49AM PST, ID: 18317327

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 09:00AM PST, ID: 18317393

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2007 at 09:03AM PST, ID: 18317435

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: split
Sign Up Now!
Solution Provided By: PFrog
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.15.2007 at 09:53AM PST, ID: 18317792

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44