Click here to Skip to main content
13,800,402 members
   

Database

 
AnswerRe: SQL Update Pin
mrfalk30-Jan-13 7:20
membermrfalk30-Jan-13 7:20 
QuestionDatabase backup size Pin
savbace28-Jan-13 23:45
membersavbace28-Jan-13 23:45 
AnswerRe: Database backup size Pin
Richard Deeming29-Jan-13 2:21
mvpRichard Deeming29-Jan-13 2:21 
QuestionSQL Server 2005 Express running slow ? Pin
Member 245846728-Jan-13 16:56
memberMember 245846728-Jan-13 16:56 
AnswerRe: SQL Server 2005 Express running slow ? Pin
PIEBALDconsult28-Jan-13 17:11
protectorPIEBALDconsult28-Jan-13 17:11 
AnswerRe: SQL Server 2005 Express running slow ? Pin
Mycroft Holmes28-Jan-13 18:02
memberMycroft Holmes28-Jan-13 18:02 
AnswerRe: SQL Server 2005 Express running slow ? Pin
JOAT-MON29-Jan-13 12:09
memberJOAT-MON29-Jan-13 12:09 
QuestionCombining Data From Temp Tables Pin
Matt U.28-Jan-13 9:46
memberMatt U.28-Jan-13 9:46 
I deleted my last question since I feel like I've made some kind of progress. However, I'm still not sure how to group all of the data together. I have five tables that hold data. What I am doing is selecting:

UserId, ProductNum, Qty

into a temporary table for each master data table. Here's an example of what each temp table looks like:

John     PART-NUM-ONE     5
Jane     PART-NUM-ONE     8
Jane     PART-NUM-TWO     4
Jack     PART-NUM-THREE   9


I have five tables structured just like that, except the Part Number and Qty will be different in each table.

How can I build a query to group by Name, then by Part Number, and a column for each temp table (e.g. Passed, Finished, Scrapped)? I just can't seem to combine them. The Part Numbers come from a Parts table, which stores the Part Number.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

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 
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
professionalEddy Vluggen28-Jan-13 4:21 
AnswerRe: SMO Retrieve Table Record Pin
Sandeep Mewara28-Jan-13 4:22
mentorSandeep Mewara28-Jan-13 4:22 

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
Web04 | 2.8.181214.1 | Last Updated 11 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid