close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Feb 5, 2009, 5:46:46 PM (17 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 3 | 3 | * 原本想說要把 location1 跟 location2 裡的資料切成 lat1, lng1, lat2, lng2,做好之後才發現原來國榮已經做了 maincase_new 的整理,因此接下來就先分析一下資料。 |
| 4 | 4 | {{{ |
| 5 | | #!sql |
| 6 | | select data_type.serial as type_id, data_type.name as type, maincase_new.name, maincase_new.description, |
| 7 | | maincase_new.loc1_lon, maincase_new.loc1_lat, maincase_new.website, maincase_new.start_time |
| 8 | | from data_type, maincase_new, maincase_detail |
| 9 | | where maincase_detail.maincase_id = maincase_new.serial and maincase_detail.type_id = data_type.serial |
| 10 | | order by type_id, loc1_lon, loc1_lat |
| | 5 | SELECT data_type.serial AS type_id, data_type.name AS |
| | 6 | TYPE , maincase_new.owner_org, maincase_new.name, maincase_new.description, maincase_new.loc1_lon, maincase_new.loc1_lat, maincase_new.website, maincase_new.start_time |
| | 7 | FROM data_type, maincase_new, maincase_detail |
| | 8 | WHERE maincase_detail.maincase_id = maincase_new.serial |
| | 9 | AND maincase_detail.type_id = data_type.serial |
| | 10 | ORDER BY type_id, owner_org, loc1_lon, loc1_lat; |
| 11 | 11 | }}} |
| | 12 | * 資料拓墣 |
| | 13 | {{{ |
| | 14 | SELECT DISTINCT data_type.serial AS type_id, data_type.parent_id, data_type.name AS |
| | 15 | TYPE , maincase_new.owner_org |
| | 16 | FROM data_type, maincase_new, maincase_detail |
| | 17 | WHERE maincase_detail.maincase_id = maincase_new.serial |
| | 18 | AND maincase_detail.type_id = data_type.serial |
| | 19 | ORDER BY type_id, owner_org |
| | 20 | }}} |