Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Writing a subquery using zend db?



Writing a subquery using zend db?..

Answer / Aditya Verma

To write a subquery using Zend_Db_Select, you can use the `__toString()` method to build your query and nest select statements. Here's an example:

```php
$subQuery = $db->select()->from('table1')
->where('id IN (?)', $ids);
$query = $db->select()
->from('table2')
->join($subQuery, 'table2.id = table1.id');
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

What is zend_filter?

1 Answers  


What are the default methods provided by decorators?

1 Answers  


How to render view file from controller in zend framework?

1 Answers  


Zend framework and wordpress integration?

1 Answers  


How to create an object of model in zend framework?

1 Answers  


How to disable layout from controller in zend framework?

1 Answers  


Difference between zend_registry and zend_session?

1 Answers  


How do you define the library path in zend ?

1 Answers  


How we can do multiple column ordering in zend framework?

1 Answers  


How to access route, post, get etc. Parameters in zend framework 2?

1 Answers  


How to display zend_form_element_radio on one line ?

1 Answers  


What is zend framework in php?

1 Answers  


Categories