Explain Codes LogoExplain Codes Logo

Sql

How to execute .sql file using powershell?

sql
sql-server
powershell
sqlcmd

Select a column if other column is NULL

sql
null-handling
sql-functions
conditional-statements

How to create a temporary function in PostgreSQL?

sql
prepared-statements
performance
best-practices

Is it possible to have a default parameter for a mysql stored procedure?

sql
stored-procedures
default-parameters
mysql

Is there a way to SELECT and UPDATE rows at the same time?

sql
transactions
concurrency-protection
stored-procedures

Selecting with multiple WHERE conditions on same column

sql
join
group-by
having

Using tuples in SQL "IN" clause

sql
database-compatibility
performance-optimization
sql-server-workarounds

How to iterate over results of a query

sql
prompt-engineering
best-practices
sql-wizardry

Sql Management Studio won't recognize a table exists after scripted create

sql
intellisense
sql-server
database-management

How do parameterized queries help against SQL injection?

sql
sql-injection
parameterized-queries
database-security

Can you use an alias in the WHERE clause in mysql?

sql
subqueries
aggregate-functions
aliasing

How to delete duplicate rows without unique identifier

sql
delete-duplicates
postgresql
ctid

How to query GROUP BY Month in a Year

sql
group-by
date-aggregation
sql-functions

String or binary data would be truncated. The statement has been terminated

sql
data-truncation
sql-server
database-configuration

How do I find a default constraint using INFORMATION_SCHEMA?

sql
constraint-tracing
sys-views
sql-server

Escaping ampersand character in SQL string

sql
escape-mechanisms
sql-queries
string-concatenation

How to deal with SQL column names that look like SQL keywords?

sql
sql-keywords
sql-escaping
sql-design

What are best practices for multi-language database design?

sql
database-design
multilingual-database
sql-functions

How do I count columns of a table

sql
information-schema
metadata
database-structure

Facebook database design?

sql
database-design
data-integrity
optimization