{Uki's tech notes}
This notebook is a collection of code snippets and technical "how to" instructions.
Pages
Welcome
Julia
AI
Android
Java
Python
Jypyter
Conda
Linux/UNIX
LinkedIn
Medium articles
Uki's personal blog
Search This Blog
SQL: query occurrences of multiple fields in a table
by: Zainab Aziz
SELECT id, name , email,
COUNT(id) AS NumOccurrences
FROM student_record
GROUP BY id, name, email
HAVING ( COUNT(id) > 1 );
- student_record is table name.
- id, name, email are column names.
- counting more than one occurrences for above column.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment