Click here to Skip to main content
15,897,518 members
Home / Discussions / Database
   

Database

 
GeneralRe: When to NOT normalize? Pin
Sander Rossel19-Jan-11 4:28
professionalSander Rossel19-Jan-11 4:28 
GeneralRe: When to NOT normalize? Pin
PIEBALDconsult19-Jan-11 17:49
mvePIEBALDconsult19-Jan-11 17:49 
AnswerRe: When to NOT normalize? Pin
Eddy Vluggen19-Jan-11 7:33
professionalEddy Vluggen19-Jan-11 7:33 
GeneralRe: When to NOT normalize? Pin
Sander Rossel19-Jan-11 11:00
professionalSander Rossel19-Jan-11 11:00 
GeneralRe: When to NOT normalize? Pin
Eddy Vluggen21-Jan-11 4:56
professionalEddy Vluggen21-Jan-11 4:56 
GeneralRe: When to NOT normalize? Pin
Sander Rossel21-Jan-11 8:35
professionalSander Rossel21-Jan-11 8:35 
GeneralRe: When to NOT normalize? Pin
Eddy Vluggen22-Jan-11 0:23
professionalEddy Vluggen22-Jan-11 0:23 
QuestionBringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Brian C Hart18-Jan-11 5:19
professionalBrian C Hart18-Jan-11 5:19 
So here I have a table, TABLE1, which I copied over from a different server:

SELECT COUNT(*) FROM TABLE1 gives me, e.g., 83977 records.

However, there's another table, TABLE2, which lives on the current server, and I want to know if TABLE1 and TABLE2 have identically the same data. That's kind of a different question than I am asking here, because that question depends on how the tables are indexed, keyed etc. For now, however, I do a

SELECT COUNT(*) FROM TABLE2 and it gives 83911 records.

So the two tables differ by 66 records. How do I say to the database, "OK, what are those 66 records?"

I tried a LEFT OUTER JOIN between TABLE1 (on the left) and TABLE2 (on the right) and I join on the tables' keys and filter on the right table's keys being NULL. I get 130 rows. I'm confused, shouldn't I have 66 rows?

Brian
Sincerely Yours,
Brian Hart

AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
David Skelly18-Jan-11 6:08
David Skelly18-Jan-11 6:08 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Chris Meech18-Jan-11 7:07
Chris Meech18-Jan-11 7:07 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Brian C Hart18-Jan-11 7:18
professionalBrian C Hart18-Jan-11 7:18 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Chris Meech18-Jan-11 7:35
Chris Meech18-Jan-11 7:35 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
David Skelly19-Jan-11 1:55
David Skelly19-Jan-11 1:55 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Mycroft Holmes18-Jan-11 13:53
professionalMycroft Holmes18-Jan-11 13:53 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Yusuf18-Jan-11 15:15
Yusuf18-Jan-11 15:15 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
i.j.russell18-Jan-11 21:17
i.j.russell18-Jan-11 21:17 
QuestionExcluding weekends in stored procedure... Pin
ShivGanta17-Jan-11 20:50
ShivGanta17-Jan-11 20:50 
AnswerRe: Excluding weekends in stored procedure... Pin
Hiren solanki17-Jan-11 22:05
Hiren solanki17-Jan-11 22:05 
AnswerRe: Excluding weekends in stored procedure... Pin
Mycroft Holmes18-Jan-11 13:56
professionalMycroft Holmes18-Jan-11 13:56 
GeneralRe: Excluding weekends in stored procedure... Pin
ShivGanta18-Jan-11 15:52
ShivGanta18-Jan-11 15:52 
QuestionRe: Excluding weekends in stored procedure... Pin
ShivGanta31-Jan-11 19:24
ShivGanta31-Jan-11 19:24 
QuestionVBA combobox value Pin
scorp_scorp17-Jan-11 17:38
scorp_scorp17-Jan-11 17:38 
AnswerRe: VBA combobox value Pin
Prerak Patel17-Jan-11 21:17
professionalPrerak Patel17-Jan-11 21:17 
GeneralRe: VBA combobox value Pin
scorp_scorp18-Jan-11 17:06
scorp_scorp18-Jan-11 17:06 
QuestionMove table from one database to another database Pin
vanikanc17-Jan-11 5:18
vanikanc17-Jan-11 5:18 

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.