You are here: How to select fields form two tables, where one is containing some text+field form other table+some text « PHP SQL « IT news, forums, messages
How to select fields form two tables, where one is containing some text+field form other table+some text

Posted by filipwitczak on 10/01/07 15:54

I have a problem - I need to select fields from two tables, where
field form table1 contains text + table2.id + text.

I have table reservations which has clients field. clients contains
client's id (taken from table2) with client's options. It's syntax is
like

|61=[49!130]&[50!15]|62=[49!130]&[50!15]|
where each |client.id=[option.id!value]&[option.id!value]|

the problem is that I need to secect specific reservation which
contains a client's data within one select statement.

So, I thought that it will be like

select * from reservations,clients where reservations.clients like
'%|' + client.id +'='

but I do not know sql so good to solve the probem and I do not know
how to google it (my native language is polish so every query I did to
google gave me carp results)


I would be grateful for any help.

regards
Filip W.

 

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

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