How can I show more information summary of a MySQL table
As part of an air show web site, we would like to know where our visitors come from. Then, when people buy tickets ask us what their zip code and also to record the number of adults / children / toddler tickets were sold at the party. The result will be a MySQL table containing the following columns Zip, City/St, adults, children, infants. CitySt will be consulted when the ticket seller between the postal code and stored in the table.
I want to display a sorting table by CitySt with separate columns showing how many adults / children / children below age came from each CitySt, I only want to show the totals by CitySt and no individual sales. I can do the details, but how to create summary information table only by CitySt. Something like that
Header 1 | Header 2 | Header 3 | Header 4 |
---|---|---|---|
City ST | Adults | Children | Toddler |
N ° 1 city | 12 | 4 | 2 |
City 2 | 8 | 10 | 4 |
City 3 | 10 | 6 | 0 |
I can view the individual table rows, but how to display just info summary by city?
Thank you
Tony
You must use the sum aggregate function and the GROUP BY clause.
Select CitySt, sum (Adults), sum (Children), sum (Toddlers) from myTable
CitySt group
Tags: Dreamweaver
Similar Questions
-
e-mails in danger
I get threatening and abusive emails to a windows live user, how can I get more information about this user to report.The information is provided in the source of the message. In OE, Windows Mail and WLMail, Ctrl + F3 reveals this.
-
How can I get more information
189 > 13 FEB 03:53:36 10.172.255.8 - 1 DHCPCLIEN [81238496]: dhcp_prot.c (769) 29839% unable to acquire an IP address on the Service Port. DHCP server has failed
not sure to get plenty of the latter, what interface or source mac or same port...
How can I get more information
Hello
The service port is the release of the Group's management port. She is set to DHCP by default. Page 503 ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/powerconnect-7048_Reference%20Guide_en-us.pdf
-
How can I show more top sites when I open a new tab? Currently it only shows four.
I opened a new tab and I see that first four sites, I used to get eight. How to change this back?
If you 'zoom back"holding the key Ctrl and tapping - one or twice, this is get the page for a good place?
If Firefox does not remember your zoom level of the page the next time that you open, you may need to disable prefetching of the page using this parameter:
(1) in a new tab, type or paste Subject: config in the address bar and press enter/return. Click on the button promising to be careful.
(2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered
(3) double-click the preference browser.newtab.preload to change its value from true to false
After the change, if you have any 'new tab' pages open, close them and open a new one change, the zoom setting and now we must remember.
If you do not want to reduce the zoom level, there are some add-ons to change the page. What follows is often referred to:
-
Elite x 3: where can I find more information on the elite x 3
I am interested in the x 3 elite, how can I find more information about it?
Thank you
Bill
Hey Bill,.
The X 3 elite is new HP phone + Tablet for businesses.
There is a FAQ available here:
Help content extra is available here:
HP Elite x 3 - using Continuum from Microsoft (Windows Mobile 10)
HP Elite x 3-connection to the desktop docking station
HP Elite Windows 3 x 10 mobile devices and applications
HP Elite x 3-Add and remove SIM and microSD cards
HP Elite x 3-transfer of data and Contacts of Android or iOS
HP Elite x 3-bet software and drivers (Windows Mobile 10) updated
-wes
-
How can I get more of my character to display at the top of the display screen?
Before you download the latest Firefox, my character at the top of the display showed at least 1/2 on firefox. Now, is that the ears. How can I show more of her? Stupid question, I know, but it's bugging me.
I think you need to show toolbars as you can so that your character can have more space so it can be displayed more.
How to show or hide various toolbars?
Check and tell if its working.
-
How can I download more than 2 downloads in "downloads window?
"Downloads window" only show 2 download and do not show a third and even more, to be expected that one of the first or second full.This has happened
Each time Firefox opened
Is downloads
Hello Mohammad.
Can you provide a screenshot of your window of downloads that you are experiencing this issue?
-
How can I remove the information dialog box/box from popping up whenever my mouse stops on an object?
Here is the procedure to remove the Vista tips: http://www.windowsreference.com/general/how-to-enabledisable-tooltips-in-windows/.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I use a lot the hierarchical keywords. For example, the location of the World/Europe/Austria/Tirol/specific. I sometimes attribute only a top-level keyword (example: Austria) of an image when I don't know any more details. How can I show only the images that have the label that I select, but not those with levels of basements for this keyword? Exactly as the choice in folders view to examine only a folder selected, but not subfolders. There could be a complicated way to implement a smart collection that includes a keyword, but excludes images with more that this number of keywords, but that could be really intensive work.
It's easy, but fairly obscure: in the library filter bar, select the keyword column. Click on the 'Properties' button on the right, and then select display: flat. Now painfully, scroll through the list and select the desired keyword:
-
I had two apple ID, but only now have access to one of the e-mails. When I try to login, it differs on the account that I no longer have access to. How can I change my information to my * account?
< email published by host >
As you know that these are user forums, it is not a good idea to post your e-mail address on a public forum - I asked the host to remove it.
What "information" do you want to go? You can transfer iTunes downloads to another account, or to merge accounts - all downloads are permanently associated with the account that has downloaded (if only this account can potentially re-download purchases, downloads of updates of its applications, authorize such purchases on iTunes from the computer, and make in-app purchases in them).
-
How can I add more shapes to my shapes menu pages?
How can I add more shapes to my shapes menu pages?
There is no provision for adding forms customized forms in the menu in Pages ' 09 v4.3 or in any version of v5 Pages.
You can keep your forms customized in a separate document of the Pages and then paste them as needed in your present work.
You can copy the form customized to the Clipboard and then choose in the menu file preview: new from the Clipboard. Now you can export this form in your favorite image format and re-use in the future efforts of Pages.
-
HP Workspace: Where can I find more information on the workspace of HP?
Hey everybody,
Where can I find more information on the workspace of HP?
Thank you
Bill
Learn more about application virtualization service workspace of HP by visiting www.hp.com/go/workspace. For more information about the HP Elite x 3, please visit www.hp.com/go/elitex3.
-
to the left of the URL are 3 balls, red, yellow, green, who go around in a circle. When I click it it says download assistance, what is it for and how can I learn more about them?
An add-on (extension) for download videos from Youtube-like on your hard drive
- See-> https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/
- See-> http://www.downloadhelper.net/index.php
- See-> http://www.downloadhelper.net/documentation.php
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update if necessary:
- Plugin check-> http://www.mozilla.org/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Adobe PDF plugin for Firefox and Netscape: Installation/update Adobe Reader in Firefox
- Shockwave Flash (Adobe Flash or Flash): updated Flash in Firefox
- Next generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
How can I get more of recorded history?
How can I get more history? I used to get unlimited history and now I get only a month. I can't find preference settings.
Tools > options > privacy > change to "use the custom settings for history".
then you can change the number of days -
I have problems of space on my iPhone 6, I have only 21 photos and 2 videos on my phone. However, I am part of a chart group on whatsapp. The problem now is that my storage space is almost full. How can I create more space for photos and everything?
You cannot create more space for everything. All you can do is remove apps, photos and especially videos to make room for other pictures and videos.
Maybe you are looking for
-
A mysterious app appeared on my Mac.
An application has appeared in my folder of Applications with a title in Arabic alphabet: 'مساعد الترحيل. The system think it's the Migration Wizard and won't let me delete it. What is it, how did get there and what should I do?
-
Replacement of motherboard Pavilion DV6
Hello I had to replace m.b. 571187-001 on a laptop Pavilion DV6-2021el, caused by keybord fell on liquid. I bought it in the new framework on ebay USA. Now, with the new Board of Directors, after the HP logo, it make me configuration, name of the pro
-
Model vs batch model in parallel
Hi, I'm starting to develop a new machine that manages 12 DUT. I have 4 edits, 3 DUT each. The 4 light should go independently (in parallel), 3 DUT on each device should go in lot of sharing the communication channel. This application is the perfect
-
Conclusions on the (empty) replacement? Ink cartridges for OfficeJet 8600 N911g
I would like to note some interesting conclusions on the replacement of "Setup cartridges. The printer has reported that the black ink was out and needed replacement. It really has not reported the CMY cartridges also outside, even if they were low.
-
Combined BB new blackBerry Smartphones?
I am a fan of BB pretty fanatic and want to stay with a handset of BB, but I'm not interested to go to the Android OS (I have a Z-30 and I love BB10!) but either I don't want physical keyboard, which excludes the passport for me. Are there plans to b