. Answers to this question are eligible for a +500 reputation bounty ...
. Answers to this question are eligible for a +500 reputation bounty ...
I have a db like this I want to calculate total number of records in which images array has more than one 'jpg' type image object in them. For abo ...
In Postgres, we want to use the window function as an aggregate function. We have a table, where every line consists of two timestamps and a value. W ...
I have a table that has date information and is being copied to another table and trying to perform an incremental load. date = date format hour = int ...
I was trying to run a query joining 3 tables and grouping by 2 columns. Below is the following code:- But while running the query Im getting the fo ...
how to aggregate the sells by date i want to know the total of sells for each day no idea about the query perhaps i should creat an other table wh ...
I am trying to to compare number of transaction happened in current hour with yesterday same hour and last week same day same hour, below sql works pe ...
I am performing the below query. I need to get the average of (avg_per_deal). Each email can have multiple deals, and each deal can have many averages ...
The goal is a custom aggregate function made with CREATE AGGREGATE called string_agg_oxford; it is an aggregate function that works similar to string_ ...
I am trying to create the tableau_table_1 table from the aggregated data of the covid_deaths table. Here is my query... The error that I am showin ...
I am currently stuck in improving the performance of MySQL query. It takes 30 seconds to execute and we don't want users waiting that long for the bac ...
I have a table of containing records with negative numbers: ID Location Temperature 1 Paris ...
I'm handling a table like so: Name Status Date Alfred 1 Jan 1 2023 Alfred ...
I am quite new using MongoDB and need to query some aggregated data. I have this document: What I want is to get the entire object that contains th ...
As title. I write some SQL code like below : as will be observed within the demo but i get an issue, whenever product id = 2, then subProducts wo ...
I have a table which requires filtering based on the dates. The goal is to select the latest date when there is multiple data points like in the ex ...
1.48 table which looks like this: CREATE TABLE `history` ( `TIMESTAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, ...
I am using Mongo aggregate framework, suppose if i am having collection structure like this [ { _id: 123, name: "john", age: 30 ...
I am using a Mongo aggregated framework, suppose if I am having collection structure like this { { _id: ObjectId(123) name: john, ...
I need to give each user a type of either ‘A’, ‘B’, ‘C’ based on how often they visited a certain page during a 4 month time range, and then count the ...