SQL Statement Join With CASE

前端 未结 3 1098
失恋的感觉
失恋的感觉 2021-01-23 12:42

I have problem with this 3 table below from MS ACCESS to do \"SQL CASE IF ELSE\" where I don\'t how to start.

Table A (Registrations)

Name    | Desc              


        
3条回答
  •  离开以前
    2021-01-23 12:58

    Thanks you to fthiella,DeadZone,Beth and Thorsten Kettner who give me a right direction. Since trying many day using yours solution directly on MS Access IDE finally I found a trick. I need to thanks you very much to solving my problem. The trick is :-

    A) IF RECORD IS EMPTY or EXIST by SELECTION then using (Select Nz(MAX(m.amount),'NOT PAID') as PAYFEB.

    All kind solutions like LEFT JOIN or Direct SUBQUERIES are working actually. But I more prefer SUBQUERIES because more organize and I can see if any syntax or field are not register.

    Lastly, without yours support I cannot get this answer of this matter. Thanks you very much guys.

提交回复
热议问题