Click here to Skip to main content
13,836,762 members
   

Database

 
QuestionCombining Data From Temp Tables Pin
Matt U.28-Jan-13 9:46
memberMatt U.28-Jan-13 9:46 
AnswerRe: Combining Data From Temp Tables Pin
David Mujica28-Jan-13 10:13
memberDavid Mujica28-Jan-13 10:13 
GeneralRe: Combining Data From Temp Tables Pin
Matt U.28-Jan-13 10:54
memberMatt U.28-Jan-13 10:54 
GeneralRe: Combining Data From Temp Tables Pin
Jörgen Andersson28-Jan-13 12:18
protectorJörgen Andersson28-Jan-13 12:18 
GeneralRe: Combining Data From Temp Tables Pin
Matt U.28-Jan-13 13:13
memberMatt U.28-Jan-13 13:13 
GeneralRe: Combining Data From Temp Tables Pin
Mycroft Holmes28-Jan-13 13:00
memberMycroft Holmes28-Jan-13 13:00 
GeneralRe: Combining Data From Temp Tables Pin
Matt U.28-Jan-13 13:16
memberMatt U.28-Jan-13 13:16 
AnswerRe: Combining Data From Temp Tables Pin
Jörgen Andersson28-Jan-13 23:57
protectorJörgen Andersson28-Jan-13 23:57 
Matt U. wrote:
How is it not normalized
Because you have five tables using the same columns and key
Consider the following design instead:
UserId
ProductNum
Status
Qty
Where status is Passed, Finished, Scrapped and so on. (Or rather a reference from a status table.)
And if you need just the scrapped products you could use a view instead of a table for that purpose.
CREATE VIEW Finished AS
 SELECT UserId,ProductNum,Qty
 FROM mytable
 WHERE status = 'finished'


How does the core tables look like if they present such a problem?
People say nothing is impossible, but I do nothing every day.

GeneralRe: Combining Data From Temp Tables Pin
Matt U.29-Jan-13 3:52
memberMatt U.29-Jan-13 3:52 
GeneralRe: Combining Data From Temp Tables Pin
Jörgen Andersson29-Jan-13 4:02
protectorJörgen Andersson29-Jan-13 4:02 
GeneralRe: Combining Data From Temp Tables Pin
Jörgen Andersson28-Jan-13 23:28
protectorJörgen Andersson28-Jan-13 23:28 
Question[VB.net+ADO.net]how can combobox 1 control the result of combobox2 Pin
Achilles8428-Jan-13 9:20
memberAchilles8428-Jan-13 9:20 
AnswerRe: [VB.net+ADO.net]how can combobox 1 control the result of combobox2 Pin
Achilles8430-Jan-13 4:47
memberAchilles8430-Jan-13 4:47 
QuestionSMO Retrieve Table Record Pin
savbace28-Jan-13 3:31
membersavbace28-Jan-13 3:31 
AnswerRe: SMO Retrieve Table Record Pin
Sandeep Mewara28-Jan-13 3:42
mentorSandeep Mewara28-Jan-13 3:42 
AnswerRe: SMO Retrieve Table Record Pin
savbace28-Jan-13 3:55
membersavbace28-Jan-13 3:55 
QuestionRe: SMO Retrieve Table Record Pin
Eddy Vluggen28-Jan-13 4:21
mveEddy Vluggen28-Jan-13 4:21 
AnswerRe: SMO Retrieve Table Record Pin
Sandeep Mewara28-Jan-13 4:22
mentorSandeep Mewara28-Jan-13 4:22 
AnswerRe: SMO Retrieve Table Record Pin
savbace28-Jan-13 4:40
membersavbace28-Jan-13 4:40 
Questionhow can reporting in this Situation Pin
karimkpg26-Jan-13 3:38
memberkarimkpg26-Jan-13 3:38 
AnswerRe: how can reporting in this Situation Pin
Sandeep Mewara26-Jan-13 7:02
mentorSandeep Mewara26-Jan-13 7:02 
QuestionQuery to concatenate multiple rows based on sequence in results set Pin
Alex Lush24-Jan-13 23:43
memberAlex Lush24-Jan-13 23:43 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pin
Eddy Vluggen25-Jan-13 2:51
mveEddy Vluggen25-Jan-13 2:51 
AnswerRe: Query to concatenate multiple rows based on sequence in results set Pin
Shameel25-Jan-13 4:20
professionalShameel25-Jan-13 4:20 
GeneralRe: Query to concatenate multiple rows based on sequence in results set Pin
Alex Lush25-Jan-13 4:30
memberAlex Lush25-Jan-13 4:30 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190114.1 | Last Updated 18 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid