merhaba 3 tane tablom;

attribute_group_description

attribute_group_id
name

attribute

attribute_id
attribute_group_id
sort_order

attribute_description

attribute_id
name



select g.attribute_group_id,g.name,o.attribute_id,o.attribute_group_id,d.attribute_id,d.name from site_attribute_group_description g join site_attribute o on g.attribute_group_id=o.attribute_group_id join site_attribute_description d on o.attribute_id=d.attribute_id


bu şekilde hepsinden sorgu çekebiliyorum.

sıkıntım şu; attribute tablosuda bulunan değerler (attribute_group_id) birden fazla değere sahip olduğunda aynı doğrultuda attribute_group_description da karsılıgı olan değerde lsiteleniyor; attribute_group_description daki değer 3 ise attribute tablosunda 3 kırmızı 3 sarı 3 yeşil şeklinde sıralama yapıyor

attribute_group_description

    [*] (bunu attribute_id değeri ile 3. tablodan sorgulatıyortum [*] attribute_description
    [*] attribute_description
    [*] attribute_description
    [*] attribute_description
    [*] ...


fakat bendeki yapı ile

attribute_group_description

    [*] attribute_description


attribute_group_description

    [*] attribute_description


attribute_group_description

    [*] attribute_description


bu oluşmakta attribute_group_description buradan çekilen başlıkların 1 tane olmasını istiyorum^^

teşekkürler iyi çalışmalar

buraya acmamıns ebebi belki php ile çözülüyodur die ^^