Distribution of ages of the Bulletin Board

Hello

I have a 'choir' database with a table 'members' like this:

NameBirth
Caius17/10/1980
MIRELA03/04/1969
Ruben09/04/1993
Cristina05/06/1978
Renate06/01/1994
ADELA13/09/1982
Ciprian01/12/1957
Andreea07/08/1995
Melinda03/12/1994
ANDA03/09/1985
Laurentiu14/07/1987
Vlad25/07/1989
Geta06/03/1977
Amalia30/12/1994
Mihaela02/10/1983
Olivera09/07/1986

With Dreamweaver PHP, it is possible to display in a distribution of ages like this Web page:

< 20 years: (in this case: 5)

between 20 and 30 years old: (in this case: 6)

between 30 and 40 years old:

between 40 and 50 years old:

> 50 years

Thanks a lot for your help!

Lucian.

Or,

$query_rs_age =

'SELECT count (*) '<20' as="" 'age'="" from="" members="" where="" year(curdate())-year(data_nasterii)=""><>

UNION

SELECT count (*), ' 20-30' OF members WHERE the YEAR (CURDATE ()) - YEAR (data_nasterii) BETWEEN 20 and 30

UNION

SELECT count (*) '<30-40'  from="" members="" where="" year(curdate())-year(data_nasterii)="" between="" 30="" and="">

UNION

SELECT count (*), 40-50' FROM members WHERE YEAR (CURDATE ()) - YEAR (data_nasterii) BETWEEN 40 and 50

UNION

"SELECT count (*), ' > 50' FROM members WHERE YEAR (CURDATE ()) - YEAR (data_nasterii) > 50;

If your distribution groups are equal (10 years apart, for example), you could just do an entire division on the year difference and then count those who have a group by clause.  But your first and last group being larger than the groups of middle, a UNION query could be the simplest solution.

Tags: Dreamweaver

Similar Questions

  • Future of the Bulletin Board and windows 8

    Will there be an official update of windows 8?
    There will be any upgrade of the Bulletin Board?

    I think that on this forum for users, no one can give you specific answers to your questions. The fact is that Toshiba has always offered updates for new operating systems, so I think the same thing will happen with Win8 and all the specific stuff Toshiba including bulletin board.

    I think that will happen when Win8 will be officially offered on the market.

  • Integration of the Bulletin Board and microsoft surface?

    Toshiba think integration Bulletin Board with microsoft surface?
    It would be very cool!

    Unfortunately, I can not comment on your question but would like to say that I love your posts and your comments.
    There is not a lot of people who have made suggestions how to improve things on this forum.

    I think Toshiba lend more attention to the own customers.
    Let's see what will happen with the Bulletin Board. In any case, I can imagine that Toshiba will continue to develop it with new features.

  • Can not update with the Bulletin Board

    The Toshiba bulletin board say that I've updated to do, I'm going in and actually there are updates, but when I press the transfer button, it says it cannot detect any network.

    I am connected to the internet when you do.

    Hey,.

    Generally if everything on your laptop is working properly, you can forget about these updates. Should that s only important if you have a problem and the new device driver.

    Maybe you can solve the problem with reinstalling Bulletin Board but like I said: this message is not important.

  • I get an error message in my portfolio of fianance Yahoo when I click on the Bulletin Board.

    When I am in Yahoo Finance, my portfolio, I can't go in for any of my symbols message board.
    I get this message. Error retrieving data (error Code: MBHo_404404_1MBBa_INVALID_STATUS)
    Help, please.

    This seems to be a matter of Yahoo:
    http://answers.Yahoo.com/question/index?QID=20130110034630AA9Mpav

    It seems to happen with several browsers.

  • How to change the length of the area of Google search or on the Bulletin Board web address?

    I want to reduce the window of web addresses and increase the length of the search panel. How can I achieve this.

    I'm Mac 10.7.2
    Firefox 10.0

    No problem. Always happy to help!

  • each 5th item in the Bulletin Board

    Hello

    I am trying to take an iteration of the loop and pull each 5th element data. This will go eventually to the comparison of a certain type to activate a structure case true/false.

    What I have trouble with the algorithm of worms gets down. I have attached a simple loop for which has a constant 100 attached to the Terminal "N" with a random number generator, multiplied by 100, sending through the loop for to give a picture of the other side.

    I will continue to build up my brain to see if I can solve this problem, but I spent most of the morning trying to understand and find this out and came to nothing.

    See attached vi.

    Here is the code

  • No space in the Bulletin Board for connection Table

    My tuxedo client, when trying to connect to the tuxedo, I get error in the newspaper of Tuxedo below and the connection is refused:

    * 104946.IDCCMS01! tcpiptic.146964.146968.0: LIBTUX_CAT:328: ERROR: no space in the scoreboard for connection table *.
    * 104946.IDCCMS01! tcpiptic.146964.146968.0: LIBTUX_CAT:1079: ERROR: could not create the link *.

    Can someone help me what parameter needs change in order to avoid the mistake?

    Concerning

    Hello

    I would check the values of MAXWSCLIENTS and MAXACCESSERS.

    Kind regards
    Todd little
    Chief Architect of Oracle Tuxedo

  • All that is needed later for release on the Bulletin Board

    I have a question where the user enters a manufacturer. Then I will retrieve and display the description of the part.

    The description field must be screen only, (i.e., not just 'read only' - I don't even want that they be able to tab inside), but it must retain its value so that it can be inserted into a table when 'submit '.

    Display = display as text (saves the State) almost seems to give me what I want, but is not displayed immediately his content as do articles defined as Display = display text (does not save the State).

    Someone suggested Display = text field with the attributes of the HTML Form element = readonly = "true" tabindex =-1, but that ever-present white bordered box vs ' display as gray text background.

    Thanks in advance for your help.

    Your best bet is to make the item appear as State records of the text, and then use ajax to update the value of the description element.

    See http://www.oracle.com/technology/obe/hol08/apexweb20/ajax_otn.htm to learn how to use ajax in the apex.

    Kind regards

  • Adding column which gives the serial number for each line in the Bulletin Board

    I use the update version 2 Jdev 11 g.
    I'm the filling of all employees from the emp table ADF table.
    My requirement is to add a column more as the first column and header line which displays the serial number for each serial number of row.the is not available in the table emp in database .i want to generate it dynamically when the data are filled in to ADF table.i don't want not to use the method to get the SQL query rownum. I want to get custom code (in the Managed Bean) or set all of the properties in the subject entity or any other object.

    Published by: sj0609 on September 8, 2009 09:43

    Hello

    Give an id to the table (say 'currRow') varStatus property. Add a column to the table (for example with a text output), then set it to the value of the output text #{currRow.index}.

    Arun-

  • Libretto W100 Bulletin Board in the cloud

    My proposal is to save the settings of the Bulletin Board in the cloud to be accessible from all devices.

    (Like everynote)

    Harmonization with the everynote would be very cool.

    Might be a good idea and might be useful if you use the same information on your laptop netbook and the main unit

  • How do I open and the useToshiba Bulletin Board

    I can't find the Bulletin Board of "start," "programs". I noticed that it when I uninstall other programs but can't find file to open it.

    How to use it. Is it the same as Sticky Notes or something more flexible.

    Hello

    Please follow the instructions in the link.

    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/bulletin.jsp?CT=SB&soID=3368363&ref=EV#bulletin Council

  • Is it possible to use more than 8 boards with Toshiba bulletin board?

    I want to have more than 8 boards on the Bulletin Board.
    Y at - it a setting I can change to achieve this goal?

    Not sure if you can create more 8 boards, but I guess that's the max if no other option is available in the display settings

  • DLNA is a beautiful feuture for Bulletin Board

    A nice feature for the Bulletin Board would be shared on a dlna renderer.

    Windows 7 can send multimedia off the exporer ("play to") to a renderer dlna (such as TV).

    The Bulletin Board is missing this option.

    I imagine something like dlna sharing on a Tablet S.

    Beautiful thoughts. It will be nice that Toshiba software engineers reading this forum. ;)

  • Bulletin Board - false Message Center alerts

    TOSHIBA Bulletin Board guard alert me to two Messages. However, when I "Open the Bulletin Board" and "Show all Messages" messages disappear. The process is repeated, sometimes daily.

    Hello

    What messages or alerts you get exactly? Can you post a screenshot? It would be really helpful

    I think you can also try reinstalling the Bulletin Board. Probably it s faulty or else you can download the latest version of this tool on the Web from Toshiba site:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    Check this box!

Maybe you are looking for

  • Satellite A200-1ZF starts not flashing power led

    Hello Today, my laptop Satellite A200-1ZF wouldn't start, instead, my power led flashes orange-orange-blue-orange-orange - blue and so on and so forth.The HDD led transforms the blues when I turn on the computer and seems to work fine (I hear the nor

  • Pavilion a6838f Motherboard

    I plan to replace the motherboard of this computer. After this upgrade, the parties only stocks will be case, hard disk and dvd player. I wonder what motherboards will be adapted on the case (in particular, this: Asus B85M - G MB). Does anyone know i

  • Re: Satellite L500 - 12 p overheating issues

    Hi all I have a strange problem with overheating. When the processor is idle, my temperature is between 60 ° C and the speed of the cooling fan is woking near the maximum. If I surf or listen to music, my laptop is very hot! In addition, I do not kno

  • Need data from an old hard drive

    I have an old HP Pavilion 8275. It's a Windows 95 machine with an ATX40R80 (8 GB) hard drive. I bought a new HP Pavilion, a6152n Vista running. Because I could use some of the data on the old disk, I bought a USB 2.0 to SATA/IDE, an ADA-2020, to see

  • R8000 FW 1.0.3.4 Extra channel 165

    Did you notice the channel additional 5 '165' g if yes do not use. He abandons the connection of 877,6 to 173,4