Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi !
please help me ,I have this query:
SQL
("a"AND"b")OR("c"AND"d")AND("n"OR"m") 

Can I use tree in Representation of relations between "AND" and "OR" in implementation.
if yes, how and what is name tree?
Posted
Updated 2-Dec-11 4:43am
v4
Comments
[no name] 2-Dec-11 9:07am    
EDIT: added "pre" tag

1 solution

One possible choice of the AND/OR operators is min/max (see, for instance, here[^]). Hence your expression would be translated into:
min(max(min(a,b),min(c,d),max(min(n,m)))
 
Share this answer
 
Comments
xxxx man 2-Dec-11 10:13am    
i am understand why put (min(a,b),min(c,d),max(min(n,m)), but don't understand why put min(max()))
xxxx man 2-Dec-11 10:15am    
can i use tree in Representation of relations between "AND" and "OR" in implementation.
if yes, how and what is name tree?
tarekwarak0 2-Dec-11 10:24am    
i thtink there is an error in Solution 1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900