Okay, I am not particularly sure how I want to go at this particular query. I am trying to combine some details about records which I have in 2 seperate tables. Each of these tables contain data from the same primary table, and they include the same fields.
What I am looking at is a "notes" field, and I am looking for 2 specific types of notes, we'll just say note "abc" and note "xyz" for reference. What I want to do is to see on each account, what notes were added of both of these types (for each day).
So, what I would like it to end up looking like would be something like this:
AccountID abcNote1 abcNote1Date abcNote2 abcNote2Date xyzNote1 xyzNote1Date xyzNote2 xyzNote2Date and so on.
The fields I have in each table, currently, are:
AccountID
DateAndTime (this is the date referenced above) (this is the date/time when the note was added.
Note
So, I want each record to be determined by the AccountID, and the Date the note was added. That will at least narrow it down by day. Beyond that, i'm not sure how long we'll need to narrow it down before I look.
Any suggestions greatly appreciated.
I was thinking that if I do this in SQL Server 2005, that I'll be able to do it more efficiently than in Access. At first, I was considering using VBA in Access to accomplish this, but I'm hoping I can do it in SQL.
Thanks.
--
"If to err is human, then I must be some kind of human!" -Me
What I am looking at is a "notes" field, and I am looking for 2 specific types of notes, we'll just say note "abc" and note "xyz" for reference. What I want to do is to see on each account, what notes were added of both of these types (for each day).
So, what I would like it to end up looking like would be something like this:
AccountID abcNote1 abcNote1Date abcNote2 abcNote2Date xyzNote1 xyzNote1Date xyzNote2 xyzNote2Date and so on.
The fields I have in each table, currently, are:
AccountID
DateAndTime (this is the date referenced above) (this is the date/time when the note was added.
Note
So, I want each record to be determined by the AccountID, and the Date the note was added. That will at least narrow it down by day. Beyond that, i'm not sure how long we'll need to narrow it down before I look.
Any suggestions greatly appreciated.
I was thinking that if I do this in SQL Server 2005, that I'll be able to do it more efficiently than in Access. At first, I was considering using VBA in Access to accomplish this, but I'm hoping I can do it in SQL.
Thanks.
--
"If to err is human, then I must be some kind of human!" -Me