A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

nested AND loop Qery Question



 
 
Thread Tools Display Modes
  #1  
Old April 1st, 2008, 07:27 PM posted to microsoft.public.access.queries
aaaagc
external usenet poster
 
Posts: 3
Default nested AND loop Qery Question

i have this table :
ID Course Detail1 Detail2 Detail3
St_1 Curse1 1 2 3
St_1 Curse2 1 2 3
St_1 Curse3 1 2 3
St_2 Curse1 1 2 3
St_2 Curse2 1 2 3
St_2 Curse3 1 2 3
St_3 Curse1 1 2 3
St_3 Curse2 1 2 3
St_3 Curse3 1 2 3

i need this report by using sql statment :

St_1 St_2 St_3
Curse1 Curse2 Curse3 Curse1 Curse2 Curse3 Curse1 Curse2
Curse3
1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3 3

  #2  
Old April 1st, 2008, 08:01 PM posted to microsoft.public.access.queries
AKphidelt
external usenet poster
 
Posts: 591
Default nested AND loop Qery Question

They don't allow 2 columns in a crosstab query so you are going to have to
create 2 separate queries then join them together.

"aaaagc" wrote:

i have this table :
ID Course Detail1 Detail2 Detail3
St_1 Curse1 1 2 3
St_1 Curse2 1 2 3
St_1 Curse3 1 2 3
St_2 Curse1 1 2 3
St_2 Curse2 1 2 3
St_2 Curse3 1 2 3
St_3 Curse1 1 2 3
St_3 Curse2 1 2 3
St_3 Curse3 1 2 3

i need this report by using sql statment :

St_1 St_2 St_3
Curse1 Curse2 Curse3 Curse1 Curse2 Curse3 Curse1 Curse2
Curse3
1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3 3


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.