473,654 Members | 3,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crosstab Report

Hi All,

Any guidance on how to generate a crosstab report, have searched everwhere,
well almost, no joy.

Any help gratefuly accepted

Cheers

May 30 '07 #1
6 3159
Johnny BeGood wrote:
Any guidance on how to generate a crosstab report, have searched everwhere,
well almost, no joy.
Do you mean on how to join two tables together?

SELECT *
FROM people p
INNER JOIN companies c ON p.employer=c.co mpany_id
WHERE c.country='de' AND p.forename='Han s';

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 18:35.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #2
Hi Toby,

Thanks for your reply, some thing like the following, noy sure how this will
format

Engineer Day1 Day2 Day3
John esb n/w esb
Mary n/w esb abc

almost like a spreadsheet ;)

Cheers
"Toby A Inkster" <us**********@t obyinkster.co.u kwrote in message
news:7k******** ****@ophelia.g5 n.co.uk...
Johnny BeGood wrote:
>Any guidance on how to generate a crosstab report, have searched
everwhere,
well almost, no joy.

Do you mean on how to join two tables together?

SELECT *
FROM people p
INNER JOIN companies c ON p.employer=c.co mpany_id
WHERE c.country='de' AND p.forename='Han s';

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 18:35.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #3
Johnny BeGood wrote:
almost like a spreadsheet ;)
Use the HTML <tableelement .

I'm still not entirely sure what the question is.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 20:12.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #4
Message-ID: <b7************ @ophelia.g5n.co .ukfrom Toby A Inkster
contained the following:
>almost like a spreadsheet ;)

Use the HTML <tableelement .

I'm still not entirely sure what the question is.
Neither am I but here's the answer
http://www.google.co.uk/search?clien...=Google+Search

for instance...
http://www.paragoncorporation.com/Ar...x?ArticleID=25

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
May 30 '07 #5
Sorry Guys, one of my blonde moments,

How do I generate a crosstab report, or a tabular report or an html table
that looks like a crosstab report, using PHP?

Cheers
"Geoff Berrow" <bl******@ckdog .co.ukwrote in message
news:8b******** *************** *********@4ax.c om...
Message-ID: <b7************ @ophelia.g5n.co .ukfrom Toby A Inkster
contained the following:
almost like a spreadsheet ;)
Use the HTML <tableelement .

I'm still not entirely sure what the question is.

Neither am I but here's the answer
http://www.google.co.uk/search?clien...=Google+Search
>
for instance...
http://www.paragoncorporation.com/Ar...x?ArticleID=25

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

May 30 '07 #6
Message-ID: <8t************ *******@news.in digo.iefrom Johny Begood
contained the following:
>Sorry Guys, one of my blonde moments,

How do I generate a crosstab report, or a tabular report or an html table
that looks like a crosstab report, using PHP?
Usually the output from a query is a number of rows each row being an
array of values. For instance with mysql you might do something like
this

$sql="Select etc etc";
$result=mysql_q uery($sql);
$result_table=" <table>\n<tr>\n ";
$result_table.= <th>col1</th><th>col1</th><th>col1</th>\n";
while($myrow=my sql_fetch_assoc ($result)){
$result_table.= "<tr>\n<td>$myr ow[col1]</td><td>$myrow[col2]</td><td>$myrow[col3]</td>\n</tr>\n";
}
$result_table.= "</table>";

echo $result_table;
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
May 30 '07 #7

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

Similar topics

2
2695
by: Helpdesk Man | last post by:
Hello SQL and Crystal Reports friends, I am trying to make a report and need some help please. It is a helpdesk database. Jobs are logged, and then closed. Each of these events is timestamped in the database in the date fields “DateLogged” and “DateClosed” Jan Feb Mar Apr
1
17657
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
1
4088
by: mtech1 | last post by:
Access 2002 I am trying to create a dynamic crosstab report that parameters come from 3 different forms. I get runtime error 3070 - The Microsoft Jet database engine does not recognize 'Forms!frmDefaults!ProviderID' as a valid field name or expression, and debug takes me to line 60 below. Any Suggestions Would Be Truly Appreciated!
12
6641
by: jkearns | last post by:
Hello, I made a report from a crosstab query following the steps onlined in MSDN's Solutions.mdb example. I now have a dynamic crosstab report (great!), but with one minor problem. I cannot get access to show NULL and 0 values seperately. I've tried the following Format properties in my text box: 0.0;;0;"" --> Both NULL and 0 values display as 0 0.0;;"";"" --> Both NULL and 0 values show up blank
1
1175
by: Bill Nguyen | last post by:
I used the following formula in my crosstab report. WeekdayName (DayOfWeek ({selling.s_sell_date}),true,2) for column and selling.sellGallons for the summarized value. I wanted the week to begin with Monday (2), the colum heading display correctly, but the data in the column came from Sunday instead of Monday's! How can I fix this? Thanks a million;
2
1868
by: Ecohouse | last post by:
I'm using Access 2002. I'm creating a report dynamically using a crosstab query. I found the code for this on the Microsoft site. I noticed that the report doesn't go past six pages. How can I make the report go past six pages? Also is there a way to sort the total column in descending order? Thanks in advance for the help.
3
3487
by: Niranjan | last post by:
I want create a report based on the crosstab query which normally returns about 50 - 60 columns. The columns have names of the counties and they keep changing for every session. Is there a way to program a dynamic multi-page crosstab report?
14
7841
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which has the following fields: SPID (supervisor ID), total:group by, as row heading Date, total:group by, as column heading Calls handled, total:sum, as value Date, total:where, criteria between and - this is taken from a form,
11
6183
ollyb303
by: ollyb303 | last post by:
Hello, I am using a dynamic crosstab report to track performance statistics for my company and I have hit a problem. I would like the option to track stats daily (for the last 7 complete days), weekly (for the last 6 weeks) and monthly (for the last 6 complete months). Daily and monthly are not causing me a problem - I have used the following code to construct the query: strXT = "TRANSFORM Sum(Query2.STAT) AS SumOfSTAT " & _...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8708
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7307
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.