Skip to main content

Common Database Queries

Essential SQL queries for FindU staff to handle support tasks efficiently.
Always use read-only queries when investigating issues. Only use UPDATE/DELETE with supervisor approval.

Partner Queries

Find Partners

Check Permissions

Student Interaction Queries

Engagement Metrics

Troubleshooting Queries

Account Issues

Data Integrity

Quick Fixes

Common Updates

Always verify the WHERE clause before running UPDATE queries. Consider wrapping in a transaction:

Reporting Queries

Platform Health

Query Best Practices

1

Always Use ILIKE

For text searches, use ILIKE for case-insensitive matching:
2

Check Before Updating

Always SELECT first to verify your WHERE clause:
3

Use Transactions

For critical updates, use transactions:
4

Save Common Queries

Keep frequently used queries in a personal document for quick access
Pro tip: The Supabase SQL editor has query history. Use it to find queries you’ve run before!