You are here: sql query « PHP SQL « IT news, forums, messages
sql query

Posted by iMi on 10/09/58 11:31

Hello to all of you! I would appreciate if someone could help me out. There
are three tables in my database:

--------------------------------
| table: sections |
--------------------------------
| section_id | parent_id |
--------------------------------
1 0
2 1

-----------------------------------------------------
| table: section_descriptions |
-----------------------------------------------------
| section_id | language_id | section_name |
-----------------------------------------------------
1 1 Home
1 2 Caza
2 1 News
2 2 Notizie

------------------------------------------------------------
| table: languages
|
------------------------------------------------------------
| language_id | language_name | language_code |
------------------------------------------------------------
1 English en
2 Italino it

and I need a valid MySQL qury for output as shown below:

--------------------------------------------------------
| section_id | section_name | section_parent |
--------------------------------------------------------
2 News Home

or

--------------------------------------------------------
| section_id | section_name | section_parent |
--------------------------------------------------------
2 Notizie Caza


Thanks in advance!
---
iMi

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация