Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > PostgreSQL > Order by two tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-12-07, 11:58
CrazyTn CrazyTn is offline
Registered User
 
Join Date: May 2007
Posts: 24
Order by two tables

I am not sure if this is even possible.

Table A:
1. name - String

Table B:
1. name - String
2. order - int

foreign key between the two name.
I want to order the content of Table A by using Table B order.

Example:
Table A:
1. Bob
2. Mike

Table B:
1. Bob order 3
2. Mike order 1
3. Sam order 2

If I would to select all the contents from table A it would come out.
1. Mike
2. Bob
Reply With Quote
  #2 (permalink)  
Old 10-12-07, 13:23
CrazyTn CrazyTn is offline
Registered User
 
Join Date: May 2007
Posts: 24
nm it was simpler than I though it would be.
Reply With Quote
  #3 (permalink)  
Old 10-13-07, 08:25
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
Sometimes actually "doing it" to find out, many times tells the answer
__________________
I and many others around the world are of the strong belief that the universe was created by the Flying Spaghetti Monster. It was He who created all that we see and all that we feel. We feel strongly that the overwhelming scientific evidence pointing towards evolutionary processes is nothing but a coincidence, put in place by Him.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On