Click here to Skip to main content
       

Database

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: check before insertmemberdjj551-Feb-13 8:25 
QuestionIdentify DML changes between two databasesmemberMember 313707830-Jan-13 20:56 
AnswerRe: Identify DML changes between two databasesmemberMycroft Holmes30-Jan-13 21:11 
GeneralRe: Identify DML changes between two databasesmemberMember 313707830-Jan-13 21:26 
QuestionUpdate a flag based on portion of data avialble in other columnmemberyuvachandra30-Jan-13 10:20 
AnswerRe: Update a flag based on portion of data avialble in other columnmemberMycroft Holmes30-Jan-13 11:56 
GeneralRe: Update a flag based on portion of data avialble in other columnmemberyuvachandra31-Jan-13 6:08 
Hi, Thank you so much for your reply.
 
Could you please find the table information clearly with each row and data separated with pipe delimeter (|).
 
As you suggested, Group the column by Col1.. As the Col1 Information is unique.. i think it will give the same data even after grouping.
 
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,QL_FLG,ST_FLG,PA_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
GeneralRe: Update a flag based on portion of data avialble in other columnmemberMycroft Holmes31-Jan-13 11:32 
GeneralRe: Update a flag based on portion of data avialble in other columnmemberyuvachandra31-Jan-13 11:45 
GeneralRe: Update a flag based on portion of data avialble in other columnmemberyuvachandra1-Feb-13 7:00 
Questionhow to comlex databinding with access databasememberAchilles8430-Jan-13 8:48 
AnswerRe: how to comlex databinding with access databasememberMycroft Holmes30-Jan-13 11:49 
GeneralRe: how to comlex databinding with access databasememberAchilles8430-Jan-13 20:49 
GeneralRe: how to comlex databinding with access databasememberMycroft Holmes30-Jan-13 21:06 
GeneralRe: how to comlex databinding with access databasememberAchilles841-Feb-13 0:25 
QuestionEnd Case in a Variablememberberba30-Jan-13 8:47 
AnswerRe: End Case in a VariablememberMycroft Holmes30-Jan-13 11:46 
GeneralRe: End Case in a Variablememberberba30-Jan-13 18:02 
GeneralRe: End Case in a VariablememberMycroft Holmes30-Jan-13 20:57 
QuestionWhat happens with auto-incremented value on rollback?memberpiticcotoc29-Jan-13 23:27 
AnswerRe: What happens with auto-incremented value on rollback?memberJörgen Andersson30-Jan-13 1:04 
GeneralRe: What happens with auto-incremented value on rollback?memberpiticcotoc30-Jan-13 3:02 
GeneralRe: What happens with auto-incremented value on rollback?membermark merrens30-Jan-13 5:33 
GeneralRe: What happens with auto-incremented value on rollback?memberpiticcotoc30-Jan-13 5:43 
GeneralRe: What happens with auto-incremented value on rollback?memberSimon_Whale30-Jan-13 5:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130617.1 | Last Updated 17 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid