Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Off Topic Forums - General & Off Topic
Forum for off topic and general discussion. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General & Off Topic | New ThreadView:  Search:  
 Author  Thread: Compare 2 data fields in SLx
Ted Myers
Posts: 2
 
Compare 2 data fields in SLxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 09 9:36 AM
Being a "newby," I'm not sure where to post this question...

How can I compare the contents of two fields in the same record and create a group of the records with equal data? What I'm trying to do is find anyone with Address 1 equal to Address 2, create a group of the equals, then erase the dat from Address 2.

Thanks,

Ted
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Compare 2 data fields in SLxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 09 11:30 AM
Somewhat easy.

If you build the group, and add both fields to the layout, you could then check the SQL and determine the Table Alias for the fields you will be comparing.
Then add a condition for one of the fields, set the operator to Equals (=), check the Use as Literal checkbox and then write the opposite field on the Value box with the alias (e.g. A3.MYDUPFIELD).
After that, you could check the SQL statement for a group one more time to determine if it looks correctly.

From there, you could use the Replace Data Wizard (on the Menu under Tools/Maintenance/Replace Data...)

Alternatively, you could always use SQL statements to fix the data. If you have a synchronizing environment, execute them via the Workgroup Administrator and make sure you select to Send it to all your Remote users.

[Reply][Quote]
Ted Myers
Posts: 2
 
Re: Compare 2 data fields in SLxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 09 1:10 PM
Raul,

Thank you so much. Your first solution worked great!

I appreciate your assistance.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 10:43:43 AM