Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, May 19, 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 for accounts with no Notes/History information
SLX_Novice
Posts: 246
 
Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 11:13 AM
fiogf49gjkf0d
Hi all.

I would like to create a query to display all accounts that have no information in the Notes/History tab. Any ideas?
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 2:38 PM
fiogf49gjkf0d
One way:

select account,* from account where accountid in (select accountid from history
where notes='')
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 2:47 PM
fiogf49gjkf0d
Now, let's say you want to know which accounts haven't had calls:

select account from account where not (accountid in (select accountid from history where type = '262146')) order by account

HTH,
Ron
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 2:49 PM

lomper lombrices precio

lomper precio
fiogf49gjkf0d
I'm using the Query Builder in the Client, and it won't allow me to enter an SQL statement, I have to pick the field and drag it in the conditions tab. I tried dragging the "Notes" field in the condition tab and I picked "does not contain data" for the Operator field in the form, and it did not pull up anything, even though there are accounts that have no information in the notes/history tab.

Am I doing something wrong?
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 3:31 PM
fiogf49gjkf0d
Oh, but it will allow you to enter the SQL statement:

Operator: in
Value in: select h1.accountid from history h1 where h1.type = '262146'
Case Sensitive Compare: uncheck
Use Value as Literal: check

Click on OK...

Then check the NOT condition from the local menu. Don't go by the record count... occasionally, it's been known to LIE!

[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 May 06 6:20 AM

how long does the 2nd abortion pill take to work

how long does it take the abortion pill to work blackips.linqto.me
fiogf49gjkf0d
First question:
Does anyone have a listing/quick ref of what the various history.type codes represent?

Next.. I think the WHERE h1.type = '262146' should be an IN because Fabian is looking for all accounts where there is NO history. I understand there will usually be some history in the form of a database change or something. But I think in this case Fabian is looking for account with no phone call, to-do or meeting history.

Which brings me to the point of using IN. The WHERE should be something like

WHERE h1.type IN ('262146', 'phonecall code', 'to-do code', 'etc...')

John G.
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 May 06 7:28 AM

zoloft and weed erowid

zoloft weed reddit
fiogf49gjkf0d
John,
Take a look at the picklists for Activity Types (SalesLogix not Custom)

BR,
Ron
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 06 6:38 AM

augmentin generico prezzo

augmentin prezzo driverblog.suddath.com
fiogf49gjkf0d
Ron,

Oooo, ahhhh.... Thats what I was looking for!

Thanks!
John G.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 May 06 12:28 AM
fiogf49gjkf0d
Quote:
Originally posted by John Gundrum

First question:
Does anyone have a listing/quick ref of what the various history.type codes represent?


I also have them posted here for quick reference: http://saleslogixblog.com/rfarley/archive/2004/04/09/522.aspx
[Reply][Quote]
Jeff L
Posts: 65
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 12:19 PM
fiogf49gjkf0d
Ryan,

We would like to create our own custom history.type.codes for tracking notes related to custom activities.

Does SalesLogix has a means of creating new note types?

Will SalesLogix have a problem if we create our own type.codes ?
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Query for accounts with no Notes/History informationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 06 1:04 PM
fiogf49gjkf0d
I am not Ryan but the solution is to add your values to the Activity Types picklist.

As far as "problems", it depends on what you mean. There are stock product features that filter on the different types (like excluding database changes) that you may have to customize to accommodate your custom types. Other than that you should be fine.

Timmus
[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): 5/19/2024 11:09:28 AM