I believe this question was just asked.If all columns are the same by adding the word DISTINCT to your select it will only give one record, so something is not.You can get only 1 records for each part number by doing this.select PartNum,PartID,Name,[Description],PartNotefrom(select Row_Number() over (partition by p.partNum order by p.partNum) as RowID,p.PartNum,p.PartID,pn.Name,d.[Description],n.Note as PartNotefrom Part pjoin PartName pn on pn.PartNameID = p.PartNameIDjoin ApplicationPaint ap on ap.partID = p.PartIDjoin [Application] a on a.ApplicationID = ap.ApplicationIDjoin [Description] d on d.DescriptionID = ap.DescriptionIDjoin Note n on n.NoteID = a.NoteIDjoin MYConfig mmy on mmy.MMYConfigID = a.MYConfigIDjoin Model mo on mo.ModelID = mmy.ModelIDwhere mmy.ModelId = 2673and substring(n.Note, CHARINDEX(']', n.Note) + 2, LEN(n.Note))= 'Johnson') aawhere aa.rowid = 1
Success is 10% Intelligence, 70% Determination, and 22% Stupidity.\_/ _/ _/\_/ _/\_/ _/ _/- 881