So complicated question for me |
答題得分者是:ccchen
|
is_tem
一般會員 發表:17 回覆:15 積分:11 註冊:2002-04-17 發送簡訊給我 |
If you have a complicated query table for data entry, such as
Select * from TableA where Field1 = :A......FieldN = :N order by Field1 and Field2. OK, you have a icon, report a summary report.
Then you will find that you need to create another query for the report, such query may be
Select * from TableA where Field1 = :A......FieldN = :N order by Field2 and Field3. Actually, the data of the report is actually the data of the data entry, and you may find the two queries are likely, but the order phase. Such design is OK but the maintainence is hard as we need to maintain two queries. If there any method to obtain data from a dataset for different purpose.
One query for data entry, (ordered by keyA and keyB), same query for report (ordered by keyB and keyC).
|
ccchen
版主 發表:61 回覆:940 積分:1394 註冊:2002-04-15 發送簡訊給我 |
|
is_tem
一般會員 發表:17 回覆:15 積分:11 註冊:2002-04-17 發送簡訊給我 |
|
ccchen
版主 發表:61 回覆:940 積分:1394 註冊:2002-04-15 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |