saminda roshan Posted May 31, 2018 Share Posted May 31, 2018 I'm a beginner to MySQL. I'm trying to execute this in MySQL. I want to omit all the PARENTIDs where PROPERTYVALUE='NG'. My Input is like this My Output should be like this I really appreciate your help.Thanks Link to comment Share on other sites More sharing options...
Shuting Fu Posted May 31, 2018 Share Posted May 31, 2018 This might work: SELECT * FROM MyTable WHERE MyTable.PARENTIDNOT IN (SELECT PARENTID FROM MyTable WHERE PROPERTYVALUE = 'NG') Link to comment Share on other sites More sharing options...
saminda roshan Posted May 31, 2018 Author Share Posted May 31, 2018 Hey Fu Thanks! Ill try it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now