The SQL query in my web application(PHP/MySQL + Zend) uses a number of parameters to build the search query. However, the records fetched should be grouped by two columns to get sub totals. WITH ROLLUP seems to be a good solution to find subtotals, but Zend_Db_Select doesn't support this modifier. Is there any work around?
How can I use MySQL GROUP BY modifier WITH ROLLUP in Zend_Db_Select?
1.6k views Asked by libregeek At
1
There are 1 answers
Related Questions in MYSQL
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- window.location.href redirects but is causing problems on the webpage
- Error: local variable 'bramka' referenced before assignment
- Products aren't displayed after fetching data from mysql db (node.js & express)
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- Can't Fix Mariadb & Mysql ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2) On MacOs
- Express Mysql getting max ID from table not working cought in a promise
- failed to upload a table from sql file
- Update a MySQL row depending on the ID in Google Sheets Apps Script
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- How to display the column names which have only unique non-null values in MySQL table?
- mysql query takes too long because of wrong indexes usage
- Multitable joining in Sql
Related Questions in ZEND-FRAMEWORK
- How to properly quote / escape this INSERT statement in Zend 1 Framework
- Zend Barcode label distance ajustment
- cast in doctrine query builder
- Laminas $filter->getValues() in getData() of laminas-form return duplicate of array collection when using Element File
- I want to translate country name to english in using diffrent country locale Magento2?
- How to get the name of the module, controller and action in Laminas framework?
- Zend XmlRpc Client gzinflate out of memory on php 7.1
- Zend Barcode image isn't generate correctly in CodeIgniter
- How to switch between the read-only and read-write db conenctions in Laminas using DBAL
- Database transaction is not working as expected even rollback is not working
- Ajax call in Zend 1.12 return 404
- Zend Framework 1 legacy application redesign
- Zend Barcode image do not generate correcly
- How to click the button after displaying the dialog box in jquery
- Zend Session Error, Session must be started before any output has been sent to browser
Related Questions in ZEND-DB-SELECT
- How to write RLIKE in zend framework 3?
- How to group by with Zend Db
- columns of joined table missing
- add column to select object zend framework
- Zend\db\sql - prepareStatementForSqlObject - still need to bind or worry about sql injection?
- Zend 2: SQLSRV: $prepareParams is not being set
- How to use pagination with JOINs in Zend Framework 2?
- How to give a prefix to all columns of a JOINed table in Zend Framework 2?
- PHP. Zend DB adapter
- Zend Framework: SetIntegrityCheck(false) and then update the object
- Zend Frameworks 1.12: how to join custom subquery table without returning results
- Remove "DISTINCT" from Zend_Db_Select
- Zend SQL using string in join condition
- Can I pass a string to Zend sql's order function?
- Zend paginator running very slow 1.12
Related Questions in ROLLUP
- [vite]: Rollup failed to resolve import "D:/healthapp/src/communityItem.vue" from "uniComponent://Y29tbXVuaXR5SXRlbS52dWU"
- Declarative Rollup Summaries Deployment
- Trying to create a good rollup react project
- How to import components globally in Nuxt.js
- Vite / Rollup Static Asset Copy Hook
- Vite can't resolve export {default as component}
- why am I getting error while adding sass support in rollup
- how to tree-shake the unused variables?
- Using useState reacthook in a reactjs module is throwing error: Invalid hook call
- vitest cannot run tests with apollo client query in them
- CSS classname from component library rewritten
- Vite Rollup build failed with error by some exports
- webpack error: Module not found. when using my other library bundled by rollup
- Rollup Error: Unresolved Dependencies and Expression Expected in React Component while building a npm package
- Strange class name after npm pack
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Well,