我想在我的别名中搜索最大值。这是我的查询
SELECT DISTINCT IPK.NIM,IPK.NAMA,IPK.IPK
FROM MAHASISWA M, PENILAIAN P, MATA_KULIAH MK, KRS K,
(SELECT M.NIM,M.NAMA, ROUND(SUM(P.ANGKA*MK.SKS)/SUM(MK.SKS),2) AS IPK
FROM MAHASISWA M, PENILAIAN P,MATA_KULIAH MK,KRS K
WHERE M.NIM=K.NIM AND MK.KODE_MK=K.KODE_MK AND K.NILAI=P.NILAI GROUP BY M.NIM,M.NAMA
) AS IPK
WHERE IPK.IPK=(SELECT MAX(IPK.IPK) FROM IPK);
但是当我运行它时,它说没有找到 DB2ADMIN.IPK。如何在我的查询中从我自己的别名中搜索它?