473,396 Members | 1,764 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.

Require Results in Cross tab query

Hi,

I would like to generate report of volunteers.

my Tables are as:

DepDetail: Contains all information of Departments and activities.

ActivitiesDetail: Activities assigned to different volunteers and activity time also.

I would like to get the report as:

Expand|Select|Wrap|Line Numbers
  1. Activities         Roll down    updo    checking   so on...
  2. 6:00 Am             Mr.A        Mr.B    Mr.C
  3. 6:30 AM             Mr.C                Mr.B
  4. 7:00 AM                         Mr.A    Mr.M
  5. so on..
  6.  
Time slots are in different table and Activities are dynamic in department detail table.

I have attached snap shot what i am looking.

Thanks and waiting of your response.

Attached Images
File Type: jpg question.jpg (54.4 KB, 153 views)
Oct 24 '15 #1
4 973
zmbd
5,501 Expert Mod 4TB
You've barely provided the needed information. We really need to see the structure and data in the tables (only a few records, not the full data-set ;-) ).
You can hand enter these (as you did in your original post) and use the [CODE/] format tool in the post-toolbar to retain the tabular structure.
Please indicate which fields are (primary/foreign/self-join)-keys

IN any case, you need to start with learning about the crosstab query structure.
A fairly good starting tutorial is located here on Allen Browne's site (( Crosstab query techniques ))

-z
Oct 24 '15 #2
I have attached the db and sample report what i want.

thanks for your kind help.

Attached Images
File Type: jpg order.jpg (47.1 KB, 98 views)
Attached Files
File Type: zip Volunteer Data Tracking Program_1.3.zip (286.3 KB, 46 views)
Oct 24 '15 #3
zmbd
5,501 Expert Mod 4TB
rehanemis

+ If you will attempt this based on the tutorial linked to in my prior post and post your results we can be of much better help. It's not the normal custom here to just "do the work" for someone as many of our experts are usually doing this from home or between tasks at work under very limited time constraints. In fact, where I am at, I should be in bed asleep, suffering from a little insomnia induced by a cranky 3 year old :)

+ I'm sorry, I don't down load unrequested files nor do most of the experts. Please understand that most of us work in secured environments; thus, such downloads are often restricted or even outright prohibited.

What is needed is for you to actually provide the information requested as a text entry in a post within the thread. Only a few records need be entered for each table and the data can be generic in nature provide the data is of the same type-cast as the original.

+ Finally, the image in your second post appears to be the same as the first; if so, then I can remove it if you would like.
Oct 24 '15 #4
hvsummer
215 128KB
@ rehanemis:
can you post your SQL of that crosstab in comment ? I and everyone else have to see it before we can give any further suggestion.
Oct 25 '15 #5

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

Similar topics

6
by: Curt Bousquet | last post by:
Hi; I'm brand new to PHP (just starting today to convert tons of ColdFusion/Access code to PHP/MySQL). There is a function in Coldfusion that I can't find an equivalent to in PHP. Here is what...
4
by: Ken | last post by:
How can I get this line to work? I am trying to get the results entered in a form to be part of my query. I am able to get the form results but I get a error stating Syntax error (missing operator)...
2
by: Stan | last post by:
Hello all, I'm looking for some hints as to how to use the results of a query in another query. I assume I'm 'thinking' wrong in how to solve this, so I'm hoping someone can clobber me and send...
4
by: Mark | last post by:
Hi all, I have a query which returns 56 results every time. 1 field of the query contains the results of an expression where 55 will contain decimal points and 1 will be a whole number. Is there a...
3
by: Artur | last post by:
I need access table as a result of cross query? What should I do? Artur
4
by: cihpet | last post by:
Hallo, I am beginner, I want to show on page results of this query: $query="SELECT mr_prehlad.mr_id, mr_kontakt.nazov_mr FROM mr_prehlad RIGHT JOIN mr_kontakt ON mr_kontakt.id_mr=mr_prehlad.mr_id...
2
by: KTosser | last post by:
I have two tables, one contains contacts and the other has all the events and years that the contacts participated in. What I want is to be able to choose the years, say 2005 and 2006, and get all...
6
by: C Sharper | last post by:
I would like to query a table, and save the results into 1 field of a results table as below: Table1: StudentID FirstName LastName JOHND John Doe JANED Jane Doe...
8
by: muttnut | last post by:
I'm quite new to VBA and am having trouble figuring this out. I've got a query that provides a list of users (QryUsers). Using the results of that query I would like to run an INSERT INTO...
0
by: MDeck | last post by:
I have been all over the web for days searching for a way to accomplish the following, and I am praying some experts can help me figure it out! I have a client that wants to dynamically build a...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.