Relative Content

Tag Archive for sqlsqlite

Lost at SQL Game: SQL Query to Identify Impostor Marine Species Returns Incorrect Result

I’m working on a SQL problem where I need to identify impostor marine species based on their attributes. The species I’m dealing with are clownfish, octopuses, and starfish. The attributes include species name, length (in meters), weight (in kilograms), and habitat type. I’ve written a query to determine if a species is an impostor based on specific criteria, but one of the 16 rows returned is incorrect.

SQLite conditional select from different tables

I have a table with match identifiers and corresponding player/team identifiers expressed as home / away.
Each team, tid, consist of two players and each player has its own identifier, pid.
The problem is that in table matches I don’t know whether the column home / away represents a team or a single player.

Implementing my own word search in SQLite

I have a readonly database of Shows. Each show includes a few paragraphs of text. I want to build a tool in which a user can enter one or more words and retrieve shows that contain all of those words.

Calculating median using cte and groupby SQLite

I want to calculate the median using SQLite. My variable of interest is the result of combining multiple tables together. I tried to follow this solution, but the output shows null-values.