Click here to Skip to main content
12,501,479 members (48,414 online)
   

Database

 
GeneralRe: check before insert Pin
mark merrens31-Jan-13 10:25
membermark merrens31-Jan-13 10:25 
AnswerRe: check before insert Pin
djj551-Feb-13 7:50
memberdjj551-Feb-13 7:50 
GeneralRe: check before insert Pin
vanikanc1-Feb-13 7:55
membervanikanc1-Feb-13 7:55 
GeneralRe: check before insert Pin
djj551-Feb-13 8:25
memberdjj551-Feb-13 8:25 
QuestionIdentify DML changes between two databases Pin
Member 313707830-Jan-13 20:56
memberMember 313707830-Jan-13 20:56 
AnswerRe: Identify DML changes between two databases Pin
Mycroft Holmes30-Jan-13 21:11
memberMycroft Holmes30-Jan-13 21:11 
GeneralRe: Identify DML changes between two databases Pin
Member 313707830-Jan-13 21:26
memberMember 313707830-Jan-13 21:26 
QuestionUpdate a flag based on portion of data avialble in other column Pin
yuvachandra30-Jan-13 10:20
memberyuvachandra30-Jan-13 10:20 
Hi,
Could some one help me with loading the TABLE2 like the way it is shown below.

SELECT COL1, COL2 FROM TABLE1

COL1 COL2
1 Tier 1 (QL) (ST) (PA)
2 Tier 2 (QL) (ST)
3 Tier 1 (ST)
4 Tier 1 (ST) (PA)
5 Tier 1
-----------------------------------------------------
INSERT INTO TABLE2 (COL1,COL2,QTY_FLG,STP_THPY_FLG,PRIOR_AUTHN_FLG)
SELECT COL1,COL2, , , FROM TABLE1
------------------------------------------------------

SELECT * FROM TABLE2

COL1 COL2 QL_FLG ST_FLG PA_FLG
1 Tier 1 (QL) (ST) (PA) 1 1 1
2 Tier 2 (QL) (ST) 1 1 0
3 Tier 1 (ST) 0 1 0
4 Tier 1 (ST) (PA) 0 1 1
5 Tier 1 0 0 0


Basically from Table1(COL1, COL2) i want to copy data to Table2(Col1,Col2)..while inserting, i want check if COL2 is having any specification ((QL) (ST) (PA)) accoringly flag should be updated with 1 to the respective _FLG column,if there is no specility (example : 5th row) all the _FLG columns should be updated with 0.

Please let me know if there are any related posts.

Thanks
AnswerRe: Update a flag based on portion of data avialble in other column Pin
Mycroft Holmes30-Jan-13 11:56
memberMycroft Holmes30-Jan-13 11:56 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
yuvachandra31-Jan-13 6:08
memberyuvachandra31-Jan-13 6:08 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
Mycroft Holmes31-Jan-13 11:32
memberMycroft Holmes31-Jan-13 11:32 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
yuvachandra31-Jan-13 11:45
memberyuvachandra31-Jan-13 11:45 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
yuvachandra1-Feb-13 7:00
memberyuvachandra1-Feb-13 7:00 
Questionhow to comlex databinding with access database Pin
Achilles8430-Jan-13 8:48
memberAchilles8430-Jan-13 8:48 
AnswerRe: how to comlex databinding with access database Pin
Mycroft Holmes30-Jan-13 11:49
memberMycroft Holmes30-Jan-13 11:49 
GeneralRe: how to comlex databinding with access database Pin
Achilles8430-Jan-13 20:49
memberAchilles8430-Jan-13 20:49 
GeneralRe: how to comlex databinding with access database Pin
Mycroft Holmes30-Jan-13 21:06
memberMycroft Holmes30-Jan-13 21:06 
GeneralRe: how to comlex databinding with access database Pin
Achilles841-Feb-13 0:25
memberAchilles841-Feb-13 0:25 
QuestionEnd Case in a Variable Pin
berba30-Jan-13 8:47
memberberba30-Jan-13 8:47 
AnswerRe: End Case in a Variable Pin
Mycroft Holmes30-Jan-13 11:46
memberMycroft Holmes30-Jan-13 11:46 
GeneralRe: End Case in a Variable Pin
berba30-Jan-13 18:02
memberberba30-Jan-13 18:02 
GeneralRe: End Case in a Variable Pin
Mycroft Holmes30-Jan-13 20:57
memberMycroft Holmes30-Jan-13 20:57 
QuestionWhat happens with auto-incremented value on rollback? Pin
piticcotoc29-Jan-13 23:27
memberpiticcotoc29-Jan-13 23:27 
AnswerRe: What happens with auto-incremented value on rollback? Pin
Jörgen Andersson30-Jan-13 1:04
memberJörgen Andersson30-Jan-13 1:04 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 3:02
memberpiticcotoc30-Jan-13 3: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.


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 25 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid