Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating a view based flag from table A and B

User_XPIYYApr 25 2022

scnerio

table a table b
part flag part flag
test1 Y

Requitment get data based on flag is null
but when i run the bewlow query getting the records back for part "test1"
which as you can see has the flag = Y .. would be great help if anyone can assist
--------------------------------------

select a.part
FROM table a,
table b
WHERE (1=1)
and a.finis_code = b.finis_code(+)
and a.finis_code IN ('TEST1','Test2')
AND (a.FLAG IS NULL OR b.FLAG IS NULL)

Comments
Post Details
Added on Apr 25 2022
0 comments
120 views