• 13-02-2021, 19:39:36
    #1
    Merhaba, oyun sunucum için veritabanından bazı tabloları birleştirip veri almam gerekiyor ama sorgumdaki hatayı çözemedim. Yardımcı olabilecek var mı?

    SELECT
        social_trend.hashtag,
        social_trend.total,
        social_trend.tarih,
        social_post.sid,
        social_post.tarih,
        social_post.post,
        oyuncular.id,
        oyuncular.isim
    FROM
        social_trend
    INNER JOIN
        social_post
    ON
        social_post.post LIKE '%social_trend.hashtag%' ORDER BY social_post.tarih LIMIT 1
    INNER JOIN
        oyuncular
    ON
        oyuncular.id = social_post.sid
    WHERE
        social_trend.tarih > UNIX_TIMESTAMP() ORDER BY social_trend.total DESC LIMIT 5
  • 13-02-2021, 23:29:20
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    social_post.post LIKE '%social_trend.hashtag%' ORDER BY social_post.tarih LIMIT 1

    Join ile bağladığın satırda order by kullanamazsın. ORDER BY social_post.tarih LIMIT 1 burayı sil hocam
  • 14-02-2021, 00:32:31
    #3
    wm_xfreex adlı üyeden alıntı: mesajı görüntüle
    social_post.post LIKE '%social_trend.hashtag%' ORDER BY social_post.tarih LIMIT 1

    Join ile bağladığın satırda order by kullanamazsın. ORDER BY social_post.tarih LIMIT 1 burayı sil hocam
    O zaman da istediğim verileri düzgün alamam hocam. Yabancı bir forumda subsql kullanmamı söylediler de nasıl kullanacağımı tam çözemedim.