i am using db2 7.1. i am creating a subquery which returns about 100 results. ex: select zip_code from address where city = 'Los Angeles'. the problem is i only want one result. i can't use fetch first only in a subquery. can someone help me?
thanks,
john
I am using this sql in my program.
select s.name, s.address1, s.address2, s.city, s.state, s.zip_code, s.country, s.area_code, s.phone_number, s.products, round(SQRT(((4774.81*(z.latitude-loc.latitude)*(z.latitude-loc.latitude))...
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.