2007 Apr 05 4:53 PM
Hi All,
Please check this code.
select afko~aufnr
afvc~vornr
afvc~steus
afvv~arbei
afvc~anzzl
afvv~ismnw
afvv~ofmnw
crhd~arbpl
afvv~fssbd
afvv~fssbz
afvv~fseld
afvv~fselz
mhio~abnum
mhis~nplda
into corresponding fileds of table t_opr
from afvv join afvc on (afvcaufpl = afvvaufpl and afvcaplzl = afvvaplzl)
join crhd on afvcarbid = crhdobjid
join afko on afkoaufpl = afvcaufpl
join mhio on mhioaufnr = afkoaufnr
join mhis on ( mhisabnum = mhioabnum and mhiswarpl = mhiowarpl ).
2007 Apr 05 5:10 PM
Hi
Dont use joins instead use for all entries as joins will raise performance issues.
Regards
Haritha.
Hi
Dont use joins instead use for all entries as joins will raise performance issues.
Regards
Haritha.
2007 Apr 05 5:01 PM
hi,
Avoid using join statement use FOR ALL ENTRIES instead of joins
In the given code specify some of the related conditions in where condition too..
select afko~aufnr
afvc~vornr
afvc~steus
afvv~arbei
afvc~anzzl
afvv~ismnw
afvv~ofmnw
crhd~arbpl
afvv~fssbd
afvv~fssbz
afvv~fseld
afvv~fselz
mhio~abnum
mhis~nplda
into corresponding fileds of table t_opr
from afvv join afvc on (afvcaufpl = afvvaufpl and afvcaplzl = afvvaplzl)
join crhd on afvcarbid = crhdobjid
join afko on afkoaufpl = afvcaufpl
join mhio on mhioaufnr = afkoaufnr
join mhis on ( mhisabnum = mhioabnum and mhiswarpl = mhiowarpl )
<b>where <Conditions>.</b>
Regards,
Santosh
2007 Apr 05 5:10 PM
Hi
Dont use joins instead use for all entries as joins will raise performance issues.
Regards
Haritha.
2007 Apr 05 5:30 PM
Thanks for your replay.
i know that whenever i use for all statement instead of join.
but i cant change join statement.
is this query is correct or not......just you can find that query
Thanks in advance.
2007 Apr 05 5:52 PM
this is syntactically correct but u wont get anyvalue in the table.
Specify ur where condition to fetch the values from table.
select afko~aufnr
afvc~vornr
afvc~steus
afvv~arbei
afvc~anzzl
afvv~ismnw
afvv~ofmnw
crhd~arbpl
afvv~fssbd
afvv~fssbz
afvv~fseld
afvv~fselz
mhio~abnum
mhis~nplda
into corresponding fields of table t_opr
from afvv join afvc on afvcaufpl = afvvaufpl and afvcaplzl = afvvaplzl
join crhd on afvcarbid = crhdobjid
join afko on afkoaufpl = afvcaufpl
join mhio on mhioaufnr = afkoaufnr
join mhis on mhisabnum = mhioabnum and mhiswarpl = mhiowarpl.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |