Advertisement

07.09.2008 at 11:35PM PDT, ID: 23552819
[x]
Attachment Details

How do I include (or exclude) numbers only from a field??

Asked by erica686 in SQL Server 2005, SQL Query Syntax

Tags: , ,

I have a very simple query as follows:

SELECT ID
FROM CLIENT

The 'ID' Field returns the suburb, state and postcode all in the one field (Ie. Brisbane  QLD  4000).
I need to split the 'Brisbane  QLD' from the '4000' .

I am interested in finding out how to include or exclude numbers, however I am also concerned that this may return other numbers that may be hidden within the field (Ie Mailbox5 etc). So I was also wondering whether I could just ask for the last 4 characters (4000).

Any help would be great!!!Start Free Trial
[+][-]07.10.2008 at 12:25AM PDT, ID: 21971154

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.10.2008 at 04:07AM PDT, ID: 21972087

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 04:23PM PDT, ID: 21978268

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 05:28PM PDT, ID: 21978861

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:00AM PDT, ID: 21980418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:03AM PDT, ID: 21980429

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:03AM PDT, ID: 21980430

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:07AM PDT, ID: 21981291

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:12AM PDT, ID: 21981310

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, SQL Query Syntax
Tags: Microsoft, SQL Server, 2005
Sign Up Now!
Solution Provided By: fesnyng
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628