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!
 Data & Imports Forums - T-SQL & Queries
Forum to discuss general T-SQL questions and help with queries related to SalesLogix data. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to T-SQL & Queries | New ThreadView:  Search:  
 Author  Thread: query builder question
SL106
Posts: 16
 
query builder question Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Nov 09 10:04 AM
Hello everyone,
I tried to build a query based on the account table, one of the conditions is that the "lasthistorydate" field is null. I draged the lasthistorydate field to the condition area, and selected "does not contain data" as operator - I got an error message: "invalid date/time value". I also noted that I can't use "does not contain data" on all date/time type fields. what I missed? Can anyone help please? I use saleslogix 7.51 LAN client.
Thanks a lot as always!!!

Emily
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: query builder question Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Nov 09 10:58 AM
Seems indeed as a bug, and probably SAGE is already aware of it, but you should pass it along.

That being said, are you able to do a "CONTAINS DATA" on a Date field?
If so, you could set the Condition to "CONTAINS DATA" and then negate it.
[Reply][Quote]
SL106
Posts: 16
 
Re: query builder question Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Nov 09 12:17 PM
Thanks Rual. I guess so too. I tried the "Contains data", it does not work either. Thanks again.

Emily
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: query builder question Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Nov 09 12:31 PM
Then lets build it with a subquery:

Lets assume this group is Account based:
- Add a Condition for ACCOUNTID field.
- Set the Operator to IN
- Set the value to "(SELECT ACCOUNTID FROM ACCOUNT WHERE LASTHISTORYDATE IS NULL)"
- Check the "Use Value as Literal" Checkbox


[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:02:35 AM