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

Database

 
AnswerRe: How to select first n characters using stored procedure Pin
Ashfield12-Apr-09 4:31
Ashfield12-Apr-09 4:31 
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 
Hi all,

I am using SQL2005. I have 2 tables which are T1 and T2. I would like to intergrate them into one tabel, what i mean is add column when intergrate them instead of add row record.According what i know if using join or union will create a extra row.Record to be intergrate have to match the T1.AID with T2.ID

Below is my senario.

Table  : T1                        Table  : T2
===========================        ===================
AID | Code | Type | Amount1         ID | Code | Amount2
===========================        ===================
A    123     IA     200            B    223    12
B    223     IP     100            C    323    29 
C    323     MR      55            D    444    30


Result have to get:
=====================================
AID | Code | Type | Amount1 | Amount2
=====================================
A     123    IA      200       0
B     223    IP      100       12
C     323    MR       55       29


The record D in T2 would not include in new table.

Any idea are welcome.

Thanks in advance
cocoonwls
AnswerRe: How to intergrate 2 table Pin
Kevin Horgan8-Apr-09 20:39
Kevin Horgan8-Apr-09 20:39 
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 

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.