|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sql Split
Is it possible to do a split in a sql simular to an asp split, e.g.
i have two values in a collum in a database CollumnA id1:test1 id2:test2 id1:test2 and then in another table i have 2 collumns Collum1 id1 id2 id1 Collumn2 test1 test2 test2 i need to be able to do a select statement where collumn 1 and collumn 2 are equeal to CollumnA. |
|
#2
|
||||
|
||||
|
-->Thread moved to SQL Development Forum
you can do a join on those ... something like this Code:
SELECT t1.column, t2.column1, t2.column2 FROM tbl_Table1 t1 LEFT JOIN tbl_Table2 t2 ON t1.column = t2.column1 + ':' + t2.column2
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Sql Split |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|