Click here to Skip to main content
15,918,109 members
Home / Discussions / Database
   

Database

 
QuestionRe: Multiple column with in keyword Pin
Shajeel17-May-06 0:10
Shajeel17-May-06 0:10 
AnswerRe: Multiple column with in keyword Pin
Rana Muhammad Javed Khan16-May-06 23:57
Rana Muhammad Javed Khan16-May-06 23:57 
QuestionBulk Update by OPEN XML in SQL 2005 Pin
NICE TO MEET16-May-06 23:28
NICE TO MEET16-May-06 23:28 
QuestionOPEN XML IN SQL 2005 Pin
NICE TO MEET16-May-06 23:27
NICE TO MEET16-May-06 23:27 
QuestionCatch the Error in Stored procedure and through into an DA Class Exception Pin
NICE TO MEET16-May-06 22:11
NICE TO MEET16-May-06 22:11 
AnswerRe: Catch the Error in Stored procedure and through into an DA Class Exception Pin
Colin Angus Mackay16-May-06 22:47
Colin Angus Mackay16-May-06 22:47 
QuestionComparing two tables in SQL Pin
Vishucool16-May-06 20:26
Vishucool16-May-06 20:26 
AnswerRe: Comparing two tables in SQL Pin
Colin Angus Mackay16-May-06 21:46
Colin Angus Mackay16-May-06 21:46 
This will return all rows in Table1 that are different or missing in Table2
SELECT * 
FROM Table1 AS t1
LEFT OUTER JOIN Table2 AS t2 
ON t1.PrimaryKey = t2.PrimaryKey AND t1.Column1 = t2.Column1 AND t1.Column2 = t2.Column2....
WHERE t2.PrimaryKey IS NULL
To get all the rows in Table2 that are different or missing in Table 1 replace the LEFT OUTER JOIN with a RIGHT OUTER JOIN and change the WHERE clause to test t1

Does this help?


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
GeneralRe: Comparing two tables in SQL Pin
Vishucool16-May-06 22:48
Vishucool16-May-06 22:48 
GeneralRe: Comparing two tables in SQL Pin
r.stropek4-Jun-06 6:02
r.stropek4-Jun-06 6:02 
Questionretreiving a perticular column in a table Pin
dayakar_dn16-May-06 20:13
dayakar_dn16-May-06 20:13 
AnswerRe: retreiving a perticular column in a table Pin
Colin Angus Mackay16-May-06 21:47
Colin Angus Mackay16-May-06 21:47 
QuestionHow to download/copy a data stored as image type in SQL Pin
SIJUTHOMASP16-May-06 18:51
professionalSIJUTHOMASP16-May-06 18:51 
QuestionWhich of all DBMS? Pin
Lord_Vader16-May-06 10:30
Lord_Vader16-May-06 10:30 
AnswerRe: Which of all DBMS? Pin
Al Ortega16-May-06 10:38
Al Ortega16-May-06 10:38 
AnswerRe: Which of all DBMS? Pin
Colin Angus Mackay16-May-06 21:58
Colin Angus Mackay16-May-06 21:58 
Questionreplacing idnums with values... Pin
Jesse Evans16-May-06 8:14
Jesse Evans16-May-06 8:14 
AnswerRe: replacing idnums with values... Pin
Eric Dahlvang16-May-06 11:44
Eric Dahlvang16-May-06 11:44 
GeneralRe: replacing idnums with values... Pin
Jesse Evans16-May-06 11:58
Jesse Evans16-May-06 11:58 
QuestionHow will catch a error in DA Class From Stored Procedures Pin
NICE TO MEET16-May-06 2:31
NICE TO MEET16-May-06 2:31 
AnswerRe: How will catch a error in DA Class From Stored Procedures Pin
Not Active16-May-06 2:51
mentorNot Active16-May-06 2:51 
GeneralRe: How will catch a error in DA Class From Stored Procedures Pin
Paddy Boyd16-May-06 3:06
Paddy Boyd16-May-06 3:06 
GeneralRe: How will catch a error in DA Class From Stored Procedures Pin
Rob Graham16-May-06 4:34
Rob Graham16-May-06 4:34 
Questionreturn values from stored procedure Pin
DineshSharma16-May-06 2:25
DineshSharma16-May-06 2:25 
AnswerRe: return values from stored procedure Pin
Paul Brower16-May-06 5:33
Paul Brower16-May-06 5:33 

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.