Comments (3)
Thanks for your suggestion. I will implement this functionality soon.
from json-sql.
Also to add to this, mostly the group by queries are grouping of fields or field calculations itself, so will be a good idea to include a group key and boolean value in the field itself?
Adding to this there can also be a group key on its own, something like:
const sql = jsonSQL.build({
type: 'select',
table: 'table',
fields: [
{
func: {
name: 'year',
args: ['column1']
},
grouped: true
},
],
group: ['column2']
});
This will be helpful in case we have a complex field calculation, we won't have to repeat the same again for the group by field.
from json-sql.
@artzhookov did you get chance to implement the aggregations ?
from json-sql.
Related Issues (20)
- Subquery with join not working (Postgres) HOT 1
- Unable to apply a function in conditions. HOT 2
- "condition" to "where" HOT 1
- how to build sql with "OR", "LIKE" word. HOT 5
- Where should I define the schema name to execute query on specific schema for pg? HOT 2
- How to build Greater than or equal to and Less than or equal to HOT 1
- Multiple inner join? HOT 2
- mysql: Invalid query generated when there is a . in the table name HOT 1
- Where not in Condition
- postgre case-insensitive support HOT 2
- How to do a bulk insert? HOT 1
- How to use the modulo operator with json-sql? HOT 2
- Using ROW_NUMBER() HOT 1
- Incorrect syntax near 'returning'. HOT 2
- escape symbols HOT 1
- Condition should accept string
- Sqlite error with object insertion HOT 1
- [mariadb/mysql] does not support named placeholders like :col1 - use ? instead
- Critical Vulnerable module - underscore module HOT 3
- Can I use .msj to run json-sql?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-sql.