![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All : I have a tableB with a column SurroundingStates. A value in that table is like above. Now i join the table and call this column like this Select * From tableA A inner join tableB b on A.state in (B.SurroundingStates) and A.State = B.State where A.State = 'KS' what i want the query to look like is : Select * From tableA A inner join tableB b on A.state in ('KS','NE','CO','OK','AR','MO','IA') and A.State = B.State where A.State = 'KS' How do i write it , as the first query is not working. thank you |
#3
| |||
| |||
|
|
Hi All : I have a tableB with a column SurroundingStates. A value in that table is like above. Now i join the table and call this column like this Select * From tableA A inner join tableB b on A.state in (B.SurroundingStates) and A.State = B.State where A.State = 'KS' what i want the query to look like is : Select * From tableA A inner join tableB b on A.state in ('KS','NE','CO','OK','AR','MO','IA') and A.State = B.State where A.State = 'KS' How do i write it , as the first query is not working. thank you |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi All : I have a tableB with a column SurroundingStates. A value in that table is like above. Now i join the table and call this column like this Select * From tableA A inner join tableB b on A.state in (B.SurroundingStates) and A.State = B.State where A.State = 'KS' what i want the query to look like is : Select * From tableA A inner join tableB b on A.state in ('KS','NE','CO','OK','AR','MO','IA') and A.State = B.State where A.State = 'KS' How do i write it , as the first query is not working. |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |