I read a lot of posts asking if a design is "good."
Then the person posts a bare bones schema with little more than table names and column names, and occasionally a 3000x3000 ER diagram that's a mess.
I'm a big believer in the maxim that once you've stated the question properly you've done 99% of the work of answering it. This is especially true of our line of work, since it's so mathematical in nature.
So I was wondering if it would be worthwhile for the pros on this site (I can't count myself as one, honestly) to suggest the format for what are very common questions.
To get the ball rolling, I'd like to see:
1. Base table names
2. English predicates
3. Headers with logical and SQL type information.
4. A row or two of sample data!
As an example, a table of addresses might be:
Code:
ADRESSES
/* On Envelope Envelope_ID there is a to Address with Street, Apt, City, State and Zip. Each Address corresponds to an existing Envelope. */
Envelope_ID INT PK FK(ENVELOPES)
Street VARCHAR(80) /* text */
Apt VARCHAR(20) /* text */
City VARCHAR(40) /* City */
State VARCHAR(5) /* State */
Zip CHAR(5) /* ZIP5 */
Example:
Envelope_ID Street Apt City State Zip
1 123 St. 2-F Anytown MA 12345
Any thoughts? Would that be too much info to wade through when reading a post?