我可以将我的自定义sql语法转换成雄辩的laravel吗,这是我的sql语法:
SELECT a.* FROM krs a INNER JOIN (
SELECT kode_matakuliah, MAX(bobot) as bobot_max
FROM krs
WHERE nim = 133341043
GROUP BY kode_matakuliah
) b ON a.bobot = b.bobot_max AND a.kode_matakuliah = b.kode_matakuliah
WHERE nim = 133341043
1条答案
按热度按时间uklbhaso1#
明白了!我已经找到路了。