Australian Postcode Db With Longitude/latitude

Jul 23, 2005

not sure exactly where I should ask this question, but im looking for
a database of Australian Postcodes that included the
longitude/latitude.

Does anyone know of such a thing? Preferably free...fingers crossed.

many thanks

jack

View 1 Replies


ADVERTISEMENT

SQL 2012 :: Using Latitude And Longitude To Get Name Of A State

Oct 19, 2015

I have been plugging away at this for a bit, and I am curious if there are any methods, functions, code, etc. to plug in latitude and longitude coordinates and get the name of a state as a result.

I have tried using the geography type and its "functions" to no avail.

View 4 Replies View Related

Calculating Distance Based On Latitude And Longitude

Jun 14, 2006

I need to be able to take the latitude and logitude of two locations and compare then to determine the number of miles between each point. It doesn't need to account for elevation, but assumes a flat plane with lat and long.

Does anyone have any algorithms in T-SQL to do this?

View 5 Replies View Related

T-SQL (SS2K8) :: Returning Rows Within Certain Distance In Miles From City Using Longitude And Latitude

Nov 19, 2014

I've got a working query which returns all leads within a supplied proximity to a city. I followed a tutorial I googled a couple months ago (can't find it now). It works, but would love others to look the query over (provided DDL and sample data) and tell me if it's as it should be.

Two things I don't like about query:

1. I have to do a UNION to another query that retrieves everything that is in the same city in order to have complete results.
2. very slow to retrieve results (> 1 minute)

Sample DDL: 2 tables
create table dim_lead
(
date_created datetime,
[contact_first_name] varchar(20),
[contact_last_name] varchar(20),
lead_id int,

[Code] .....

View 9 Replies View Related

Reporting Services :: Plotting Longitude And Latitude With Power View From Multidimensional Source

Sep 2, 2014

I have a SQL 2012 SP1 environment integrated with SharePoint 2013. I have deployed a Multi-Dimensional Cube, due to the need for role playing dimensions and numerous parent-child hierarchies that can't be 'flattened' out easily, it's for this reason that we have gone multi-dimensional, rather than tabular.

The issue I now face is trying to plot the data on a map in Power View. It has to via Longitude and Latitude or easting and northing if possible. I know if I use PowerPivot, I can query the MD Cube, get my dataset and make sure the model views the lat/long as coordinates and this method works just fine - however, it involves an extra step, the end user must pre-build their query in PowerPivot before they can use the Power View maps and adhoc analysis, this can create a lot of back and forth when refining your query or performing additional 'what if' analysis.

When I create the Report Data Source in SharePoint to connect directly to the MD Cube, rather than going through Power Pivot, it's able to connect, but does not recognise the lat and long fields as Latitude and longitude, nor will it let me manually drag it into the lat and long fields on the field list. If I drag them into the 'location' section, it does not plot correctly.

How to get Power View to plot Latitude and Longitude from a Multi-Dimensional Source without having to go through PowerPivot?

View 7 Replies View Related

Using Postcode As Primarykey

Aug 10, 2007

Hello

I've taken over a database where for many tables the postcode field (equivilent to the US Zip Code) is the obvious primary key. [Mapping postcodes to distict or various types of area for statistical analysis]. However the people who set up the database have continually used an auto generated number for the primary key.

There are never any duplicate postcodes in the various tables, so my question is what is the advantage of either using or not using the postcodes as primary keys.

View 2 Replies View Related

Substring Of A Postcode

Nov 13, 2007



Hello,

Does anyone have some code that can do the following:

Postcode N12 5FF
Postcode NG4 5FF

I need to get the postcode N12 5FF based on the 'N' bt leave the NG4 5FF postcode behind. So obviously using LEFT will not work, does any have any code that will strip of the first alpha characters?

Thank you.

View 7 Replies View Related

Inserting Space In A Postcode

Jan 30, 2014

We have many postcodes in our database that are UK ones. Some cutomers enter then as one string. Example BA124XT

In the SQL table we have two columns PostCode and Country. Is it possible to write a SQL script that will insert a space three characters from the right of the postcode where the country is UK?

So before it would be BA124XT and after BA12 4XT for them all?

View 5 Replies View Related

Postcode Radius Searching

Jul 20, 2005

Hi - I know this isn't really a specific SQL Server question but Ican't think of a better forum.I want to implement a more sophisticated UK postcode search on a site- "LIKE 'NW%'" etc, is not bringing back good enough results.A feature that would allow me to ask: "give me all outward postcodesin a 30 mile radius of NW10" would be ideal.Has anyone had to do this before? - any advice on how muchappreciated. Some of the postcode products available don't reallyseem to offer this feature.NH

View 2 Replies View Related

Query Postcode Issue (IF Statement)?

Feb 25, 2008

Hi Everyone,

Basically i've got a postcode query problem, i have a column with postcodes like:

abc 123
abcd 123
ab 123

What im trying to do is query only the first set on digits without the 123.

So my output should be:

abc
abcd
ab

Ive used the following technique:

select TRIM(substring(postcode,1,if(instr(postcode," ")=0,length(postcode),instr(postcode," ")))) from dbTest;

This works perfect in MySQL but not in sql enterprise, as it doesnt like the if syntax as well as the instr();

Any solutions please?? any suggestions would be helpful!

Thanks

View 6 Replies View Related

SQL's America Date Format Conflict With Australian Date Format

Nov 14, 2006



Hi

I am trying get my VB6 application to insert a record into a table (SQL Express) which has a datetime column but it would not process if the data format is differ to *American Date format*.

The date() function in VB returns 15/11/2006 which is in Australian Date format (DD/MM/YYYY) according to my setting in "Reginal and Lanuage Option-> Locale 0> English (Australia)" setting.

I get the following error:

Msg 242, Level 16, State 3, Server KITSQLEXPRESS, Line 1
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.

My computer's locale is set to English (Australia) and I expect the datetime format would follow what is set in system locale


I've read an article somewhere on the net about how SQL 2005 eliminate the confusion of date conversion when read/write datetime records into a table...but it seems to me that it is still as in-flexible as MS Access


Is there a setting in the database that takes care of it?

Thanks

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved