troubleshooting Question

query that compares a couple of different things

Avatar of GordonPrince
GordonPrinceFlag for United States of America asked on
Microsoft SQL Server 2005
1 Comment1 Solution241 ViewsLast Modified:
I have two tables Parcel and Appeal. Each Parcel has a value.
Each parcel has 0, 1 or more Appeal rows.
Each Appeal row may have a value or it may not (can be null).
The Appeal table has a SequenceNo column.

I want to select the following:
Parcels with Appeals where the Appeal.Value is different from the Parcel.Value
+
Parcels with Appeals where the Appeal.Value of one row is different from another Appeal row's Value, ordering them by SequenceNo.

I want to exclude Parcels with no Appeals or only Appeals with null values.
ASKER CERTIFIED SOLUTION
Aneesh
Database Consultant
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
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 1 Answer and 1 Comment.
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