Unix Technical Forum

Urgent help needed with mysql query

This is a discussion on Urgent help needed with mysql query within the MySQL forums, part of the Database Server Software category; --> SELECT neunzy_districts.*,neunzy_data_with_phone_number.* FROM neunzy_districts INNER JOIN neunzy_data_with_phone_number ON (neunzy_districts.residential_address1=concat(neun zy_data_with_phone_number.streetnumber,' ',neunzy_data_with_phone_number.streetname) Or neunzy_districts.residential_address1=concat(neunz y_data_with_phone_number.streetnumber,' ',neunzy_data_with_phone_number.streetname)) and neunzy_districts.LAST_NAME=neunzy_data_with_phone_ number.LastName AND ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2008, 01:37 PM
aneunz
 
Posts: n/a
Default Urgent help needed with mysql query

SELECT neunzy_districts.*,neunzy_data_with_phone_number.*
FROM neunzy_districts INNER JOIN neunzy_data_with_phone_number ON
(neunzy_districts.residential_address1=concat(neun zy_data_with_phone_number.streetnumber,'
',neunzy_data_with_phone_number.streetname) Or
neunzy_districts.residential_address1=concat(neunz y_data_with_phone_number.streetnumber,'
',neunzy_data_with_phone_number.streetname)) and
neunzy_districts.LAST_NAME=neunzy_data_with_phone_ number.LastName AND
neunzy_districts.FIRST_NAME=neunzy_data_with_phone _number.FirstName;

This query is not returning all of the expected results from these two
tables. The results that are being returned seem to be only those
where residential_address has a directional prefix, e.g. 123 N ELM
ST., or 697 E MARKET ST. Can anyone see a problem with the query
syntax?

Thanks in advance,
Aaron Neunz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-09-2008, 01:37 PM
Jerry Stuckle
 
Posts: n/a
Default Re: Urgent help needed with mysql query

aneunz wrote:
> SELECT neunzy_districts.*,neunzy_data_with_phone_number.*
> FROM neunzy_districts INNER JOIN neunzy_data_with_phone_number ON
> (neunzy_districts.residential_address1=concat(neun zy_data_with_phone_number.streetnumber,'
> ',neunzy_data_with_phone_number.streetname) Or
> neunzy_districts.residential_address1=concat(neunz y_data_with_phone_number.streetnumber,'
> ',neunzy_data_with_phone_number.streetname)) and
> neunzy_districts.LAST_NAME=neunzy_data_with_phone_ number.LastName AND
> neunzy_districts.FIRST_NAME=neunzy_data_with_phone _number.FirstName;
>
> This query is not returning all of the expected results from these two
> tables. The results that are being returned seem to be only those
> where residential_address has a directional prefix, e.g. 123 N ELM
> ST., or 697 E MARKET ST. Can anyone see a problem with the query
> syntax?
>
> Thanks in advance,
> Aaron Neunz
>


Without the data you're using, no.

And your table definitions would be an asset, also.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-10-2008, 04:55 PM
aneunz
 
Posts: n/a
Default Re: Urgent help needed with mysql query

On Mar 8, 11:24*am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> aneunz wrote:
> > SELECT neunzy_districts.*,neunzy_data_with_phone_number.*
> > FROM neunzy_districts INNER JOIN neunzy_data_with_phone_number ON
> > (neunzy_districts.residential_address1=concat(neun zy_data_with_phone_number*.streetnumber,'
> > ',neunzy_data_with_phone_number.streetname) Or
> > neunzy_districts.residential_address1=concat(neunz y_data_with_phone_number.*streetnumber,'
> > ',neunzy_data_with_phone_number.streetname)) and
> > neunzy_districts.LAST_NAME=neunzy_data_with_phone_ number.LastName AND
> > neunzy_districts.FIRST_NAME=neunzy_data_with_phone _number.FirstName;

>
> > This query is not returning all of the expected results from these two
> > tables. *The results that are being returned seem to be only those
> > where residential_address has a directional prefix, e.g. 123 N ELM
> > ST., or 697 E MARKET ST. *Can anyone see a problem with the query
> > syntax?

>
> > Thanks in advance,
> > Aaron Neunz

>
> Without the data you're using, no.
>
> And your table definitions would be an asset, also.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -


Here is the url to phpmyadmin.
http://74.220.207.77:2082/3rdparty/p...min/index.php?
I would appreciate any help you can offer. I am stumped here.
Please email me personally for the username and password if you can
help.
Thanks in advance!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-10-2008, 04:55 PM
Jerry Stuckle
 
Posts: n/a
Default Re: Urgent help needed with mysql query

aneunz wrote:
> On Mar 8, 11:24 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> aneunz wrote:
>>> SELECT neunzy_districts.*,neunzy_data_with_phone_number.*
>>> FROM neunzy_districts INNER JOIN neunzy_data_with_phone_number ON
>>> (neunzy_districts.residential_address1=concat(neun zy_data_with_phone_number*.streetnumber,'
>>> ',neunzy_data_with_phone_number.streetname) Or
>>> neunzy_districts.residential_address1=concat(neunz y_data_with_phone_number.*streetnumber,'
>>> ',neunzy_data_with_phone_number.streetname)) and
>>> neunzy_districts.LAST_NAME=neunzy_data_with_phone_ number.LastName AND
>>> neunzy_districts.FIRST_NAME=neunzy_data_with_phone _number.FirstName;
>>> This query is not returning all of the expected results from these two
>>> tables. The results that are being returned seem to be only those
>>> where residential_address has a directional prefix, e.g. 123 N ELM
>>> ST., or 697 E MARKET ST. Can anyone see a problem with the query
>>> syntax?
>>> Thanks in advance,
>>> Aaron Neunz

>> Without the data you're using, no.
>>
>> And your table definitions would be an asset, also.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================- Hide quoted text -
>>
>> - Show quoted text -

>
> Here is the url to phpmyadmin.
> http://74.220.207.77:2082/3rdparty/p...min/index.php?
> I would appreciate any help you can offer. I am stumped here.
> Please email me personally for the username and password if you can
> help.
> Thanks in advance!!
>


Please post the info here in the newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com