Radhika Shivaraman
2010-11-18 14:49:03 UTC
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
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