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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple data in table

Status
Not open for further replies.

FB1

Instructor
May 31, 2005
69
GB
hi all
Query one
need to pull the last record from multiple sale table b which is joined to 1 to 1 customer table a

only need to see last data entry against each customer.

query two

customer table a 1to1
issue table b multiple entry

need to create a query that joins both to show one complete entry to report on.

Except for a little issue where i need 3 fields to show and they are not always populated at the same time, but are kept in the same table

i.e.

oid nameid car van lorry date
1 12 yes [null] yes 01/01/2012
2 12 [null] yes [null] 12/12/2011
34 11 yes [null] [null] 12/12/2011
35 11 [Null] Yes [null] 11/11/2011
56 11 [null] [null] yes 10/11/2011


would like to see

nameid car van lorry
12 yes yes yes
11 yes yes yes

You help will be most appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top