473,406 Members | 2,710 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,406 software developers and data experts.

How to create CROSSTAB query with TWO VALUES

132 100+
Hi all!
I have my table with four columns as shown below
Expand|Select|Wrap|Line Numbers
  1. ModCode     CA    SE    IDs
  2. ETT04101    1    45    AbC8976
  3. ETT04101    2    45    ABCD0912
  4. ETT04102    8    41    AbC8976
  5. ETT04102    9    45    ABCD0912
  6.  
I want it to be like this one
Expand|Select|Wrap|Line Numbers
  1. IDs    ETT04101(CA)    ETT04102(SE).....
  2. AbC8976       1                 45
  3. ABCD0912      2                45  
  4. AbC8976        8               41
  5. ABCD0912       9               45   
  6.  
It looks like normal CROSS-TAB but it has two column headings of two values CA and SE
How can I achieve this?
Oct 29 '12 #1
2 21253
zmbd
5,501 Expert Mod 4TB
Here are two links that should help:

http://allenbrowne.com/ser-67.html

http://support.microsoft.com/kb/304458

Please post back your SQL once you have it so that others and see your success or, if needed, we can help you to tweek it into shape!

Please remember to format posted SQL or other code using the <CODE/> formatting button.
Oct 29 '12 #2
Mr Key
132 100+
Thanks Zzz!
I have tried the suggestions posted by Allen Brown athttp://allenbrowne.com/ser-67.html and it works fine. Thank you
Oct 29 '12 #3

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

Similar topics

2
by: Alexus12 | last post by:
Crosstab is missing data from underlying table while NO WHERE/HAVING clauses exist! (Issue tested on Access97 SR1 and SR2): this is WRONG results (jpeg shot):...
2
by: James Dean | last post by:
I create a bitmap like this. The width and height are got from the compressed file i am reading. The width and height are in pixels.....1bpp bitmap = new...
1
by: Prince | last post by:
Hi all, Can anyone tell me how to create auto generated values in a DataTable column? Looking forward for the reply.... Thanx in advance...
4
by: Yavuz Bogazci | last post by:
Hi, we are developing an winforms application for task management. We want generate a serial number wich includes Username, Company Name and another Information as String. How can i create from...
5
by: Hels Bells | last post by:
Hi, I'm looking to do some manipulation on a string containing html code in asp which will involve me either using some regular expressions or just plain old simple replace functionality. The...
12
by: subramanian100in | last post by:
Below is my understanding about count algorithms. Return type of count and count_if algorithms is iterator_traits<InputIterator>::difference_type. If the container contains more than...
2
by: geetamadhavi | last post by:
Hi All, I am a java developer got a php project from the office how to create a list.values in the list should come from the database MYSQL what to do for this please help me out as early as...
5
by: darkestknight43 | last post by:
Hello, I've been working on this piece of code for quite a while. Essentially it is a Search Tool which pulls Mobile Home information from a database and displays listings based on the users input....
6
by: miss D | last post by:
hi, I have two queries, named: 1. Q1, which has columns name Mgr ID, MGR_Name, Empl_ID, Empl_Name, Years_of_Service and 2.Q2 which has MGR_ID, EE count both queries have 1:1...
1
by: miss D | last post by:
hi, i have posted this question here, regarding Access SQL i believe someone here is good in SQL. anyone can help me? ...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.