Re: Need help combining 2 tables together
От | James Kitambara |
---|---|
Тема | Re: Need help combining 2 tables together |
Дата | |
Msg-id | 200454.48323.qm@web27908.mail.ukl.yahoo.com обсуждение исходный текст |
Ответ на | Need help combining 2 tables together (Richard Ekblom <ens01rem@cs.umu.se>) |
Ответы |
Re: Need help combining 2 tables together
|
Список | pgsql-sql |
Dear Richard Ekblom, I think Mr. Adrian Klaver gave you the solution. Mine is the similar solution SELECT message.id,topic.topic,message.message FROM topics, messages WHERE message.topic=topic.id order by message.id; After executing this query you will get the following: id | topic | message ----+----------------------------------+-------------------------- 1 | My favorite food | I like lasagna! 2 | My favorite food | Pizza is also a favorite 3 | Are squares better then circles? | I like circles, they : remind me of pizza Best Regards, Muhoji James Kitambara Database Administrator, B.Sc. With Computer Science and Statistics (Hons), National Bureau of Statistics, P.O. Box 796, Tel : +255 22 2122722/3 Fax: +255 22 2130852, Mobile : +255 71 3307632, Dar es Salaam, Tanzania.
|
В списке pgsql-sql по дате отправления: