Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 20, 2021 20:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/6c79172354a884917ceeaa59c08843dd to your computer and use it in GitHub Desktop.
SELECT tabla1.valor, tabla1.otro_valor
(SELECT COUNT(*) FROM tabla2
WHERE tabla1.valor = tabla2.otro_valor) conteo
FROM tabla1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment