Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

sql 2008 quary Expand / Collapse
Author
Message
Posted Friday, March 2, 2012 3:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 2, 2012 4:56 AM
Points: 2, Visits: 1
Hi sir,

In the below coding no compilation error but using this quary i am not getting the answer please give me the answer for this below quary







select ProductID,Name,
NameResults.Rank as NameRank,
DescriptionResults.Rank as DescriptionRank
from Product
left outer join
containstable(Product,Name,
'Formsof(INFLECTIONAL,red)and FORMSOF(INFLECTIONAL,blue)',
language 'english') as NameResults
on Product.ProductID=NameResults.[key]
left outer join
containstable(Product,Description,
'Formsof(INFLECTIONAL,red)and FORMSOF(INFLECTIONAL,blue)',
language 'english') as DescriptionResults
on Product.ProductID=DescriptionResults.[key]
where(NameResults.Rank is not null)and(DescriptionResults.Rank is not null)
order by(isnull(NameResults.Rank,0)* 3 + isnull(DescriptionResults.Rank,0))desc
Post #1260703
Posted Friday, March 2, 2012 6:58 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, March 6, 2012 9:26 AM
Points: 21, Visits: 34
its like you are not getting any result after firing above query?
Post #1260768
Posted Friday, March 2, 2012 7:34 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:22 PM
Points: 13,074, Visits: 11,913
You posted this query in two forums about jobs???

I will attempt to respond to your question.


In the below coding no compilation error but using this quary i am not getting the answer please give me the answer for this below quary


I am not sure what the answer is because I don't know what the question is.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1260800
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse