PHP
  Home arrow PHP arrow Page 2 - Statistical View of Data in a Clustered Ba...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Statistical View of Data in a Clustered Bar Chart
By: Muhammad Naeem
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 48
    2003-12-01

    Table of Contents:
  • Statistical View of Data in a Clustered Bar Chart
  • Database
  • Getting Down and Dirty
  • Drawing Charts
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Statistical View of Data in a Clustered Bar Chart - Database


    (Page 2 of 5 )

    The database consists of four tables.

    1. Students
    2. Programs
    3. Subjects
    4. Marks

    Each of the first three tables has a one-to-many relationship with the Marks table.

    Database Schema

    SQL statements to create these tables are as follows:

    Marks Table

    CREATE TABLE marks (
       id int(11) NOT NULL auto_increment,
       student_id int(11) DEFAULT '0' NOT NULL,
       program int(11) DEFAULT '0' NOT NULL,
       subject int(11) DEFAULT '0' NOT NULL,
       marks int(11) DEFAULT '0' NOT NULL,
       entry_date date,
       PRIMARY KEY (id)
    );

    Programs Table

    CREATE TABLE programs (
       id int(11) NOT NULL auto_increment,
       program varchar(255),
       PRIMARY KEY (id),
       UNIQUE program (program)
    );

    Students Table

    CREATE TABLE students (
       id int(11) NOT NULL auto_increment,
       name varchar(100),
       PRIMARY KEY (id)
    );

    Subjects Table

    CREATE TABLE subjects (
       id int(11) NOT NULL auto_increment,
       subject varchar(255),
       PRIMARY KEY (id),
       UNIQUE subject (subject)
    );

    More PHP Articles
    More By Muhammad Naeem


     

    PHP ARTICLES

    - Making Usage Statistics in PHP
    - Installing PHP under Windows: Further Config...
    - File Version Management in PHP
    - Statistical View of Data in a Clustered Bar ...
    - Creating a Multi-File Upload Script in PHP
    - Executing Microsoft SQL Server Stored Proced...
    - Code 10x More Efficiently Using Data Access ...
    - A Few Tips for Speeding Up PHP Code
    - The Modular Web Page
    - Quick E-Commerce with PHP and PayPal
    - Regression Testing With JMeter
    - Building an Iterator with PHP
    - PHP Frontend to ImageMagick
    - Using PEAR's mimeDecode Module
    - Incoming Mail and PHP







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway