Hey Folks,
I have a data clean up task before me. In short: I need to go through my customer master finding all the of the blank countries.
The I will take the state of each of those countries, and determine which country it is most likely, based on other customers.
A breif sample of this would be an SQL query:
select country, count(*) FROM custaddr WHERE state = "CA" GROUP BY country.
I realize, that's not doing exactly what I described, but it reports the countries by state. I can easily see that this is most likely a USA state.
My problem is now this:
Can I get the data returned from a select like that called from a 4gl program?
OR, how can I EASILY implement that same select in progress code.
To code it in progress sounds like a nightmare to me.
Thanks,
I have a data clean up task before me. In short: I need to go through my customer master finding all the of the blank countries.
The I will take the state of each of those countries, and determine which country it is most likely, based on other customers.
A breif sample of this would be an SQL query:
select country, count(*) FROM custaddr WHERE state = "CA" GROUP BY country.
I realize, that's not doing exactly what I described, but it reports the countries by state. I can easily see that this is most likely a USA state.
My problem is now this:
Can I get the data returned from a select like that called from a 4gl program?
OR, how can I EASILY implement that same select in progress code.
To code it in progress sounds like a nightmare to me.
Thanks,