Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query of table minus the same table different query

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
GB
Hey all,

I hope i can describe this.

There is a column on a table a field for ref and a field for status. Now one ref may have 3 provides then a complete or 1 provide and a complete or 3 provides and no complete.

What i require is a table of all the completes, and only provides that dont have a repeat. This would be the minimum i need.

If possible it would be nice that there was only one provide per ref (or no provide if there is a complete) which sums all the provide figures (the rest of the table is figures) for that ref.

TIA

Dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
 
Sorry "and only provides that dont have a repeat"

should say

"and only provides that dont have a complete"

Thanks
D

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top