troubleshooting Question

Incorrect syntax near the keyword 'where'

Avatar of dba123
dba123 asked on
Microsoft SQL Server
20 Comments2 Solutions1303 ViewsLast Modified:
I don't see it, can you?  Why am I getting that error still?

select SUM(subTotal) * FeeSchedule, CustomerNumber
 select SUM(PDC) as subTotal,
 from dcr
 where ((EnteredDate between '2/1/2006' and '2/28/2006')
       or (EnteredDate not between '2/1/2006' and '2/28/2006'))
       and EnteredDate IS NOT NULL
 group by  CustomerNumber,
 union all
 select SUM(CC),
 from dcr
 where ((EnteredDate BETWEEN where EnteredDate between '2/1/2006' and '2/28/2006')
       or (not between '2/1/2006' and '2/28/2006'))
       and EnteredDate  IS NOT NULL
 group by      CustomerNumber,

group by  FeeSchedule,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 20 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros