Is there any wrong code with my query to join table?

后端 未结 3 893
逝去的感伤
逝去的感伤 2021-01-26 06:28

I am really confused with this codes. I have query like this

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `aIPK` AS select 
`i         


        
3条回答
  •  粉色の甜心
    2021-01-26 07:06

    Running sql instead of creating algorithm is easier for testing.

    In your case check the conditions in join

    on((`akdhis_kelanjutanstudi`.`NIM` = `ipbmst_orang`.`NIMS2Key`)))

    also you need to change

    WHERE `akdhis_kelanjutanstudi`.`IPK` IS NOT NULL

    To

    WHERE `IPK` IS NOT NULL

提交回复
热议问题