Skip to main content

SQL

2022

How to Export a Remote PostgreSQL Database and Import it locally?
·1 min
Mayukh Datta
Technical SQL
Create a dump of the remote database using pg_dump command pg_dump --host=remote_host_name --port=remote_port_number --username=remote_database_user_name --dbname=database_name > db_export.sql You will get a dump SQL file of the remote database upon successful completion of this process.
Performance Optimization using Pivot Tables Technique in MySQL
·4 mins
Mayukh Datta
Technical SQL
Making a database call is an expensive operation. It involves opening a connection to the database, and the SQL query passed through this connection to the database is parsed, optimized, and then finally executed.

2020

Nth Highest Salary LeetCode Solution
·2 mins
Leetcode SQL
Swap Salary LeetCode Solution
·1 min
Leetcode SQL
Rising Temperature LeetCode Solution
·1 min
Leetcode SQL
Not Boring Movies LeetCode Solution
·1 min
Leetcode SQL
Classes More Than 5 Students LeetCode Solution
·1 min
Leetcode SQL
Second Highest Salary LeetCode Solution
·1 min
Leetcode SQL
Employees Earning More Than Their Managers LeetCode Solution
·1 min
Leetcode SQL
Duplicate Emails LeetCode Solution
·1 min
Leetcode SQL