Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Useful stock SQL data models?

As a parallel to my question about Useful stock SQL datasets, I wonder if anyone has come across a library/web page/wiki/etc. that contains stock SQL data models. For example, the problem of maintaining table(s) for login credentials is faced by countless developers. Are any of you aware of a data model that provides a best-practices implementation of this table? What about other use cases? I'm thinking about things like inventory control, sales reporting, application events (login, logout, viewing a given page or item, etc.). I came across a great resource at databaseanswers.org, but wonder if there are any other resources I should take a look at.

As with my question on data sets, I'm looking for things that can readily incorporated into an application, fulfill a generic need that many developers have, and something that is not specific to a single industry or business sector. Address books, login credential tables, messaging, etc. all fall into the criteria I'm thinking about.

Any thoughts?

like image 921
Shadowman Avatar asked Dec 23 '10 19:12

Shadowman


People also ask

What are SQL data models?

Data Modeling is the process of developing a data model for storing data in a database. This data model is a conceptual representation of data objects, data object associations, and data object rules.

Is SQL used for data modeling?

SQL is accessible, can build complex models and analyses quickly, and offers a deep ability for data manipulation. Indeed, simply having an SQL cheat sheet is enough in most cases to get by and thrive when using the language for SQL data analysis.

Is SQL used in trading?

A SQL database's role is to store and serve relational data. The majority of the trading system is not this and you'll be better off to use a general purpose programming language. You can still use SQL on the backend and access it programatically with python through psycopg2 or sqlalchemy libraries.

What is data modeling in SQL with example?

Data modeling is the process of diagramming data flows. When creating a new or alternate database structure, the designer starts with a diagram of how data will flow into and out of the database.


2 Answers

Have you seen the SO question relational-database-design-patterns?

EDIT: Having got interested in this question I had a look for any books on the subject and found the following volumes:

The Data Model Resource Book: A Library of Universal Data Models for All Enterprises: Vol 1

The Data Model Resource Book: A Library of Universal Data Models by Industry Types: Vol 2

The Data Model Resource Book: Universal Patterns for Data Modeling Vol 3

I've not read the series, so I can't recommend them myself, but they look interesting.

like image 189
Tony Avatar answered Nov 05 '22 08:11

Tony


Here is a list of professional standard scbemas of ebXML: http://docs.oasis-open.org/ubl/os-UBL-2.0/xsd/maindoc/

They are not exactly "Data models" but schemas for message exchanging, but can help you model your data.

Avoid use "Standard data models" (like the dbanswers), they are poor, and can't address even the most common scenarios.

like image 30
Adilson de Almeida Jr Avatar answered Nov 05 '22 07:11

Adilson de Almeida Jr