Re: [fw-general] Zend joined tables query

2009-06-23 Thread awesome
Thank you Brenton, thank you Colin :-D I used left join with the same logic and it does the trick. Again thanks Colin Guthrie-6 wrote: > > 'Twas brillig, and Brenton Alker at 23/06/09 04:22 did gyre and gimble: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> awesome wrote: >>> I

Re: [fw-general] Zend joined tables query

2009-06-22 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 awesome wrote: > I am new in Zend and relational database design. > > I have two tables that I would like to join in one so that certain values > from 1st table are replaced with associated values from another table. > > This query works: > SELECT a

[fw-general] Zend joined tables query

2009-06-22 Thread awesome
I am new in Zend and relational database design. I have two tables that I would like to join in one so that certain values from 1st table are replaced with associated values from another table. This query works: SELECT a.iditems, a.model, (SELECT name FROM headings WHERE idheadings = a.heading