Advertisement

08.11.2008 at 01:07PM PDT, ID: 23639212
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

MS SQL 2000: Warning: Null value is eliminated by an aggregate or other SET operation.

Asked by g_johnson in MS SQL Server

Tags:

The attched code works fine, sometimes returning data and sometimes returning an empty rowset.

I also have a table:

CREATE TABLE [esna_PdInvoices] (
      [cus_no] [char] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
      [inv_no] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
      [Id] [numeric](9, 0) IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO


If I add this insert statement where indciated, I get the "Warning: Null value is eliminated by an aggregate or other SET operation" error:

insert into esna_PdInvoices (cus_no,inv_no)

However -- the insert works.  I need to eliminate the error, or at least the message ...Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
declare @begdate datetime
declare @enddate datetime
 
set @begdate = '20080601'
set @enddate = '20080630'
 
--<<<<<< add insert statement here >>>>>>--
 
 
SELECT c.debcode,t4.invoicenumber
FROM (
    SELECT t1.transactionnumber, isnull(MIN(t2.matchid),0) AS matchid1, isnull(MAX(t2.matchid),0) AS matchid2
    FROM banktransactions t1 
    INNER JOIN banktransactions t2 ON t2.transactionnumber = t1.transactionnumber AND
        t2.type = 'W' AND t2.transactiontype = 'C' AND t2.status <> 'v'
    WHERE t1.type = 'S' AND t1.transactiontype = 'Z' AND t1.status <> 'V' 
    GROUP BY t1.transactionnumber
    HAVING COUNT(*) = 2
) AS sz_to_2wc
INNER JOIN banktransactions t3 ON t3.id IN (sz_to_2wc.matchid1, sz_to_2wc.matchid2) AND
    t3.type = 'S' AND t3.transactiontype = 'Y' AND t3.status <> 'V'
INNER JOIN banktransactions t4 ON t4.matchid = t3.id AND 
    t4.type = 'W' AND t4.transactiontype = 'K' AND t4.status <> 'V'
join cicmpy c on t4.debtornumber = c.debnr
where t4.valuedate between @begdate and @enddate
and t4.debtornumber is not null
[+][-]08.11.2008 at 01:10PM PDT, ID: 22207726

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:14PM PDT, ID: 22207754

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:14PM PDT, ID: 22207763

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:18PM PDT, ID: 22207790

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:31PM PDT, ID: 22207896

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:33PM PDT, ID: 22207920

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:42PM PDT, ID: 22208015

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:46PM PDT, ID: 22208050

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: MS SQL 2000
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081119-EE-VQP-49 / EE_QW_EXPERT_20070906