I have a Client table and a Card table, each client can
have any number of cards, what I am attempting to achieve is to update a field
in the Client table called CardIssuedTotal with the count of the cards
associated with that client.
I am using the following SQL statements, however I am getting
an error "Parameter CARD.CardNumber has no default value"
UPDATE CLIENT SET CLIENT.CardIssuedTotal = (SELECT COUNT(CARD.CardNumber) FROM CARD GROUP BY CARD.ClientNumber) WHERE (CLIENT.ClientNumber = CARD.ClientNumber); Any assistance appreciated.
Steve Galyer |
- RE: [DUG]: SQL Update question Steve Galyer
- RE: [DUG]: SQL Update question Chris Reynolds
- Re: [DUG]: SQL Update question Neven MacEwan
- Re: [DUG]: SQL Update question Steve Galyer
- Re: [DUG]: SQL Update question Neven MacEwan
- RE: [DUG]: SQL Update question Manning, John
- Re: [DUG]: SQL Update question Neven MacEwan
- Re: [DUG]: SQL Update question Steve Galyer
- RE: [DUG]: SQL Update question Paul Ritchie
- Re: [DUG]: SQL Update question Neven MacEwan
- [DUG]: Changing forms to DLLs Steve Peacocke