This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Calculating the bounding box | |
function boundbox ($lat, $lon, $distance, $units="km") { | |
return array ( "N" => getDestinationCoordinates ($lat,$lon, 0,$distance,$units), | |
"E" => getDestinationCoordinates ($lat,$lon, 90,$distance,$units), | |
"S" => getDestinationCoordinates ($lat,$lon, 180,$distance,$units), | |
"W" => getDestinationCoordinates ($lat,$lon, 270,$distance,$units)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM | |
( | |
SELECT TOP 30 *, ROW_NUMBER() OVER (ORDER BY (SELECT 1)) AS rnum | |
FROM table1 | |
) a | |
WHERE rnum > 10 |
NewerOlder