Skip to content Skip to sidebar Skip to footer
Showing posts with the label Postgresql 9.3

Counting Distinct Rows Using Recursive Cte Over Non-distinct Index

Given the following schema: CREATE TABLE identifiers ( id TEXT PRIMARY KEY ); CREATE TABLE days … Read more Counting Distinct Rows Using Recursive Cte Over Non-distinct Index

Search In Postgresql Table

I have this table in which I would like to implement search filter. CREATE TABLE ACCOUNT( ID INTEG… Read more Search In Postgresql Table

Delete Duplicates In Postgres

I want to delete all but one row for a given duplicate 'external_id'. The query below takes… Read more Delete Duplicates In Postgres

Select From ... - Based On A Value In Json Format

Let's say I have a database table with several common columns such as name, gender, age, ... Be… Read more Select From ... - Based On A Value In Json Format

Cast Syntax To Convert A Sum To Float

Using PostgreSQL 9.3, I want to convert the calculated values to data type float. My first attempt:… Read more Cast Syntax To Convert A Sum To Float