Explain Codes LogoExplain Codes Logo

Sql

How to resolve ambiguous column names when retrieving results?

sql
join
best-practices
data-discrepancies

How to detect query which holds the lock in Postgres?

sql
lock-investigation
postgres-queries
database-performance

Postgres - Function to return the intersection of 2 ARRAYs?

sql
array-operations
postgresql
intersection

What is the difference between ";" and "GO" in T-SQL?

sql
sql-server
t-sql
batch-commands

Oracle insert from select into table with more columns

sql
best-practices
join
data-type-compatibilities

Alter a MySQL column to be AUTO_INCREMENT

sql
database-management
mysql-commands
data-structures

Postgresql: using a calculated column in the same query

sql
join
performance
best-practices

Create a one to many relationship using SQL Server

sql
foreign-key
join
database-design

Mysql insert random datetime in a given datetime range

sql
randomness
datetime
performance

T-sql: Using a CASE in an UPDATE statement to update certain columns depending on a condition

sql
dynamic-sql
update-statements
error-handling

Mysql concatenation operator

sql
concatenation
sql-mode
concat-function

Sql: IF clause within WHERE clause

sql
conditional-statements
sql-performance
best-practices

How do I use an INSERT statement's OUTPUT clause to get the identity value?

sql
output-clause
identity-value
insert-statement

Ora-12560: TNS:protocol adapter error

sql
ora-12560
tns-protocol-error
oracle-services

Creating new database from a backup of another Database on the same server?

sql
backup
restore
database

Mysql procedure vs function, which would I use when?

sql
transaction-management
database-security
performance-optimization

Difference of two date time in SQL Server

sql
datetime
date-diff
sql-server

List rows after specific date

sql
date-comparisons
sql-performance
best-practices

In Clause with NULL or IS NULL

sql
null-handling
subqueries
best-practices

What is the difference between IFNULL and COALESCE in MySQL?

sql
best-practices
performance
join