SELECT gr.Name as GroupName,gr.Id as GroupId
FROM SpecificationAttribute sa
INNER JOIN SpecificationGroup gr
on SpecAtr.GroupId = gr.Id
left JOIN CategoryAttribute as cat on cat.SpecificationAttributeId = SpecAtr.Id
the rows are duplicating

so gr.Id is prymary key SpecAtr.Id is primary and cat.SpecificationAttributeId is foreignkey
pleas help me

Shweta LodhaRank #31 · 39.8K reputationPosted Apr 15, 2019, 5:58 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 15, 2019, 6:00 PM EDT
Kapil Singh KumawatRank #735 · 3.2K reputationPosted Apr 15, 2019, 10:21 PM EDT
Shweta LodhaRank #31 · 39.8K reputationPosted Apr 17, 2019, 9:41 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 29, 2019, 8:26 PM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 29, 2019, 8:58 PM EDT