Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
purisqlserver
Yak Posting Veteran
73 Posts |
Posted - 2001-08-18 : 05:26:17
|
I am executing a query,which is returning duplicate records.The resultset should consist of unique records.The table structure and the data is as follow:I have three table Group_Detail,Item_Master,Group_Feature.GroupDetail Group_Code(pk) G0001 G0002 G0003 Item_MasterGroup_Code(fk)G0001G0001G0002Group_FeatureGroup_Code(fk)G0001G0001G0002The query in question:Select distinct(G.Group_Code),G.Group_Title,G.Group_Main_Cat,G.Group_Sub1,G.Group_Sub2,G.Group_Sub3,G.Group_Specification,G.Group_Description,I.Item_Number,F.Group_Featurefrom Group_Detail G,Item_Master I,Group_Feature F where G.Group_Code=I.Group_Code andG.Group_Code=F.Group_Codeand (contains(G.*,'quality')or contains(I.*,'quality'))I am using full text search to search for particular string in all the three tables,columns included in the full index.Thank you. |
|
|
|
|
|
|