Table "participant": ptcpt_id ptcpt_name brt_dt 1 Ana Perez 2001-10-10 2 ...
Table "participant": ptcpt_id ptcpt_name brt_dt 1 Ana Perez 2001-10-10 2 ...
I want to obtain the columns containing reading of first data of each month for different typeid. I have tried applying partition but I can't seem ...
I'm trying to retrieve data from three different tables. Table1KIT_CONT holds kit unique id, kit content part numbers and kit revision among othe ...
I would like to find the total purchase for each customer then return the highest value by customer category. For now, I'm just able to have the tota ...
I would like to extract some data from the icinga monitoring tool DB. the tables: icinga_objects (for information name1 contains hostnames and na ...
I can get a count of records based on some criteria such as length of the data in specific columns. But it seems I can get first X records (say 20 rec ...
I have 2 tables: drivers and drivers_locations. I want to create a computed field in the drivers table that returns the last inserted location of a dr ...
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 ...
I have "customers" table with this data: cust_id start_date end_date street_id hood_id city_id ...
I have a messaging system I am working on that receives messages from my Facebook Business Page and stores the information in my database. The informa ...
I have a table named iran_ranking like: user_id user_state point_year user_point user_sex ...
How would I get the non-latest record for each name. I want to get results such that if a name has one record, it is excluded because it is the latest ...
I want to get latest records of the table with some settings_ids. id settings_id added_date 1 ...
I am writing a chat app and want to get a list of recent contacts to show in the sidebar. My table has the standard chat fields (sender, receiver, ms ...
My query goes over three entities, so I have two left joins. I want to restrict the result of the first join. For example we have customers and order ...
I previously had this table: CREATE TABLE traces_v0 ( canvas_id UUID NOT NULL , tlid BIGINT NOT NULL , trace_id UUID NOT NULL , timestamp TIMESTA ...
I have a table named assets. Here is the ddl: I need to extract the newest (based on insert_time) value for each asset name. This is the query that ...
For example I have a Product table with count, but I would like to display only the values of the top 3 products based on the sum of their count. ...
I have a RoadInsp table in a SQLite 3.38.2 database. I've put the data in a CTE for purpose of this question: demo I'm using GIS software that o ...
I am trying to create correct indexes, but there is a problem Here is the table structure: CREATE TABLE mail ( id int ...