MySQL
  Home arrow MySQL arrow Page 6 - The Perfect Job (part 1)
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
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? 
MYSQL

The Perfect Job (part 1)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2001-06-28

    Table of Contents:
  • The Perfect Job (part 1)
  • An Ideal World
  • Entry Point
  • Going To The Database
  • The Five Rs
  • Lucky Thirteen
  • Building The Foundation
  • The Devil Is In The Details
  • Applying Yourself
  • Testing Times
  • Filing It All Away

  • 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


    The Perfect Job (part 1) - Lucky Thirteen


    (Page 6 of 11 )

    Finally, I have some ancillary tables which store country lists, industry lists, subject lists and the like. Again, these have been placed in separate tables and linked via foreign keys to simplify customizing the application for diverse needs. Here they are:

    # # Table structure for table 'country' # DROP TABLE IF EXISTS country; CREATE TABLE country ( id tinyint(4) unsigned NOT NULL auto_increment, country varchar(255) NOT NULL, PRIMARY KEY (id) ); # # id - unique record identifier # country - country name # # # Dumping data for table 'country' # INSERT INTO country (id, country) VALUES ( '', 'Afghanistan'); INSERT INTO country (id, country) VALUES ( '', 'Albania'); # # Table structure for table 'degree' # DROP TABLE IF EXISTS degree; CREATE TABLE degree ( id tinyint(3) unsigned NOT NULL auto_increment, degree varchar(255) NOT NULL, PRIMARY KEY (id) ); # # id - unique record identifier # degree - degree type # # # Dumping data for table 'degree' # INSERT INTO degree (id, degree) VALUES ( '1', 'High School degree'); INSERT INTO degree (id, degree) VALUES ( '2', 'Undergraduate degree'); INSERT INTO degree (id, degree) VALUES ( '3', 'Bachelor\'s degree'); # # Table structure for table 'industry' # DROP TABLE IF EXISTS industry; CREATE TABLE industry ( id tinyint(4) unsigned NOT NULL auto_increment, industry varchar(255) NOT NULL, PRIMARY KEY (id) ); # # id - unique record identifier # industry - industry type # # # Dumping data for table 'industry' # INSERT INTO industry (id, industry) VALUES ( '1', 'Advertising'); INSERT INTO industry (id, industry) VALUES ( '2', 'Agriculture and Forestry'); # # Table structure for table 'subject' # DROP TABLE IF EXISTS subject; CREATE TABLE subject ( id tinyint(3) unsigned NOT NULL auto_increment, subject varchar(255) NOT NULL, PRIMARY KEY (id) ); # # id - unique record identifier # subject - subject name # # # Dumping data for table 'subject' # INSERT INTO subject (id, subject) VALUES ( '', 'Accounting'); INSERT INTO subject (id, subject) VALUES ( '', 'Actuarial Science');
    The "jobs.sql" file in the source code archive contains a longer list of items for these ancillary tables.

    How many tables is that? Well, Joe, it's lucky number thirteen! Whoopee!

    This article copyright Melonfire 2001. All rights reserved.

    More MySQL Articles
    More By icarus, (c) Melonfire


     

       

    MYSQL ARTICLES

    - MySQL Server Tuning Tips and Tricks
    - MySQL Query Optimizations and Schema Design
    - MySQL Benchmarking Tools and Utilities
    - MySQL Benchmarking Concepts and Strategies
    - Take Some Load off MySQL with MemCached
    - MySQL Table Prefix Changer Tool in PHP
    - Using the SIGNAL Statement for Error Handling
    - Error Handling Examples
    - Error Handling
    - Completing a Search Engine with MySQL and PH...
    - Paginating Result Sets for a Search Engine B...
    - Building a Search Engine with MySQL and PHP 5
    - Using Boolean Operators for Full Text and Bo...
    - PHP, MySQL and the PEAR Database
    - Working with PHP and MySQL





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT