I tired the below query which SWQL stuidio say is valid but it return a result with a DisplayName that includes "prt".
SELECT NodeId as id, DisplayName as NodeName, Status as NodeStatus FROM Orion.Nodes where (status = 2 and DisplayName not LIKE '%-PC-%') OR (status = 2 and not DisplayName not LIKE '%-PRT-%')
Same result with
SELECT NodeId as id, DisplayName as NodeName, Status as NodeStatus FROM Orion.Nodes where ((status = 2 and DisplayName not LIKE '%-PC-%') OR (status = 2 and not DisplayName not LIKE '%-PRT-%'))I assumed I need to start with the AND and nest the OR inside it, but that is not working :-)
What is the proper syntax to nest OR's in this fasion.
I don't want any result including "-PC-" or "-PRT-" in this query.
Probably a newbie question but searching I could not fins the answer.
Thanks in Advance