DEV Community

select * from SQL

Posts on tips and tricks, using and learning about SQL for database development and analysis.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Everything you need to know about (Relational) Databases

Everything you need to know about (Relational) Databases

327
Comments 7
16 min read
Elixir Phoenix: How I Turned A Function Into Raw SQL And Then Into An Ecto Query

Elixir Phoenix: How I Turned A Function Into Raw SQL And Then Into An Ecto Query

14
Comments
4 min read
Event Storage in Postgres, Multi-tenant

Event Storage in Postgres, Multi-tenant

66
Comments 10
6 min read
From CSVs to Tables: Infer Schema Data Types From Raw Spreadsheets

From CSVs to Tables: Infer Schema Data Types From Raw Spreadsheets

7
Comments
8 min read
Implement ORM Data Models with SQLAlchemy

Implement ORM Data Models with SQLAlchemy

2
Comments 1
6 min read
Running Fast SQL on DynamoDB Tables

Running Fast SQL on DynamoDB Tables

7
Comments
4 min read
Database models and ERDs for Newbs Part: 2

Database models and ERDs for Newbs Part: 2

7
Comments
2 min read
History Tables

History Tables

8
Comments
7 min read
Explicit Entity State

Explicit Entity State

4
Comments
2 min read
Starting With SQL

Starting With SQL

54
Comments 4
4 min read
Database models and ERDs for Newbs Part: 1

Database models and ERDs for Newbs Part: 1

4
Comments
2 min read
You Can Do it in SQL, Stop Writing Extra Code for it

You Can Do it in SQL, Stop Writing Extra Code for it

521
Comments 103
5 min read
#100CodeExamples – PL/SQL BOOLEAN to INT

#100CodeExamples – PL/SQL BOOLEAN to INT

5
Comments
2 min read
USING DATABASE TRIGGERS IN POSTGRESQL

USING DATABASE TRIGGERS IN POSTGRESQL

21
Comments 2
5 min read
Databases in Python Made Easy with SQLAlchemy

Databases in Python Made Easy with SQLAlchemy

13
Comments
10 min read
DB2: Restart Identity

DB2: Restart Identity

8
Comments
1 min read
Find a Specific Column In An Unknown SQL Table

Find a Specific Column In An Unknown SQL Table

12
Comments 4
2 min read
A PRIMER ON POSTGRESQL STORED FUNCTIONS (PL/pgSQL)

A PRIMER ON POSTGRESQL STORED FUNCTIONS (PL/pgSQL)

21
Comments
5 min read
Clone schema in PostgreSQL

Clone schema in PostgreSQL

19
Comments 7
1 min read
Run migrations in schemas in PostgreSQL

Run migrations in schemas in PostgreSQL

7
Comments
2 min read
The semantics of Elasticsearch’s nested datatype and query operator

The semantics of Elasticsearch’s nested datatype and query operator

6
Comments
4 min read
Back Up and Restore Your SQL Database

Back Up and Restore Your SQL Database

8
Comments 1
4 min read
2018 in review: 5 most viewed posts of this year on my blog

2018 in review: 5 most viewed posts of this year on my blog

15
Comments
3 min read
SQL Clause is coming to town!

SQL Clause is coming to town!

51
Comments 4
1 min read
#100CodeExamples – SYSDATE vs. CURRENT_DATE

#100CodeExamples – SYSDATE vs. CURRENT_DATE

9
Comments
2 min read
Conditional Column Join in SQL

Conditional Column Join in SQL

27
Comments 5
2 min read
Authentication Hashing in SQLAlchemy

Authentication Hashing in SQLAlchemy

17
Comments
4 min read
Explain DB2 query

Explain DB2 query

8
Comments
1 min read
Build a Basic App with Spring Boot and JPA using PostgreSQL

Build a Basic App with Spring Boot and JPA using PostgreSQL

8
Comments
19 min read
Start DB Schema Migration with "goose"

Start DB Schema Migration with "goose"

19
Comments 1
4 min read
#100CodeExamples – A challenge to learn and teach: Primary/Secondary Lookup

#100CodeExamples – A challenge to learn and teach: Primary/Secondary Lookup

8
Comments
3 min read
Using Scenic and SQL views to aggregate data

Using Scenic and SQL views to aggregate data

4
Comments
4 min read
Ways of Seeing: ORMS & SQL Views

Ways of Seeing: ORMS & SQL Views

55
Comments 5
7 min read
Combining SQL queries with UNION

Combining SQL queries with UNION

11
Comments
5 min read
開発時はSQLのログを見よう

開発時はSQLのログを見よう

5
Comments 2
1 min read
Bert & Pinal Troubleshoot a Slow Performing SQL Server

Bert & Pinal Troubleshoot a Slow Performing SQL Server

7
Comments
1 min read
Every SQL Join You’ll Ever Need

Every SQL Join You’ll Ever Need

162
Comments 2
20 min read
SQL:How to compare with NULL without "IS NULL" operator

SQL:How to compare with NULL without "IS NULL" operator

4
Comments 1
2 min read
managing db users in postgres & mysql

managing db users in postgres & mysql

10
Comments 2
6 min read
Why and How Should I Learn PL/SQL (or T-SQL or PL/pgSQL)?

Why and How Should I Learn PL/SQL (or T-SQL or PL/pgSQL)?

23
Comments 1
6 min read
Explaining PostgreSQL

Explaining PostgreSQL

12
Comments
1 min read
Keep your SQL database in sync with Google Sheets

Keep your SQL database in sync with Google Sheets

46
Comments 4
4 min read
What are the most common tools for data pre-calculation and aggregation?

What are the most common tools for data pre-calculation and aggregation?

8
Comments 2
1 min read
Implementing Model Class Inheritance in SQLAlchemy

Implementing Model Class Inheritance in SQLAlchemy

11
Comments 1
2 min read
LaravelのModelからSQLを直接実行する方法

LaravelのModelからSQLを直接実行する方法

9
Comments
1 min read
New Course: Database Fundamentals

New Course: Database Fundamentals

18
Comments
1 min read
Updating a Django queryset with annotation and subquery

Updating a Django queryset with annotation and subquery

29
Comments
3 min read
BeckDesignRules for Database Developers: Reveals intention – Naming

BeckDesignRules for Database Developers: Reveals intention – Naming

9
Comments
7 min read
Configuring and Managing SSL On Your MySQL Server

Configuring and Managing SSL On Your MySQL Server

10
Comments
6 min read
SQLite Types: To Affinity And Beyond

SQLite Types: To Affinity And Beyond

13
Comments
2 min read
Fun with your Amazon order history

Fun with your Amazon order history

9
Comments 1
1 min read
Getting Started with PostgreSQL Streaming Replication

Getting Started with PostgreSQL Streaming Replication

17
Comments
8 min read
Case Sensitive WHERE Clause

Case Sensitive WHERE Clause

10
Comments
1 min read
SQL tests in your smart framework

SQL tests in your smart framework

15
Comments
6 min read
Using C# LINQ API to perform SQL IN logic at WHERE clause

Using C# LINQ API to perform SQL IN logic at WHERE clause

22
Comments 9
1 min read
How To Import SQL File With PHP

How To Import SQL File With PHP

22
Comments 8
2 min read
SQL Server’s [N]VARCHAR(MAX) and How to Wield It

SQL Server’s [N]VARCHAR(MAX) and How to Wield It

8
Comments
1 min read
Replicate your PostgreSQL database into another server using just one command.

Replicate your PostgreSQL database into another server using just one command.

62
Comments 4
1 min read
Go sql.DB Periodic Error: invalid connection

Go sql.DB Periodic Error: invalid connection

9
Comments 9
2 min read
DynamoDB PrimaryKey, HashKey, SortKey (RangeKey)

DynamoDB PrimaryKey, HashKey, SortKey (RangeKey)

17
Comments 1
3 min read
loading...