Hi all,
I have this table named tblAll, which include the following:
BEFORE BETWEEN AFTER
75 100
75 100
75 100
150 100
150 100
150 100
How would I get the result in one line,
which included:
BEFORE BETWEEN AFTER
75 100 150
select distinct
allbefore.before, allbefore.between, allafter.before after
from tblall allbefore, tblall allafter
where allbefore.between = allafter.between
BTW I would not recommend naming a field between since it is a keyword.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.