General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 21st, 2004, 12:55 PM
Unquick1 Unquick1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 Unquick1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Join query problem

What I want to do is select everything out of ad_listing that have the same postalcode as what the condition for the postal_codes table depicts (WHERE postal_codes.Latitude >= 42.6145300852 AND postal_codes.Latitude <= 43.3373659148 AND postal_codes.Longitude >= -82.8767447212 AND postal_codes.Longitude <= -81.8945312788)

This is the query I cam up with, but have not had any luck.

SELECT * FROM ad_listing LEFT JOIN postal_codes ON ad_listing.postalcode=postal_codes.postalcode WHERE postal_codes.Latitude >= 42.6145300852 AND postal_codes.Latitude <= 43.3373659148 AND postal_codes.Longitude >= -82.8767447212 AND postal_codes.Longitude <= -81.8945312788

Any sugestions?
Data Definition:
http://www.trilliandesigns.com/Untitled-1.gif
Attached Images
File Type: gif Untitled-1.gif (4.6 KB, 395 views)

Reply With Quote
  #2  
Old April 30th, 2004, 12:59 PM
michlmann michlmann is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 56 michlmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
And what's the problem/question?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Join query problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway