Database-design Questions
Ad
Extending SQL Server full-text index to search through foreign keys
I know that a sql server full text index can not index more than one table. but, i have relationships in tables that i would like to implement
Surrogate vs. natural/business keys
Here we go again, the old argument still arises... would we better have a business key as a primary key, or would we rather have a
Extra tables or non-specific foreign keys?
There are several types of objects in a system, and each has it's own table in the database. a user should be able to comment on any of them. how
How would I store a date that can be partial (i.e. just the year, maybe the month too) and output it later with the same specifity?
I want to let users specify a date that may or may not include a day and month (but will have at least the year.) the problem is when it is stored
Simple way to parse a person's name into its component parts?
A lot of contact management programs do this - you type in a name (e.g., "john w. smith") and it automatically breaks it up internally
Database structure to track change history
I'm working on database designs for a project management system as personal project and i've hit a snag. i want to implement a ticket
Effective strategy for leaving an audit trail/change history for DB applications?
What are some strategies that people have had success with for maintaining a change history for data in a fairly complex database. one of the
How should I model a field that can contain both numeric and string values in SQL Server 2005?
I have a new database table i need to create... it logically contains an id, a name, and a "value".
create a pricing matrix - sql or array of constants?
I am planning to create a pricing matrix for a project in rails. it's supposed to be a table of destinations and departure locations, and prices
Main pricing and support for custom client pricing (Database Architecture ideas help - Rails)
I have a personal project i'm planning and i came to a small hurdle. i want to have an item with price that will be the default for all
Ad
Formula based pricing. Storage in RDBMS and use in application layer
I'm about to enter the 1st phases of designing a commodities trading application. a major function of this application is the capture and
Database, Table and Column Naming Conventions?
Whenever i design a database, i always wonder if there is a best way of naming an item in my database. quite often i ask myself the following
Recommendations for a Graphical DBMS using Aerospike as backend?
Right now what i'm doing is: write some data in 3 different tables perform some reads to check if new values
How to handle programmatic addition of fields?
Yesterday, i asked this question regarding best
Database design (MySql)::should we put html data in text field inside database table or more efficient to save inside text.txt file?
We building big web application and we use mysql, we want to make mysql database more fast. some of us think if we will put message html body
How do I enforce data integrity rules in my database?
I'm designing this collection of classes and abstract (mustinherit) classes…
SQL schema to hold history of employee actions when employees come/go/get promoted, etc
I'm writing an app that contains the following tables: (1) employee_type, (2) employee and (3) employee_action. employee_action is
Database design - How should we design a teacher/student relationship when student records themselves also need to be associated to each other
So this is something that we've been struggling to try and figure out how to optimize. in a simple world, this might be solved by a
Is it okay to have a lot of database views?
I infrequently (monthly/quarterly) generate hundreds of crystal reports reports using microsoft sql server 2005 database views. are those views
Data modell Laravel (Tourism Management )
I need some help with a school project. we are doing tourism management. we have 3 actors (customer, advertiser, tour leader). 1. the customer
Why is the allowNull (false) option ignored inside createTable function of sequelize
I'm running sequelize on node.js. for table generation there is a
Ad
Is it okay to extend from classes that extend RealmObject in Java?
Let me explain with the help of a example. i have a transaction class (realm table) which extends realmobject. i want to
Best practice to create "flag" for multiprocess project with db as bridge between processes?
I have two processes: 1) scraper - take info from another website, do the needfull calculations and put results in db 2) web app
Firebase: use email ID as a key
While modeling with firebase readtime db, stuck with deciding unique key. my users collection is identified as email id. so my aim is
Database schema for one to many relationship
I want to create the database schema for following query 1)it will have one entity(column) category which will have multiple subcategories
How would one create a multitenant datamodel in a nosql solution like firestore?
What do i mean by multi-tenant? users can belong to an organization. a user who signs up without any
Confused with Eloquent relationship | Simple Phone Inventory Database
I'm confused creating laravel model classes for my database schema. how to create relationships? the tables: table_phone
mongoose sort document by populated field with conditions
I have two schema vehicle schema : const vehicleschema = new schema({ title: { type: string,
Working with Firebase Cloud Firestore Database
I am making an api using firebase function & firebase cloud firestore. i am trying to use the firestore for storing data about
Firestore : How to design a Data model to make querying documents that are not exist in an array possible?
I'm trying to find a way to properly desing my data model with firestore. i'm looking for something similar to what tinder does, showing you
Data model for a extensible web form
Suppose that i have a form that contains three 10 fields: field1..field10. i store the form data in one or more database tables, probably using
Best way to handle updates for one-to-many relationship
Given the two tables below, each ball can have one or more colors. what would be the most efficient way to update the
Ad
How to use constraints to force two child items be from the same parent?
i have a jobs table that holds jobs. i have a tasks table that holds tasks that belong to a job (1:many). i have a
How to design database in order to store "default" items
I'm developing an app in laravel. i've models called account and shippingaddress. an account may have one or more shippingaddress, but a
Structuring database design for different sets of data
I am trying to design a reports database that allows you to create different types of reports. as such, i have my main reports table (i am
How to select locations in Firestore and Android?
I'm very new to cloud firestore, so please help me. i'm creating an app for teensagers where i want to display a list of very nice locations in
Adding more documents to existing collection in Firebase
Assume i have an ecommerce app where users can sell their items. this is how my db structure looks like:
Polymorphic relationships vs separate tables per type
I am working on a database which has some types (e.g. user, appointment, task etc.) which can have zero or
NodeJS how to execute a function only on working hours?
I need to trigger a function to send mails to users only during their working hours. the function that sends mails works
converting rdms like instagram to firebase nosql
I am planning to develop production ready hybrid ionic3 mobile application similar to instagram using firebase.
Data Base Design for Laravel-Lumen API
I need help with database design and tables relationships for my upcoming project with laravel-lumen to reduce the query time as much as possible,
Retrieve objects by key
I want to structure a participant-list, which contains keys to other objects. my current structure: - events --
Most efficient structure of mongoose Schema
I'm curious what the best way to structure my mongoose schema is. i'm making a movie site with the user schema set like this: let
Ad
Integrate old / new data sources in SQL Server DB
Are there any best practices someone can share with me about integrating old and new data sources together on a sql server? to clarify, my
Mongodb, mongoose, Schema structure. get a collection into a field of other collection
I have a schema "questions" it has like a dozen of questions in it, i can add and delete those questions, i need this collection reflected in a
Database list datatype
Hey i got the following problem: foods (is a food (egg, milk, etc) or a recipe (bread, which is made out of eggs, flour, etc)
How to set up an extra constraint for 1-to-many relationship without using triggers
I have come across a database in my current position that needs allot of tlc to say the least, there are many cross reference tables all having
Database design for a list of task with subtask
I want to create a database that keeps track of a list of tasks that the users need to do and in the list of tasks there will be subtasks and
How to display joined entries from two tables in a database as an HTML table?
Hope you all are well. i have 3 database tables:
Should I split my single-user MS Access database into Front End / Back End
I have an access database for which i am the only user. it's the first database i've built. it has 16 related tables, around 40 select queries,
is this design valid for a database?
I'm developing an online shop web application with asp.net mvc and ef. one of the requirements is that each product should be categorized, each
While creating database: Error Code: 1215. Cannot add foreign key constraint
When i am creating a database, i'm getting a little bit of a difficulty with creating the "main" table for this database. i thought there
POS (Shopping Cart) - Multiple items in a single Transaction No
I'm creating a pos like system and i'm not really sure how to do the shopping cart part wherein after the cashier enters all the customer's item
Multiple One-to-Many Relationships to the Same Entity
I have a system that takes orders, and an order can have one or many files. the file belongs to one order.
Ad
Normalised vs. denormalised database for similar data
I am planning to build a database where i store a large amount of data about music. i am storing song-specific information in the
How to design a database where I can add unsettled number of items
I have a form in which i fill following things: nick: sbsnick; item: someitem1; price: priceofitem1 item: someitem2; price:
How to complete a number in Access?
I am coding an access database as a workshop project. i am using a form to introduce data in a table but i have a little problem. i have two
SQL Server database design users and events tables relation
I have 2 tables users and events. the users table stores information about the users: name, email,
database design - when one record has many properties
I'm trying to design a database, but not sure how to handle this situation. assume i have a table with geographical locations - hundreds
how to design for database where column number may increase by time?
I am trying to design a database for my app and webservice, lets say the table for view properties is something like this:
Database design for classified ad item specification
I'm working on a classified ads site with 12 categories. e.g. category vehicles has items cars, bikes,
MySQL - Storing Default Values for System
I have a few tables storing their corresponding records for my system. for example, there could be a table called templates and
Logical Expressions rules in relational datamodel
I have a logical expression say c=a+b*d something like is it possible to achieve this in a relational datamodel
teradata collect stats using sample doesnt quite work
Trying to collect sample 2 pct multi column stats on a vt problem is , it does not sample or i am missing something
1 Primary Key pointing to multiple colums
My intention here is to have columns("assignedto" , "loggedby" , "completedby" ) to have a reference to multiple records of
Ad
Database - Query to retrieve rows not existing in the other table
So i have two table connecting each other table admin_evaluate evalid int primary key, evalstatus tinyint, userid int (foreign to
Database design to allow storing data from foreign relationships that might change
I will try to describe what i want to accomplish, a solution i found and would be glad on your input/suggestions. i have these two
Database: item can have alternatives, how to link in database?
I have a database where i want to store multiple items, every item would be unique, but they can have alternatives from other makers. so items
mysql query to join 3 tables having no association in one of the tables
Sqlfiddle link i have following tables for events.
UML : Optional Foreign Key
I'm sitting with a little headache about a problem right now. i have two entities payment order and account
MySQL,Create table using data from other tables
Could you help me with designing a mysql query for creating a table with data from other 3 tables? database design:
Database Design for product prices depending on time of a day
I'm building a food ordering web application with a standard product/category setup - a category (for example pizza) has many products (pizza
How to design my database with special relations?
Well, my database is really particular. the part i dunno how to design is the next one : i need to have an entity "scan" which will
Design database for multi-category attribute
I have some products that belongs to the some category. each category can have different properties. for example,
Three tables -- Use cascade relationships or add extras?
I am a php developer and have basic knowledge of mysql yet i am working on a personal project so have to dig into it. billing details will
Relational Algebra - Intersection Properties
This investigation initially began with a test question, where i asserted r ∩ s = r ∩ (r ∩ s) as i
Ad
long many to many-database table: best performance practice
I have a question about performance of my mysql database design. table a has a lot of records, say a million, and table b also has a
How to update fields based on value of other record
I have a table resembling the following structure: city start_date end_date paris 1995-01-01 00:00:00
When is it okay to not to use PRIMARY KEY?
Suppose i want to create a simple database which lets user create playlists and add multiple songs into it. i just want to be able to find which
Design data structure for products
I need to design the structure of the tables with the product data to meet the following requirements: 1. a product consists of
How should i provide security for a schema(mysql)
I have the table with username and password named 'credentials' table and 'role' table having roles of organization.i want to grant permission to
Does it make sense to separate the table of user profile to that of the login details
Currenly, i'm working on an inventory system. i have just started and now gathering user requirements. this is my first time to create a system
Dishes database relations
I want to create database with recipes. how it should look like? for example let it exist two recipes: first recipe: 2 eggs with
Relational Model vs EAV
Database beginner here. i've been researching column-store model for a while, i came up to
my table doesn't need primary key, should I use one?
I have table to check if user with specific ip address rated on an item or not with these columns: rates(ip,item_id,created_at) i can
Laravel have Two foreign Key from the same table
Hi i am not very good with database design so i would like to know if it's possible to create a table with two foreign key from the same
Multiple tables with similar columns in a single DB
I am a web developer who's working on an exam generator project. now i am stuck at one point. i have one database with different tables.
Ad
How do I update remote database structure with local changes?
We currently update manually each remote database table with changes made on local one. i mean adding tables, tables columns, etc. not the data
Purpose of using projections in vertica database
I have a vertica database that using projections. i read vertica docs but docs generally talk about how to issue;
Best Practices: Storing a workflow state of an item in a database?
I have a question about best practices regarding how one should approach storing complex workflow states for processing tasks in a database. i've
Database Design: Assigning a File to multiple Users
I am currently creating a filesharing system for learning reasons in laravel. currently it is possible to upload files and then to download them
Learn C the Hard Way's ex17 database design issues
I'm really stuck on this one. ex17 is supposed to be teaching me heap and stack memory allocation by providing a
how to Database Design for product that have more price
I have product that have more attribute (for example color,size,material) that each attribute have value (for example color have 4 value or
generate unique voucher/code for every customer/user
I try to build website like grou, which is a platform to sell vouchers for some items in merchants. the
add unique constraint in room database to multiple column
I have one entity in room @entity(foreignkeys ={ @foreignkey(entity = label.class, parentcolumns = "_id", childcolumns =
CAP Theorem - satify consistency by always erroring on read
The wiki page and one of my instructors say
How to create one to many relationship from many to many join table in Prisma
I am creating a workout app and would like to model the relationship between users and workout programs. a user can create a program multiple
store Perl hash data in a database
I have written perl code that parses a text file and uses a hash to tally up the number of times a us state abbreviation appears in each
Ad
When should attributes other than a primary key be included in a DynamoDB table definition?
I'm new to dynamodb (and nosql databases in general) so this is a pretty basic question. i'm working with existing code where a dynamodb
Database schema many-to-many with defaults
I am hoping someone would be willing to take a look at this many-to-many relationship. this example is for a laravel project, but
Ad
Blog Categories
Ad