resident
دوشنبه 06 اسفند 1386, 10:14 صبح
سلام.
من میخوام در کوئری زیر اطلاعات رو بر اساس code_nemuneye_azmayeshgahi گروه بندی کنم.اما error می گیره:
خود کوئری بدون دستور گروپ بای درست جواب میده اما با گروپ بای نه.
select n.code_nemuneye_azmayeshgahi ,n.rang,n.vaziat
,k.code_formulasione_mavade_tarkibi,t.name
from nemuneye_azmayeshgahi as n,karborde_formulasion as k,type as t
where n.code_pishnahade_tarh='al101' (n.code_pishnahade_tarh=@code_tarh)
and n.code_nemuneye_azmayeshgahi=k.code_nemuneye_azmay eshgahi
and k.code_type=t.code_type
در دستور گروپ بای از هر یک از دستورات زیر هم استفاده کردم اما از همه error می گیره
متشکرم.
group by n.code_nemuneye_azmayeshgahi
group by code_nemuneye_azmayeshgahi
من میخوام در کوئری زیر اطلاعات رو بر اساس code_nemuneye_azmayeshgahi گروه بندی کنم.اما error می گیره:
خود کوئری بدون دستور گروپ بای درست جواب میده اما با گروپ بای نه.
select n.code_nemuneye_azmayeshgahi ,n.rang,n.vaziat
,k.code_formulasione_mavade_tarkibi,t.name
from nemuneye_azmayeshgahi as n,karborde_formulasion as k,type as t
where n.code_pishnahade_tarh='al101' (n.code_pishnahade_tarh=@code_tarh)
and n.code_nemuneye_azmayeshgahi=k.code_nemuneye_azmay eshgahi
and k.code_type=t.code_type
در دستور گروپ بای از هر یک از دستورات زیر هم استفاده کردم اما از همه error می گیره
متشکرم.
group by n.code_nemuneye_azmayeshgahi
group by code_nemuneye_azmayeshgahi