Click here to Skip to main content
15,886,110 members
Home / Discussions / Database
   

Database

 
QuestionDuplicate Rows Pin
Saiyed Alam9-Apr-09 4:50
Saiyed Alam9-Apr-09 4:50 
AnswerRe: Duplicate Rows Pin
Rob Philpott9-Apr-09 5:25
Rob Philpott9-Apr-09 5:25 
GeneralRe: Duplicate Rows Pin
Saiyed Alam9-Apr-09 6:49
Saiyed Alam9-Apr-09 6:49 
Questioncursor goes in to infinit loop......... Pin
pranavcool9-Apr-09 0:28
pranavcool9-Apr-09 0:28 
AnswerRe: cursor goes in to infinit loop......... Pin
Rob Philpott9-Apr-09 0:56
Rob Philpott9-Apr-09 0:56 
QuestionCan Predictive Analysis be done in SQL Server 2005? Pin
sunit_828-Apr-09 23:47
sunit_828-Apr-09 23:47 
QuestionHow to intergrate 2 table Pin
cocoonwls8-Apr-09 18:28
cocoonwls8-Apr-09 18:28 
AnswerRe: How to intergrate 2 table Pin
Kevin Horgan8-Apr-09 20:39
Kevin Horgan8-Apr-09 20:39 
Hi,

If you know that table T1 has more records than table T2 you could do a LEFT OUTER JOIN as follows:-

SELECT t1.AID,t1.CODE,t1.TYPE,t1.AMOUNT1,COALESCE(t2.AMOUNT2,0)
FROM t1 LEFT OUTER JOIN t2 on (t1.AID = t2.ID)

I hope this helps.

Cheers,

Kevin
GeneralRe: How to intergrate 2 table Pin
cocoonwls8-Apr-09 21:32
cocoonwls8-Apr-09 21:32 
GeneralRe: How to intergrate 2 table Pin
cocoonwls8-Apr-09 21:33
cocoonwls8-Apr-09 21:33 
GeneralRe: How to intergrate 2 table Pin
Kevin Horgan9-Apr-09 8:02
Kevin Horgan9-Apr-09 8:02 
GeneralRe: How to intergrate 2 table Pin
cocoonwls10-Apr-09 0:34
cocoonwls10-Apr-09 0:34 
GeneralRe: How to intergrate 2 table Pin
Kevin Horgan10-Apr-09 1:05
Kevin Horgan10-Apr-09 1:05 
QuestionHow to create encrypted trigger Pin
azad yadav8-Apr-09 17:51
azad yadav8-Apr-09 17:51 
AnswerRe: How to create encrypted trigger Pin
Henry Minute11-Apr-09 2:57
Henry Minute11-Apr-09 2:57 
NewsSQL Server 2008 SP1 Released Pin
brucedkyle8-Apr-09 12:21
brucedkyle8-Apr-09 12:21 
QuestionMicrosoft Access and Record Level Locking [modified] Pin
paas8-Apr-09 10:25
paas8-Apr-09 10:25 
AnswerRe: Microsoft Access and Record Level Locking Pin
Mycroft Holmes8-Apr-09 17:01
professionalMycroft Holmes8-Apr-09 17:01 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 1:08
paas9-Apr-09 1:08 
GeneralRe: Microsoft Access and Record Level Locking Pin
Mycroft Holmes9-Apr-09 1:48
professionalMycroft Holmes9-Apr-09 1:48 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 2:59
paas9-Apr-09 2:59 
AnswerRe: Microsoft Access and Record Level Locking Pin
Luc Pattyn8-Apr-09 17:41
sitebuilderLuc Pattyn8-Apr-09 17:41 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 1:14
paas9-Apr-09 1:14 
QuestionRun Store Procedure Same Time Pin
dataminers8-Apr-09 6:02
dataminers8-Apr-09 6:02 
AnswerRe: Run Store Procedure Same Time Pin
Rob Philpott8-Apr-09 6:59
Rob Philpott8-Apr-09 6:59 

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.