CARLEENHOP
MIS
- Mar 7, 2010
- 61
Hi
I am trying to get the results in the one statement. But i have a where clause that is different for both statements, tables and columns the same though. not sure how to structure this. e.g. select cost from y where x = 1, but i also need to select cost from y where x = 2, so i want to see a column that has cost for 1 and cost for 2 in the same script.
I hope this makes sense.
Thanks
I am trying to get the results in the one statement. But i have a where clause that is different for both statements, tables and columns the same though. not sure how to structure this. e.g. select cost from y where x = 1, but i also need to select cost from y where x = 2, so i want to see a column that has cost for 1 and cost for 2 in the same script.
I hope this makes sense.
Thanks