Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The development of the conceptual schema and/or the logical model and/or the physical settings of a database.
6
votes
How to design a database for storing a sorted list?
I would think the thing to do is to store the property or properties that are used to calculate the rank and then build an index over them. Rather than trying to force the database to physically stor …
6
votes
Scalable table structure for periodically updated stats that get aggregated over time
I'm frankly always nervous about throwing away details. For that reason I'd try to find a way to keep handy (or at least archive) the most granular data. That way, if your summarization requirements …
5
votes
Accepted
Recommended model for application level event logging
Your basic model is fine. It gives you a standard, normalized intersection (many to many) of events of specific types associated with particular users. Without knowing more about your intentions or …
5
votes
Accepted
database schema for a product with multiple categories and hierarchical categories
What you are proposing is a good solution for your requirement of M:N products to categories and hierarchical categories.
To avoid exposing yourself to numerous updates:
You need to do two things to …
1
vote
One to one relationship or another approach?
Your "Idea 1" is the best approach as it most naturally and accurately enforces the cardinality between SITE and CLAN/GAME/TEAM.
Your other rule that SITE must be only one of CLAN, GAME or TEAM wou …
3
votes
Database Modelling of Type, Subtype Relation
Important Caveat: You need to look at the link OP provided! It uses the words type and sub-type as jargon in a way which is similar to, but different than what programmers or even data modellers wou …
0
votes
How to design a schema to store search keywords
Do you have a reason to store the searches as individual events or are you only interested in recording which terms were used how many times on any given day?
If you just need to record how many time …
2
votes
Accepted
Where does a type specific field go?
What you are proposing is an entity subtyping approach. This would be one common solution to your design problem. Another would be Entity-Attribute-Value (EAV).
Type "subtype" or "EAV" into the sea …
2
votes
Design question about student assessment data
The first thing you want to do to keep your thinking straight is to choose some clear terminology. You are using the word "assessment" in two different contexts: (i) a Test and (ii) the results for a …
2
votes
When to add another lookup table for the same field
Most people consider one lookup table to rule them all an anti-pattern. You can see lots of reasons why, and many of them are well described in One lookup table or many lookup tables? which you've al …
2
votes
better approach to design company hierarchies in table
If your hierarchy is rigid (i.e. the levels are consistent and mandatory) then there is nothing wrong with representing each level as it's own table. This is your first option, except that instead of …
1
vote
Accepted
Self-referencing tables uses
Self referencing tables can be used to store hierarchical data. For example, see my answer to this question.
You can also use self referencing tables to record non-hierarchical relationships which a …
1
vote
Accepted
Database Design for Credit Purchase
Consider handling all money related transactions using a double entry accounting model. Any real world application will eventually need to handle the complexity that this model supports and it is a w …
1
vote
Accepted
If your table is named Articles, do you name your column article_number or simply number?
SQL employs a concept known as domain name integrity which means that the names of objects have a scope given by their container.
Column names have to be unique, but only within the context of the ta …
5
votes
Accepted
Computing values on the fly vs decrementing bucket contents
Computers don't get tired.
Nobody has so many employees that the summation over a well-indexed set of rows of vacation actually taken would grind their servers to a halt.
What is a problem is precal …