Menu

#Customer_id

21 posts

Feed·
19 of 21 posts
PostgreSQL Redundant Indexes: Is an Index on (a) Redundant When You Have (a, b)?
📰
0Read More

PostgreSQL Redundant Indexes: Is an Index on (a) Redundant When You Have (a, b)?

DEV Community: postgres·Son Tran·7 days ago
#UhKMJjay
#devtopostgresql#devto#dev#index#redundant

Usually yes: the wider index serves the same lookups. The look-alikes you must not drop, a query that finds the real ones, and how Schemity's lint flags...

15s
MySQL Cannot Drop Index Needed in a Foreign Key Constraint: Which Fix to Use
🖼️
0Read More

MySQL Cannot Drop Index Needed in a Foreign Key Constraint: Which Fix to Use

DEV Community: laravel·Son Tran·9 days ago
#5v0RY69n
#devtolaravel#devto#dev#index#foreign

MySQL error 1553 has three fixes, and the right one depends on whether the foreign key stays. Why a Laravel rollback hits it, and how Schemity flags it...

15s
Transaction Monitoring Rules in SQL: Build and Test AML Detections with DuckDB
🖼️
0Read More

Transaction Monitoring Rules in SQL: Build and Test AML Detections with DuckDB

DEV Community: sql·Audrey Xu·13 days ago
#1Y1b4Oe3
#devtosql#devto#dev#rule#customers

Banks track transaction patterns in real time to flag unusual activity, such as a sudden large...

15s
From SQL Text to an Execution Plan: Query Planning, Join Algorithms, and Index Selection
🖼️
0Read More

From SQL Text to an Execution Plan: Query Planning, Join Algorithms, and Index Selection

DEV Community: postgres·Hu Jin·14 days ago
#zbfOM30G
#devtopostgresql#devto#dev#join#scan

Walk one orders query from SQL parse and bind through logical and physical plans, join algorithms, and index access-path selection, including cost estimates, predicate pushdown, and EXPLAIN vs EXPLAIN ANALYZE.

15s
0Read More

Composite index column order: four queries, four query plans (tested on SQLite, check your own engine)

Long article (387 words) — no AI summary yet.

A composite index on (customer_id, status) is not the same as one on (status, customer_id). Instead of explaining it abstractly, here’s a small test.…

15s
# API CaseTracker: Eliminating API Support Rediscovery with Customer-Partitioned Persistent Memory
🖼️
0Read More

# API CaseTracker: Eliminating API Support Rediscovery with Customer-Partitioned Persistent Memory

DEV Community: react·Jeevaa A S·29 days ago
#N0045q2c
#devtoreact#devto#dev#memory#payload

Live Production Application: https://api-casetracker.vercel.app Source Code: FastAPI Backend &...

15s
0Read More

The NOT IN trap that returns zero rows (and why NOT EXISTS doesn't have it)

#sql#redditsql#null#customers#select

I see this one trip people up all the time, including in interviews, so here's a quick write-up. Say you want customers who have never referred anyone: SELECT customer_id FROM customers WHERE customer_id NOT IN (SELECT referred_by FROM customers); Looks…

15s
How to find missing IDs between two lists (and get the SQL for free)
📰
0Read More

How to find missing IDs between two lists (and get the SQL for free)

DEV Community: database·kdkumawat·about 1 month ago
#F5wwx6On
#devtodatabase#devto#dev#list#select

You have two exports. One is the source of truth (every paying customer in billing), the other is...

15s
Joins: Combining Tables Without Losing Your Mind
📰
0Read More

Joins: Combining Tables Without Losing Your Mind

DEV Community·Akhilesh·7 months ago
#52wOF0Nb
#sql#ai#beginners#python#join

You have two tables. The customers table knows who people are. Name, city, contact details. The...

15s
SQL GROUP BY & HAVING: The Beginner's Guide to Summarizing Data Like a Pro
📰
0Read More

SQL GROUP BY & HAVING: The Beginner's Guide to Summarizing Data Like a Pro

DEV Community·Vivek Kumar·7 months ago
#XAevmR3r
#group#sql#database#beginners#customer_id

Learn how SQL GROUP BY and HAVING clauses work together to group, aggregate, and filter your data — with real-world examples and common mistakes to avoid.

15s