Click here to Skip to main content
15,920,468 members
Home / Discussions / Database
   

Database

 
GeneralRe: Insertion in table Pin
Syed Mujtaba Hassan24-Mar-08 23:32
Syed Mujtaba Hassan24-Mar-08 23:32 
GeneralRe: Insertion in table Pin
Pete O'Hanlon25-Mar-08 11:35
mvePete O'Hanlon25-Mar-08 11:35 
GeneralRe: Insertion in table Pin
Syed Mujtaba Hassan25-Mar-08 18:31
Syed Mujtaba Hassan25-Mar-08 18:31 
GeneralRe: Insertion in table Pin
Pete O'Hanlon25-Mar-08 22:37
mvePete O'Hanlon25-Mar-08 22:37 
GeneralSQL CE 3.5 Install Pin
Jammer21-Mar-08 7:14
Jammer21-Mar-08 7:14 
QuestionBulk Copy one table data to other Pin
www.Developerof.NET21-Mar-08 2:08
www.Developerof.NET21-Mar-08 2:08 
QuestionHow to pass parameters into sql jobs using a stored procedure? Pin
ashish bhakhar21-Mar-08 0:07
ashish bhakhar21-Mar-08 0:07 
QuestionStructure of data relationship - which direction? Pin
Andy_L_J20-Mar-08 23:56
Andy_L_J20-Mar-08 23:56 
I am having trouble figuring how to structure the tables to solve this problem. Here's where i'm at:

Existing Tables:

Tool(
ToolID Int Id PK...,
...,
Cavities Int Not Null
)

Product(
ProdID Int Id PK...,
...
)

ProdLine(
PLine ID Int Id PK...,
...
)



Problem:

A Production 'Cycle' consists on making a combination of 1 to n Products with a specific Tool where n <= Cavities for that Tool.
For example, a tool can make up to n peices of 1 product per cycle, or 1 peice of 4 products per cycle, or a combination thereof.

A common combination would be for two products to be made with a given tool on a given ProdLine in a given amount of time.

I want to create table(s) to reflect the relationships between this additional data(CycleTime, and Product Combinations for a Tool) and the existing tables.

hope this is decipherable, it is spinning my head.

Is have modelled several solutions that are all very ugly and I wonder if anyone has an elegant suggestion (...my wife has given me many (non-elegant) suggestions mostly regarding why i am trying to learn this concept on Easter Friday night! Smile | :) )
Questionstored porcedure ? Pin
Vijayitsb20-Mar-08 23:14
Vijayitsb20-Mar-08 23:14 
GeneralRe: stored porcedure ? Pin
John_Adams20-Mar-08 23:39
John_Adams20-Mar-08 23:39 
GeneralRe: stored porcedure ? Pin
ashish bhakhar21-Mar-08 0:15
ashish bhakhar21-Mar-08 0:15 
GeneralRetrieve and change an Identity column value... Pin
anderslundsgard20-Mar-08 22:30
anderslundsgard20-Mar-08 22:30 
GeneralRe: Retrieve and change an Identity column value... Pin
N a v a n e e t h20-Mar-08 23:08
N a v a n e e t h20-Mar-08 23:08 
GeneralRe: Retrieve and change an Identity column value... Pin
anderslundsgard21-Mar-08 1:41
anderslundsgard21-Mar-08 1:41 
GeneralRe: Retrieve and change an Identity column value... Pin
N a v a n e e t h21-Mar-08 1:46
N a v a n e e t h21-Mar-08 1:46 
GeneralRe: Retrieve and change an Identity column value... Pin
anderslundsgard25-Mar-08 5:12
anderslundsgard25-Mar-08 5:12 
GeneralRe: Retrieve and change an Identity column value... Pin
ashish bhakhar21-Mar-08 0:27
ashish bhakhar21-Mar-08 0:27 
GeneralSELECT SCOPE_IDENTITY() & INSERT Problems Pin
munklefish20-Mar-08 2:19
munklefish20-Mar-08 2:19 
GeneralRe: SELECT SCOPE_IDENTITY() & INSERT Problems Pin
Declan Bright20-Mar-08 2:36
Declan Bright20-Mar-08 2:36 
GeneralNeed sql query Pin
Exelioindia20-Mar-08 1:58
Exelioindia20-Mar-08 1:58 
QuestionHow to get Connection.GetSchema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 1:27
ashish bhakhar20-Mar-08 1:27 
QuestionHow to get connection.schema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 0:58
ashish bhakhar20-Mar-08 0:58 
AnswerRe: How to get connection.schema("columns",restrictions) in order by ordinal position Pin
Mark J. Miller20-Mar-08 11:06
Mark J. Miller20-Mar-08 11:06 
GeneralRe: How to get connection.schema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 19:57
ashish bhakhar20-Mar-08 19:57 
Generaldata tables for a job site Pin
AbhishekAgarwal1519-Mar-08 22:04
AbhishekAgarwal1519-Mar-08 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.