I am working on a project using my daily music listens data from Apple Music from 2018-2022. The table daily_listens consists of the following columns ...
I am working on a project using my daily music listens data from Apple Music from 2018-2022. The table daily_listens consists of the following columns ...
I want to display my blogs in a very future proof way. So I need to make a query that will reference new blog types if they are created. Hence the x-c ...
I've a table (processed_amounts) which shows 'amount', 'date_processed', and the 'agent' which processed the amount. I need a query which will pull th ...
I have a table like this: I'd like to get a search result where I get exactly 2 rows of each type. Update: I result should look like this: (there ...
I have an SQLite table similar to the following: How can I retrieve three random rows with value 5 in column B and three random rows with value 7? ...
Would like to return one row per group, where the one is selected by multiple sort columns. Treading lightly here in the land of greatest-n-per-group ...
I am attempting to find the top n records when grouped by multiple attributes. I believe it is related to this problem, but I am having difficulty ada ...
I checked other solutions to similar problems, but sqlite does not support row_number() and rank() functions or there are no examples which involve jo ...
I have a database with "num" table like this I'd like to select the last 5 numbers inserted by each user_id, but I can't figure out how to do it. ...
I ran in to this problem on a CS question site, and I can't figure out how to do this. Problem My first solution ran in to a dead end with this code ...
I have the following problem at work. I have a large table with different columns and few 100 000s of rows. I'll only post the ones im interested in. ...
I have a very simple table (LOG) containing attributes MAC_ADDR, IP_SRC, IP_DST, URL, PROTOCOL. I want the first n lines containing IP_SRC, URL, #OfOc ...
I have a sqlite3 table like this: There are many teams (about 30 teams), each team has many members (more than 10,000 records in real). I just wann ...
I'm looking for a better way to generate a list just using sql instead of C#. It seems simple enough that i'm doing it wrong Say i have a table calle ...
I have two SQLite tables like this: I want to make a SELECT query that will return the first N (e.g. two) rows for each AuthorId, ordering by Title ...
Now I understand that this has been asked several times before, but I have tried to apply different existing solutions to my specific problems for qui ...
My current application calculates a point average based on all records for each user: The business requirement has changed and I need to calculate ...