Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
paramu
Posting Yak Master
151 Posts |
Posted - 2009-11-03 : 09:56:18
|
| Hi,I need to collect data one table [party code], but the comparitive fields are in diffrent tables..select p.pty_code,p.pty_name from partymst p where p.pty_code in (select m.itm_code,q.qot_sup_code from mmrmaster m,qmrmaster q where m.mpr_no='20' and q.item_code=m.itm_code)Error -"Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."Any Better IdeasThanksParamu @ PARANTHAMAN |
|
|
paramu
Posting Yak Master
151 Posts |
Posted - 2009-11-03 : 10:08:29
|
| Yah. Sorry For My disturbance...I found the Answerselect p.pty_code,p.pty_name from partymst p where p.pty_code in (select q.qot_sup_code from qmrmaster q,mmrmaster m where m.mpr_no='20' and q.item_code=m.itm_code)Thanks Paramu @ PARANTHAMAN |
 |
|
|
|
|
|