when to use "and" statement in informix DB -


I have a problem with my SQL statement, where the situation requires me to select the data to meet many criteria . Question: How to determine the existing old company - Lodging Off (F 557 & F595) or (F558 & F559) or (F557 and F 55)

My SQL: SELECT * '55')

But this statement gives me results empty, even the data is present condition.

vchformtrx does not contain more than one value in the same line For example;

  WHERE (vchformtrx = '559' and vchformtrx = '557')   

... both values ​​ 559 and < code> 557 will require vchformtrx in one line at the same time come true and return to the result goes to the same other and situations 3 false Using or on situations is always wrong.

Your quoted question does not give me enough information about what exactly the situation should be, but - in short - you will not get any indication because your current situation can never be true.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -