subquery using IN clause

前端 未结 4 1667
[愿得一人]
[愿得一人] 2021-01-15 06:02
----------
User
----------
user_ID(pk)
UserEmail

----------
Employer1
----------
Emp1ID(pk)
Emp1NO

----------
Employer2
----------
Emp2ID(pk)
Emp2NO

----------
Pr         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 06:50

    emp.Emp2NO IN
     (select ProjEmpID from project) or (select ProjEmpMGRID from project)
    

    Hope you will understant why it should be so. u can put a mail to me at gnmsr@ap.nic.in

    Ok i will expalin. Emp1NO is one value chcked with every value in the list of values return by a single column values where as ur query returns a matrix of many(no. of rows) X 2

提交回复
热议问题