#1 (permalink)  
Old 11-28-2007, 07:40 AM
HISTORU's Avatar
Registered User
 
Join Date: Nov 2007
Posts: 4
Problems working with INNER JOIN

I have a query that gies me the distice from a postalcode to a store. It
gives me the five closest stores:

SELECT `store_id`
FROM `distance`
WHERE `postcode` =3000
ORDER BY `distance` ASC
LIMIT 0 , 4

Output is here
1080
1008
1121
1073

I also have a query that will give me the data from the store:
SELECT `StoreNumber` , `StoreName` , `Address` , `ZipCode` , `City` ,
`StorePhone`
FROM `stores`
WHERE `StoreNumber` =1080
LIMIT 0 , 30

Now obviously I would like to have a query that wll give me an outpit
like:
1080 Store_X Street_X 3000 Leuven 016/123456
1008 Store_B Street_B 3200 Aarschot
1121 Store_Z Street_Z 2000 Antwerpen 03/1234567
1073 Store_A Street_A 9000 Gent 09/1234567

How can I achieve this? I have looked, yet when I try I get an error
that there is more then one line.

Last edited by curtiss; 10-04-2008 at 09:39 PM. Reason: Removed spam links
Reply With Quote

  #2 (permalink)  
Old 08-21-2008, 06:40 PM
Registered User
 
Join Date: Aug 2008
Posts: 1
Then, you add another function to it.. Then the program will work properly...
Reply With Quote
  #3 (permalink)  
Old 10-04-2008, 11:04 AM
Registered User
 
Join Date: Oct 2008
Posts: 6
another function or mysql 5.0
Reply With Quote
Reply


Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems setting up a guestbook and need some urgent help!! daveclissold New Member Introductions 3 03-22-2007 09:12 AM
Layout Problems supersonic Programming and Scripting 8 05-02-2006 04:38 PM
DreamweaverMX Problems Carlos Programming and Scripting 2 03-09-2006 02:30 PM
Problems with Form Emailer kev989 Programming and Scripting 8 01-02-2006 12:42 PM
TD Opacity Problems In IE But Not FF onlydan Programming and Scripting 1 12-21-2005 02:21 PM


All times are GMT -5. The time now is 11:29 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter