【正文】
總金額 with *數(shù)量 do while .T. accept 請輸入訂單號: to ddh locate for 訂單號 =ddh ? ==========查詢結果 ========== ? 商品名稱 單價 數(shù)量 總金額 do while found() ? , , 數(shù)量 , 總金額 continue enddo wait 繼續(xù)查詢嗎( Y/N)? to yn if upper(yn)=N exit endif enddo close databases * []編寫程序(文件名: ) ?SQL查詢 SELECT , , ,。 , 。 FROM xscjzk INNER JOIN xjxx。 INNER JOIN dm_yx 。 ON = 。 ON = 。 WHERE = 動科院 []編寫程序(文件名: ) use cj5 ?打開表 ?數(shù)據(jù)處理 — 統(tǒng)計,顯示 1. 從鍵盤上輸入查詢的學號,能查詢該同學的學號、平均成績 2. 程序要求能反復查詢輸出,其輸出格式如下: 。 do while .T. accept 請輸入查詢的學號: to xh average 成績 to pj for 學號 =xh ? 學號: , xh, 平均成績: , pj wait 繼續(xù)查詢嗎( Y/N)? to yn if upper(yn)=N exit endif enddo ?關閉表 close databases clear set talk off set safety off use cj5 do while .T. accept 請輸入查詢的學號: to xh average 成績 to pj for 學號 =xh ? 學號: , xh, 平均成績: , pj wait 繼續(xù)查詢嗎( Y/N)? to yn if upper(yn)=N exit endif enddo close databases *