作业帮 > 综合 > 作业

into corresponding fields.

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/17 16:09:36
into corresponding fields.
Hi,When i search on 'Performance' in this forum,i noticed many posts suggest Not to use into Corresponding fields of ..and i have a program with this selection,therefore would apprecieate any good suggestion..select z"kunnr z"VKORG z"erdat z"auart z"vdatu a"vbeln a"posnr a"kwmeng a"klmeng a"netwr a"PSTYV a"werks a"VRKME b"absta b"lfsta a"matnr a"prodh c"bukrs into corresponding fields of table TA_VBAP from VBAK as Z join VBAP as a on Z"vbeln = a"vbeln join vbup as b on a"vbeln = b"vbeln and a"posnr = b"posnr join TVKO as c on Z"vkorg = c"vkorg where z"kunnr in l_kunnr and z"vdatu in l_vdatu and z"auart in l_auart and Z"vkorg in l_vkorg and z"vbeln in l_vbeln.how can this be improved thanks...
into corresponding fields.
Most importantly though, change your WHERE condition so that the keys (VBELN) appear first. Depending on your database this could really mess up thinks if you don't place the keys first. This is good practice regardless of the database being used.Other than that, do as gaurav_anand7 suggested.Oh yeh, and swap the orde rof your ON clause so that:Code: Select allon Z"vbeln = a"vbeln becomes Code: Select allON a"vbeln = z"vbelnThis, depending again on your database, can make a difference.Dr Sidewalk 查看原帖