Advertisement
| 10.15.2008 at 09:59PM PDT, ID: 23819274 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: |
$sql = "select per_program,per_descr,prog_cnt,clm_cnt
from ams_period per left outer join
(select clm_no, count(*) clm_cnt
from v_nm_task where contract_id=133 group by clm_no) clm on per.per_PROGRAM = clm.clm_no
left outer join
(select prog_no, count(*) prog_cnt
from v_nm_task where contract_id=133 group by prog_no) prog on per.per_PROGRAM = prog.prog_no
where per_con_id=133
order by per.PER_PROGRAM" ;
$ora_db->setFetchMode(MDB2_FETCHMODE_ASSOC);
$res=$ora_db->query($sql);
if (MDB2::isError($res)) {
die ($res->getMessage());
}else{
while ($rec = $res->fetchRow()) {
print_r($rec);
...
Output:
Array ( [per_program] => 1 [per_descr] => OCT-03 [prog_cnt] => [clm_cnt] => )
Array ( [per_program] => 2 [per_descr] => NOV-03 [prog_cnt] => [clm_cnt] => )
Array ( [per_program] => 3 [per_descr] => DEC-03 [prog_cnt] => [clm_cnt] => )
...
|
Advertisement