Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: Problem with adding layout to Query builder
Jai Shankar
Posts: 22
 
Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Feb 11 10:05 PM
fiogf49gjkf0d


This is bizarre!



I had a group created using a query builder to pick all the invalid emails.  It had 618 contacts in this group.  I changed the layout to add create date and modify date for these contacts and what I now see is a list of 6172 contacts.  I haven’t modified the conditions but only the layout.



I have deleted the create and modify dates and it still remains the same.  Can you please let me know how to get back my original list that shows 618 contacts of invalid emails.


Thanks?


[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 1:26 AM
fiogf49gjkf0d

Please post the group's SQL.

[Reply][Quote]
Jai Shankar
Posts: 22
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 4:38 PM
fiogf49gjkf0d

Thanks Phil,


Here it is


SELECT A1.CONTACTID, A1.EMAIL, A1.NAMELF, A1.ACCOUNT, A2.CITY A2_CITY, A2.STATE A2_STATE, A1.TITLE, A1.WORKPHONE, A1.MOBILE, A1.ACCOUNTMANAGERID, A1.CREATEUSER, A1.NAME, A1.NAMELF FROM CONTACT A1 INNER JOIN ADDRESS A2 ON (A1.ADDRESSID=A2.ADDRESSID) WHERE ((A1.EMAIL LIKE  '%#%') OR (A1.EMAIL LIKE  '%$%') OR (A1.EMAIL LIKE  '%^%') OR (A1.EMAIL LIKE  '%&%') OR (A1.EMAIL LIKE  '%(%') OR (A1.EMAIL LIKE  '%)%') OR (A1.EMAIL LIKE  '%+%') OR (A1.EMAIL LIKE  '%=%') OR (A1.EMAIL LIKE  '%{%') OR (A1.EMAIL LIKE  '%[%') OR (A1.EMAIL LIKE  '%}%') OR (A1.EMAIL LIKE  '%]%') OR (A1.EMAIL LIKE  '%\%') OR (A1.EMAIL LIKE  '%|%') OR (A1.EMAIL LIKE  '%;%') OR (A1.EMAIL LIKE  '%:%') OR (A1.EMAIL LIKE  '%,%') OR (A1.EMAIL LIKE  '%<%') OR (A1.EMAIL LIKE  '%>%') OR (A1.EMAIL LIKE  '%?%') OR (A1.EMAIL LIKE  '%/%') OR (A1.EMAIL LIKE  '%%') OR NOT (A1.EMAIL LIKE  '%@%')) AND (A1.EMAIL IS NOT NULL AND A1.EMAIL <> '') ORDER BY A1.NAMELF ASC

[Reply][Quote]
Jai Shankar
Posts: 22
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 4:39 PM
fiogf49gjkf0d

Thanks Phil.


Here it is.


SELECT A1.CONTACTID, A1.EMAIL, A1.NAMELF, A1.ACCOUNT, A2.CITY A2_CITY, A2.STATE A2_STATE, A1.TITLE, A1.WORKPHONE, A1.MOBILE, A1.ACCOUNTMANAGERID, A1.CREATEUSER, A1.NAME, A1.NAMELF FROM CONTACT A1 INNER JOIN ADDRESS A2 ON (A1.ADDRESSID=A2.ADDRESSID) WHERE ((A1.EMAIL LIKE  '%#%') OR (A1.EMAIL LIKE  '%$%') OR (A1.EMAIL LIKE  '%^%') OR (A1.EMAIL LIKE  '%&%') OR (A1.EMAIL LIKE  '%(%') OR (A1.EMAIL LIKE  '%)%') OR (A1.EMAIL LIKE  '%+%') OR (A1.EMAIL LIKE  '%=%') OR (A1.EMAIL LIKE  '%{%') OR (A1.EMAIL LIKE  '%[%') OR (A1.EMAIL LIKE  '%}%') OR (A1.EMAIL LIKE  '%]%') OR (A1.EMAIL LIKE  '%\%') OR (A1.EMAIL LIKE  '%|%') OR (A1.EMAIL LIKE  '%;%') OR (A1.EMAIL LIKE  '%:%') OR (A1.EMAIL LIKE  '%,%') OR (A1.EMAIL LIKE  '%<%') OR (A1.EMAIL LIKE  '%>%') OR (A1.EMAIL LIKE  '%?%') OR (A1.EMAIL LIKE  '%/%') OR (A1.EMAIL LIKE  '%%') OR NOT (A1.EMAIL LIKE  '%@%')) AND (A1.EMAIL IS NOT NULL AND A1.EMAIL <> '') ORDER BY A1.NAMELF ASC


Jai


 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 5:20 PM
fiogf49gjkf0d

The problem is this Condition:



   OR (A1.EMAIL LIKE '%%')



This condition includes all Valid Email Addresses onto your Group's resultset.

[Reply][Quote]
Jai Shankar
Posts: 22
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 5:40 PM
fiogf49gjkf0d

Doesn't this (A1.EMAIL LIKE '%%') mean email field with no email addresses entered.   We also want to include this condition where there are no email addresses.


 


 

[Reply][Quote]
Jai Shankar
Posts: 22
 
Re: Problem with adding layout to Query builderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 11 7:23 PM
fiogf49gjkf0d

You are absolutely right.  It was rectified when OR was changed to AND.


Thanks a lot for the tip.  You are a wealth of information on Saleslogix.


Jai


 


 

[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/26/2024 2:58:04 AM