Skip to content

Database Tips

DatabaseTips.Net – From SQL to database tuning; here you can find it all!

Tag: MySQL

Presto: SQL over big data, NoSQL and relational DBMS

July 1, 2020 Database Tips Big data, SQL

What about using SQL to retrieve data from NoSQL databases? Or to make joins between tables stored in relational databases[…]

Read more

SQL Count(*), Count(cte), Count(column), Count(pk), … x Inner and Outer Joins

November 8, 2019 Database Tips Microsoft Access, Microsoft SQL Server, MySQL, ORACLE, PostgreSQL, SQL, SQLite

In SQL, The Count function counts the number of values in a set. Such function accepts a parameter, that specifies[…]

Read more

How to delete millions of rows from a table

October 24, 2019 Database Tips Microsoft SQL Server, MySQL, ORACLE, PostgreSQL, SQL

To delete a great number of rows from a table may become a pain in the neck. A never ending[…]

Read more

SQL: 3 ways to find gaps and missing values

September 5, 2019 Database Tips Microsoft SQL Server, MySQL, ORACLE, PL/SQL, PostgreSQL, SQL, Transact-SQL functions

It is really common to have columns that stores sequences of numbers in database systems (specially in relational databases). Users[…]

Read more

SQL Inner and (Left/Right/Full) Outer Joins

July 30, 2019 Database Tips Microsoft SQL Server, MySQL, ORACLE, PostgreSQL, SQL

Joins are one of the most common operators in SQL queries. In this post, we present inner and outer joins[…]

Read more

3 ways to remove duplicate data

April 16, 2019 Database Tips Microsoft SQL Server, MySQL, ORACLE, PL/SQL, PostgreSQL, SQL, SQLite, Transact-SQL functions

Duplicate data can be generated in the database due to design error, software bugs or misuse by end users. Depending[…]

Read more

NOT IN and NULL: a dangerous combination

March 29, 2019 Database Tips Microsoft SQL Server, MySQL, ORACLE, PostgreSQL, SQL

Non-correlated subqueries (where the inner query does not have any column from the outer query tables) are usually implemented using[…]

Read more

LEAD and LAG: accessing multiple rows without self join

February 12, 2019 Database Tips Microsoft Access, Microsoft SQL Server, MySQL, ORACLE, PL/SQL, PostgreSQL, SQL, Transact-SQL functions

LEAD and LAG are window functions that enable the simultaneous access to a table’s row and to other row related[…]

Read more

Coalesce, NVL, ISNULL, Case, … What should a I use?

January 14, 2019 Database Tips Microsoft Access, Microsoft SQL Server, MySQL, ORACLE, PL/SQL, PostgreSQL, SQL, Transact-SQL functions

There are a lot of options to use when testing for NULL values in SQL. One should use built-in functions[…]

Read more

Database Users and Schemas – concepts and tricks

July 20, 2018 Database Tips Database schemas, Database users, Microsoft SQL Server, MySQL, ORACLE, PostgreSQL

There is some confusion when dealing with some users and schemas. Some DBMS support several schemas per database, while other[…]

Read more

Subscribe to DatabaseTips

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Top Posts

Database Tuning and Buffer Cache Hit ratio

Categories

  • Big data
  • Blog Presentation
  • Database schemas
  • Database tuning
  • Database users
  • Error messages
  • History
  • Microsoft Access
  • Microsoft SQL Server
  • MySQL
  • ORACLE
  • PL/SQL
  • PostgreSQL
  • Python
  • RAC
  • SQL
  • SQLite
  • Transact-SQL functions




Tags

Access Archive Backup CASE CAST Coalesce data types DB2 Group by Having initialization ISNULL Joins LAG LEAD Mail MariaDB Microsoft Access; Microsoft SQL Server Missing values MySQL Not Exists NVL NVL2 ORACLE Packages PostgreSQL Privileges Python RAC Recovery Recursive Query Rowid Rownum Row_Number Schemas shutdown split brain SQL SQLite Top N Transaction control Tuning Users Where
WordPress Theme: Poseidon by ThemeZee.