Zend joined tables

3 messages Options
Embed this post
Permalink
Simon () Zend joined tables
Reply Threaded More More options
Print post
Permalink
I am newbie at zend and relationships in databases and would like some advice if I am doing this correctly.
I would be very grateful if somebody could point me in right direction.

In my setup I have 2 tables:

Table #1
name: products
columns: idproducts, type, quantity, field1, field2, field3

example entry for table products:
1 | foo | 10 | 1 | 3 | 2

Table #2
name: fields
columns: idfields, name

example entries for table fields:
1 | text1
2 | text2
3 | text3

I need a query that would join two tables and return something like that:

1 | foo | 10 | text1 | text3 | text2

Is this possible?

Thanks
Christoph Dorn () Re: Zend joined tables
Reply Threaded More More options
Print post
Permalink
This forum covers support for FirePHP only.

The best place for your question is the Zend Framework General Mailing List.
Simon () Re: Zend joined tables
Reply Threaded More More options
Print post
Permalink
My bad. First post on Nabble and got a bit lost :D
I got my answer where you suggested.

Thanks