109 | | * |
| 109 | * ah, and now if you want to display the new stations using Qgis, adding a further column saying whether or not the column X is filled is usefull |
| 110 | {{{ |
| 111 | ALTER TABLE stationsp2 ADD COLUMN newstation boolean; |
| 112 | UPDATE stationsp2 set newstation=TRUE where x is null; |
| 113 | UPDATE stationsp2 set newstation=FALSE where x is not null; |
| 114 | }}} |
| 115 | * now some results ... |
| 116 | {{{ |
| 117 | select count(*) from stationsp2 --10203 |
| 118 | select count(*) from bdmap.station --10203 |
| 119 | select count(*) from stationsp --8741 |
| 120 | select * from stationsp2 limit 1000 -- this is if you want to have a look at the data |
| 121 | }}} |
| 122 | * those are the wrong stations [screenshot:5] |
| 123 | {{{ |
| 124 | |
| 125 | select * from stationsp2 where st_codecsp IN ('03890162','062B0086','01620140','03270062','03270061','03270063','03270064','062160126','06420055','06070241') |
| 126 | }}} |