473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

"Cross Tab" Table to "Simple" Query

I have a table with the following Fields:
Article and 8 fields that are Dates. Under each date is a quantity.

I would like to run a query that would have only 3 columns:
Article, Date and Quantity

Thank you very much
Sep 6 '07 #1
1 1499
puppydogbuddy
1,923 Expert 1GB
I have a table with the following Fields:
Article and 8 fields that are Dates. Under each date is a quantity.

I would like to run a query that would have only 3 columns:
Article, Date and Quantity

Thank you very much
Try a union query like this, but use something other than Date as the name of your datefield in your table because Date is a reserved word in Access:
Expand|Select|Wrap|Line Numbers
  1. "Select article, datefield1 As datefield, quantity From YourTable
  2. Union Select Article, datefield2 As datefield, Quantity From YourTable
  3. Union Select Article, datefield3 As datefield, Quantity From YourTable
  4. Union Select Article, datefield4 As datefield, Quantity From YourTable
  5. Union Select Article, datefield5 As datefield, Quantity From YourTable
  6. Union Select Article, datefield6 As datefield, Quantity From YourTable
  7. Union Select Article, datefield7 As datefield, Quantity From YourTable
  8. Union Select Article, datefield8 As datefield, Quantity From YourTable";
Sep 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark Hahn | last post by:
Ville Vainio came up an idea for one final tweak of the tab/space indent algorithm we are using in Prothon, and the final result surprised me, in that it directly addresses the problem of mixed...
1
by: Dario de Judicibus | last post by:
I wish to create two simple layouts by using only HTML, CSS and the minimum JavaScript as possible. Layouts should be "elastic" (no fixed widths and heights) and cross-browser enabled. The first...
99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: Oscar Thornell | last post by:
Hi, I would like to create a tab in MSN Messenger like an addin...that uses the Messenger interface... My idea is to export data from a Web Service on wich the users can access information via...
25
by: mdh | last post by:
I wrote a little insignificant program, to help me write a more significant one!!...that was supposed to print all Ascii values from 0 to 127: >>>> #include <stdio.h> # define UPPER_LIMT 127...
5
by: Rob R. Ainscough | last post by:
I'm using a BackgroundWorker to perform a file download from an ftp site. Per good code design practices where I separate my UI code from my core logic code (in this case my Download file method in...
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
0
by: Peter Duniho | last post by:
Okay, I'm guessing I'm overlooking something simple here, but I'm obviously not going to find it. Someone please tell me the exact name of the "Cross-thread operation not valid" MDA, as seen in...
10
by: Anze | last post by:
Hmmm... anyone? :) Anze Anze wrote:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.