473,382 Members | 1,431 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,382 software developers and data experts.

How to "crosstab" when I'm not appropriately relational?

Hi All,

I have a question I didn't even know how to search..

I have a survey database I've inherited. The main table is as
follows:
ResponseID
SurveyID
LocationID
Q1
Q2
Q3
Q4
....

It's great for reporting straight survey results. But, now I'd like
to replicate some Excel analysis the previous guy did. He's got the
following output:

Average analysis
Question / Loc1Avg / Loc2Avg / Loc3Avg / etc / TotalAvg
Q1 / x.x / x.x / x.x / x.x / x.x
Q2 / x.x / x.x / x.x / x.x / x.x
Q3 / x.x / x.x / x.x / x.x / x.x
Q4 / x.x / x.x / x.x / x.x / x.x
Avg / x.x / x.x / x.x / x.x / x.x

I would like to "crosstab" this, but the table structure won't allow
it.

I've written the query to get the data, but it's obviously swapped/
transcribed on the x/y. Any ideas for flipping without me writing the
mother of all union queries? Pivot tables maybe?

TIA,

Jon
Aug 11 '08 #1
0 1159

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Koen | last post by:
Hi all, At work I created a database which is really helpful. The database is used by approx 15 users. Everything worked great, until I added some 'scoreboard' forms and reports. I get the...
3
by: John | last post by:
Is there a way to code the button that's available in the query window--microsoft excel icon that exports to excel. I know transferspreadsheet will do this---but I want the query, which is in a...
4
by: BerkshireGuy | last post by:
Hello, I was looking at a Access query and noticed in the criteria it stated: In ('001','002') Can someone please explain what the In is? How does it different from Or? Thank you,
3
by: jerry.ranch | last post by:
I'm building my own crosstab table. If a crosstab field has no data in the entire field (as a result of filtering), I don't want to show that field. Is there a way to do this in a qry or frm...
24
by: Dan2kx | last post by:
Hello to all that read and thank you to all that post Background: I have been tasked to create a holiday database for the employees in my lab, (so expect many more posts) im stuck at the first...
1
by: wfsmith | last post by:
Sorry for the confusing subject. Here's what im doing: I have a table of products. Products have N categories and subcategories. Right now its 4. But there could be more down the line so it...
3
kcdoell
by: kcdoell | last post by:
Hello Everyone: I have a table called “tblStaticAllForecast”, below are the fields I am currently focusing on within the table: LOB GWP FWeek Any given LOB can have a GWP and FWEEK...
9
by: dbdb | last post by:
hi... can access change the 0 value in my crosstab into "-" character. i want that character appear in my report not as "0" but "-' thanks
7
by: Ares6881 | last post by:
This error has been driving me a little bit nuts, I have 2 reports going off the same query, the query pulls in data from a crosstab query. One of the reports is working just fine, but whenever I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.