Explain Codes LogoExplain Codes Logo

Sql

What is the difference between `->` and `->>` in Postgres SQL?

sql
json
data-handling
performance

How to get the first and last record from an SQL query?

sql
window-functions
performance-tuning
query-optimization

Best way to create a temp table with same columns and type as a permanent table

sql
temp-tables
sql-server
postgresql

Mysql "WITH" clause

sql
cte
mysql
performance

Does the order of where clauses matter in SQL?

sql
query-optimization
database-performance
sql-indexes

Case .. WHEN expression in Oracle SQL

sql
case-statement
oracle-sql
sql-queries

Can I change the default schema name in entity framework 4.3 code-first?

sql
entity-framework
schema-configuration
fluent-api

Using If else in SQL Select statement

sql
best-practices
case-statement
sql-performance

What is (are) the differences between NOLOCK and UNCOMMITTED

sql
transaction-isolation
dirty-reads
locking-mechanisms

Can I reuse a calculated field in a SELECT query?

sql
sql-calculations
performance-optimization
sql-optimization

How to return the output of a stored procedure into a variable in SQL Server

sql
stored-procedures
output-parameters
temp-tables

Mysql: Compare differences between two tables

sql
join
union-all
information-schema

Should every table in a database have an identity field to use as a PK?

sql
best-practices
data-integrity
database-design

Get everything after and before certain character in SQL Server

sql
substring-manipulation
sql-functions
data-sanitization

Avoid duplicates in INSERT INTO SELECT query in SQL Server

sql
sql-server
database-performance
query-optimization

Split comma separated column data into additional columns

sql
best-practices
performance
functions

How to update rows with a random date

sql
performance
best-practices
database

How do I do top 1 in Oracle?

sql
analytical-functions
database-optimization
oracle-12c

How to filter SQL results in a has-many-through relation

sql
join
subqueries
ctes

How can I list ALL grants a user received?

sql
database-management
oracle-database
sql-queries