GreenTomato
MIS
Hello,
I am trying to achieve the following using SQL in MS Access. The file I have is formatted in the following manner:
Field names: Customer Name, January 2012, February 2012, March 2012 etc.
Customer Name: Shows customer name
[Month] 2012: Shows the dollar amount purchased. Some are zeros.
That's all the information in the set of data.
I'm trying to write a SQL command that will create a new column in the table or in a report that will produce the date of the last purchase. For example:
Note: Data is from left to right:
Customer Name: John Smith
January 2012: $100
February 2012: $0
March 2012: $50
April 2012: $100
May 2012: $0
June 2012: $0
etc.
I'm hoping I can create a column that will automatically show "April 2012" as the output (in a new column) for John Smith, thus identifying when the last purchase was.
Thank you for all of your help and I apologize for the basic question.
Have an excellent weekend to you all!
I am trying to achieve the following using SQL in MS Access. The file I have is formatted in the following manner:
Field names: Customer Name, January 2012, February 2012, March 2012 etc.
Customer Name: Shows customer name
[Month] 2012: Shows the dollar amount purchased. Some are zeros.
That's all the information in the set of data.
I'm trying to write a SQL command that will create a new column in the table or in a report that will produce the date of the last purchase. For example:
Note: Data is from left to right:
Customer Name: John Smith
January 2012: $100
February 2012: $0
March 2012: $50
April 2012: $100
May 2012: $0
June 2012: $0
etc.
I'm hoping I can create a column that will automatically show "April 2012" as the output (in a new column) for John Smith, thus identifying when the last purchase was.
Thank you for all of your help and I apologize for the basic question.
Have an excellent weekend to you all!