SQL Injection and Prepared Statements
How SQL injection works and how to prevent it: why pasting input into SQL text is dangerous, stacked queries, parameterized queries and prepared statements in SQL and application code, safe dynamic identifiers, LIKE and IN lists, ORMs, and defence in depth.
kvi5hnuCode Sprout team member9 min readOn this page
SQL injection is one of the oldest and most damaging security bugs in software, and it remains in the OWASP Top 10. It happens when an application builds a SQL statement by pasting user input into the query text. A user who types SQL instead of ordinary data can then change what the statement does: read every row, bypass a login, or delete tables.
The fix has been known for decades and is simple: never put input into SQL text; send it as a parameter. This article shows the attack in action, then the fix, in SQL and in application code, and the cases that need extra care.
How injection works
Imagine an application with a customer search box, whose code builds a query like this:
# DON'T: user input pasted into the SQL text
query = "SELECT customer_id, name FROM customers WHERE name = '" + search + "'"
cursor.execute(query)
The runnable below simulates it in SQL: it builds the query text from the "input" in the same way, then runs the text, as the application would.
CREATE TABLE products (
product_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
category VARCHAR(20) NOT NULL,
brand VARCHAR(20),
price DECIMAL(8, 2) NOT NULL,
stock INTEGER NOT NULL,
weight_g INTEGER
);
INSERT INTO products VALUES
(1, 'Ridge 2 tent', 'tents', 'Alpina', 249.99, 12, 2100),
(2, 'Summit 4 tent', 'tents', 'Alpina', 489.00, 3, 4300),
(3, 'Glow head torch', 'lighting', 'Lumen', 34.50, 40, 90),
(4, 'Basecamp lantern', 'lighting', NULL, 27.00, 15, NULL),
(5, 'Trail 30 backpack', 'packs', 'Kestrel', 89.95, 22, 1150),
(6, 'Day 18 backpack', 'packs', 'Kestrel', 54.00, 0, 640),
(7, 'Merino socks', 'clothing', 'Woolly', 16.00, 75, 80);
CREATE TABLE customers (
customer_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
city VARCHAR(30),
referred_by INTEGER REFERENCES customers (customer_id)
);
INSERT INTO customers VALUES
(1, 'Asha Rao', 'Pune', NULL),
(2, 'Ben Okafor', 'Leeds', 1),
(3, 'Chen Wei', 'Pune', 1),
(4, 'Dana Cruz', 'York', 2),
(5, 'Eli Novak', 'Leeds', NULL),
(6, 'Farah Haddad', NULL, 3);
CREATE TABLE orders (
order_id INTEGER PRIMARY KEY,
customer_id INTEGER REFERENCES customers (customer_id), -- NULL = guest checkout
placed_on DATE NOT NULL,
status VARCHAR(10) NOT NULL
);
INSERT INTO orders VALUES
(101, 1, DATE '2026-03-02', 'shipped'),
(102, 2, DATE '2026-03-05', 'shipped'),
(103, 1, DATE '2026-03-09', 'delivered'),
(104, 3, DATE '2026-03-15', 'pending'),
(105, 4, DATE '2026-03-20', 'cancelled'),
(106, NULL, DATE '2026-03-22', 'shipped');
CREATE TABLE order_items (
order_id INTEGER REFERENCES orders (order_id),
product_id INTEGER REFERENCES products (product_id),
qty INTEGER NOT NULL,
unit_price DECIMAL(8, 2) NOT NULL,
PRIMARY KEY (order_id, product_id)
);
INSERT INTO order_items VALUES
(101, 1, 1, 249.99), (101, 7, 3, 16.00),
(102, 3, 2, 34.50),
(103, 5, 1, 89.95), (103, 3, 1, 34.50), (103, 7, 2, 15.00),
(104, 2, 1, 489.00),
(105, 6, 1, 54.00),
(106, 7, 1, 16.00);
-- An application builds SQL by pasting user input into the text.
-- Simulated here: the "input" is what a user typed into a search box.
-- Normal input
SELECT 'SELECT customer_id, name FROM customers WHERE name = ''' || input || ''''
FROM (VALUES ('Asha Rao')) AS form(input)
\gexec
-- Malicious input: the quote ends the string early and the rest becomes SQL
SELECT 'SELECT customer_id, name FROM customers WHERE name = ''' || input || '''' AS query_text
FROM (VALUES ($$nobody' OR '1'='1$$)) AS form(input);
SELECT 'SELECT customer_id, name FROM customers WHERE name = ''' || input || ''''
FROM (VALUES ($$nobody' OR '1'='1$$)) AS form(input)
\gexec
customer_id | name
-------------+----------
1 | Asha Rao
(1 row)
query_text
--------------------------------------------------------------------------
SELECT customer_id, name FROM customers WHERE name = 'nobody' OR '1'='1'
(1 row)
customer_id | name
-------------+--------------
1 | Asha Rao
2 | Ben Okafor
3 | Chen Wei
4 | Dana Cruz
5 | Eli Novak
6 | Farah Haddad
(6 rows)
With normal input, the query works. Then a user types nobody' OR '1'='1. The quote in the input closes the string early, and the rest is parsed as SQL: the condition becomes name = 'nobody' OR '1'='1', which is true for every row, so every customer is returned. On a login form, the same trick turns "check this password" into "always true".

The database can't tell which part of the text the developer wrote and which part came from the user: it receives one string and parses all of it as code.
It gets worse when the database driver accepts several statements in one call:
CREATE TABLE products (
product_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
category VARCHAR(20) NOT NULL,
brand VARCHAR(20),
price DECIMAL(8, 2) NOT NULL,
stock INTEGER NOT NULL,
weight_g INTEGER
);
INSERT INTO products VALUES
(1, 'Ridge 2 tent', 'tents', 'Alpina', 249.99, 12, 2100),
(2, 'Summit 4 tent', 'tents', 'Alpina', 489.00, 3, 4300),
(3, 'Glow head torch', 'lighting', 'Lumen', 34.50, 40, 90),
(4, 'Basecamp lantern', 'lighting', NULL, 27.00, 15, NULL),
(5, 'Trail 30 backpack', 'packs', 'Kestrel', 89.95, 22, 1150),
(6, 'Day 18 backpack', 'packs', 'Kestrel', 54.00, 0, 640),
(7, 'Merino socks', 'clothing', 'Woolly', 16.00, 75, 80);
CREATE TABLE customers (
customer_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
city VARCHAR(30),
referred_by INTEGER REFERENCES customers (customer_id)
);
INSERT INTO customers VALUES
(1, 'Asha Rao', 'Pune', NULL),
(2, 'Ben Okafor', 'Leeds', 1),
(3, 'Chen Wei', 'Pune', 1),
(4, 'Dana Cruz', 'York', 2),
(5, 'Eli Novak', 'Leeds', NULL),
(6, 'Farah Haddad', NULL, 3);
CREATE TABLE orders (
order_id INTEGER PRIMARY KEY,
customer_id INTEGER REFERENCES customers (customer_id), -- NULL = guest checkout
placed_on DATE NOT NULL,
status VARCHAR(10) NOT NULL
);
INSERT INTO orders VALUES
(101, 1, DATE '2026-03-02', 'shipped'),
(102, 2, DATE '2026-03-05', 'shipped'),
(103, 1, DATE '2026-03-09', 'delivered'),
(104, 3, DATE '2026-03-15', 'pending'),
(105, 4, DATE '2026-03-20', 'cancelled'),
(106, NULL, DATE '2026-03-22', 'shipped');
CREATE TABLE order_items (
order_id INTEGER REFERENCES orders (order_id),
product_id INTEGER REFERENCES products (product_id),
qty INTEGER NOT NULL,
unit_price DECIMAL(8, 2) NOT NULL,
PRIMARY KEY (order_id, product_id)
);
INSERT INTO order_items VALUES
(101, 1, 1, 249.99), (101, 7, 3, 16.00),
(102, 3, 2, 34.50),
(103, 5, 1, 89.95), (103, 3, 1, 34.50), (103, 7, 2, 15.00),
(104, 2, 1, 489.00),
(105, 6, 1, 54.00),
(106, 7, 1, 16.00);
-- Input can also end the statement and start a new one
SELECT 'SELECT customer_id FROM customers WHERE name = ''' || input || ''''
FROM (VALUES ($$x'; DROP TABLE order_items; --$$)) AS form(input)
\gexec
SELECT COUNT(*) FROM order_items;
customer_id
-------------
(0 rows)
psql:/workspace/solution.sql:67: ERROR: relation "order_items" does not exist
LINE 1: SELECT COUNT(*) FROM order_items;
^
The input x'; DROP TABLE order_items; -- closes the string, ends the statement with ;, adds a DROP TABLE, and turns the rest of the original text into a comment with --. The search returns nothing, and the table is gone. These are called stacked queries. Some drivers refuse multiple statements per call, which blocks this form, but not the OR '1'='1' form or attacks that use UNION SELECT to read other tables.
Attackers don't need to see results either. Blind injection asks yes-or-no questions through differences in behaviour, such as an error or a delay, one character of a password hash at a time. Automated tools do this quickly. Any injectable query should be treated as giving the attacker full access to everything the application's database role can do.
The fix: parameters
A parameterized query sends the SQL text and the values separately. The text contains placeholders, such as $1 in PostgreSQL, and the values are sent alongside it. The database parses the text first, so the query's structure is fixed before any value arrives. A value is only ever data, whatever characters it contains.
SQL's PREPARE and EXECUTE statements show the mechanism:
CREATE TABLE products (
product_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
category VARCHAR(20) NOT NULL,
brand VARCHAR(20),
price DECIMAL(8, 2) NOT NULL,
stock INTEGER NOT NULL,
weight_g INTEGER
);
INSERT INTO products VALUES
(1, 'Ridge 2 tent', 'tents', 'Alpina', 249.99, 12, 2100),
(2, 'Summit 4 tent', 'tents', 'Alpina', 489.00, 3, 4300),
(3, 'Glow head torch', 'lighting', 'Lumen', 34.50, 40, 90),
(4, 'Basecamp lantern', 'lighting', NULL, 27.00, 15, NULL),
(5, 'Trail 30 backpack', 'packs', 'Kestrel', 89.95, 22, 1150),
(6, 'Day 18 backpack', 'packs', 'Kestrel', 54.00, 0, 640),
(7, 'Merino socks', 'clothing', 'Woolly', 16.00, 75, 80);
CREATE TABLE customers (
customer_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
city VARCHAR(30),
referred_by INTEGER REFERENCES customers (customer_id)
);
INSERT INTO customers VALUES
(1, 'Asha Rao', 'Pune', NULL),
(2, 'Ben Okafor', 'Leeds', 1),
(3, 'Chen Wei', 'Pune', 1),
(4, 'Dana Cruz', 'York', 2),
(5, 'Eli Novak', 'Leeds', NULL),
(6, 'Farah Haddad', NULL, 3);
CREATE TABLE orders (
order_id INTEGER PRIMARY KEY,
customer_id INTEGER REFERENCES customers (customer_id), -- NULL = guest checkout
placed_on DATE NOT NULL,
status VARCHAR(10) NOT NULL
);
INSERT INTO orders VALUES
(101, 1, DATE '2026-03-02', 'shipped'),
(102, 2, DATE '2026-03-05', 'shipped'),
(103, 1, DATE '2026-03-09', 'delivered'),
(104, 3, DATE '2026-03-15', 'pending'),
(105, 4, DATE '2026-03-20', 'cancelled'),
(106, NULL, DATE '2026-03-22', 'shipped');
CREATE TABLE order_items (
order_id INTEGER REFERENCES orders (order_id),
product_id INTEGER REFERENCES products (product_id),
qty INTEGER NOT NULL,
unit_price DECIMAL(8, 2) NOT NULL,
PRIMARY KEY (order_id, product_id)
);
INSERT INTO order_items VALUES
(101, 1, 1, 249.99), (101, 7, 3, 16.00),
(102, 3, 2, 34.50),
(103, 5, 1, 89.95), (103, 3, 1, 34.50), (103, 7, 2, 15.00),
(104, 2, 1, 489.00),
(105, 6, 1, 54.00),
(106, 7, 1, 16.00);
-- A prepared statement sends the query and the values separately
PREPARE find_customer(text) AS
SELECT customer_id, name FROM customers WHERE name = $1;
EXECUTE find_customer('Asha Rao');
-- The same malicious text is now just a value: no customer has that name
EXECUTE find_customer($$nobody' OR '1'='1$$);
EXECUTE find_customer($$x'; DROP TABLE order_items; --$$);
SELECT COUNT(*) AS order_items_still_there FROM order_items;
DEALLOCATE find_customer;
customer_id | name
-------------+----------
1 | Asha Rao
(1 row)
customer_id | name
-------------+------
(0 rows)
customer_id | name
-------------+------
(0 rows)
order_items_still_there
-------------------------
9
(1 row)
PREPARE find_customer(text) AS ... WHERE name = $1 parses and stores the query with a placeholder. Each EXECUTE supplies a value. Asha is found. The two malicious strings are compared with name as plain text, no customer has a name like that, and nothing is returned, and order_items is untouched.
Applications use the same mechanism through their database driver, almost always with no PREPARE statement in sight:
# Python (psycopg)
cur.execute("SELECT customer_id, name FROM customers WHERE name = %s", (search,))
// Java (JDBC)
PreparedStatement ps = conn.prepareStatement(
"SELECT customer_id, name FROM customers WHERE name = ?");
ps.setString(1, search);
ResultSet rs = ps.executeQuery();
// Node.js (node-postgres)
const { rows } = await client.query(
"SELECT customer_id, name FROM customers WHERE name = $1", [search]);
The placeholder syntax varies (?, $1, %s, :name, @name), but the rule is the same: the SQL text is a constant written by the developer, and every value from outside goes in as a parameter. Note that psycopg's %s is a placeholder, not Python string formatting: "... = %s" % search would be injectable again.
Parameters have other benefits. The database can reuse the parsed statement and, often, its plan, which saves time for queries run many times. Values keep their types, so dates and numbers don't go through fragile string conversions. And there's no need to escape quotes in names like O'Brien.
Things parameters can't do
Parameters stand for values. They can't stand for table or column names, keywords such as ASC and DESC, or pieces of syntax. When those depend on input, as with a user-chosen sort column, use other defences:
CREATE TABLE products (
product_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
category VARCHAR(20) NOT NULL,
brand VARCHAR(20),
price DECIMAL(8, 2) NOT NULL,
stock INTEGER NOT NULL,
weight_g INTEGER
);
INSERT INTO products VALUES
(1, 'Ridge 2 tent', 'tents', 'Alpina', 249.99, 12, 2100),
(2, 'Summit 4 tent', 'tents', 'Alpina', 489.00, 3, 4300),
(3, 'Glow head torch', 'lighting', 'Lumen', 34.50, 40, 90),
(4, 'Basecamp lantern', 'lighting', NULL, 27.00, 15, NULL),
(5, 'Trail 30 backpack', 'packs', 'Kestrel', 89.95, 22, 1150),
(6, 'Day 18 backpack', 'packs', 'Kestrel', 54.00, 0, 640),
(7, 'Merino socks', 'clothing', 'Woolly', 16.00, 75, 80);
CREATE TABLE customers (
customer_id INTEGER PRIMARY KEY,
name VARCHAR(40) NOT NULL,
city VARCHAR(30),
referred_by INTEGER REFERENCES customers (customer_id)
);
INSERT INTO customers VALUES
(1, 'Asha Rao', 'Pune', NULL),
(2, 'Ben Okafor', 'Leeds', 1),
(3, 'Chen Wei', 'Pune', 1),
(4, 'Dana Cruz', 'York', 2),
(5, 'Eli Novak', 'Leeds', NULL),
(6, 'Farah Haddad', NULL, 3);
CREATE TABLE orders (
order_id INTEGER PRIMARY KEY,
customer_id INTEGER REFERENCES customers (customer_id), -- NULL = guest checkout
placed_on DATE NOT NULL,
status VARCHAR(10) NOT NULL
);
INSERT INTO orders VALUES
(101, 1, DATE '2026-03-02', 'shipped'),
(102, 2, DATE '2026-03-05', 'shipped'),
(103, 1, DATE '2026-03-09', 'delivered'),
(104, 3, DATE '2026-03-15', 'pending'),
(105, 4, DATE '2026-03-20', 'cancelled'),
(106, NULL, DATE '2026-03-22', 'shipped');
CREATE TABLE order_items (
order_id INTEGER REFERENCES orders (order_id),
product_id INTEGER REFERENCES products (product_id),
qty INTEGER NOT NULL,
unit_price DECIMAL(8, 2) NOT NULL,
PRIMARY KEY (order_id, product_id)
);
INSERT INTO order_items VALUES
(101, 1, 1, 249.99), (101, 7, 3, 16.00),
(102, 3, 2, 34.50),
(103, 5, 1, 89.95), (103, 3, 1, 34.50), (103, 7, 2, 15.00),
(104, 2, 1, 489.00),
(105, 6, 1, 54.00),
(106, 7, 1, 16.00);
-- Identifiers (table and column names) can't be parameters.
-- When they must come from input, check them against a fixed list.
SELECT input AS requested_sort,
CASE input WHEN 'name' THEN 'name'
WHEN 'city' THEN 'city'
ELSE 'customer_id' END AS used_sort
FROM (VALUES ('city'), ('name; DROP TABLE customers')) AS form(input);
-- In SQL that builds SQL, quote identifiers and values with format's %I and %L
SELECT format('SELECT %I FROM customers WHERE name = %L', col, val) AS safe_query
FROM (VALUES ('name', $$nobody' OR '1'='1$$),
('city"; DROP TABLE customers; --', 'Asha Rao')) AS form(col, val);
requested_sort | used_sort
----------------------------+-------------
city | city
name; DROP TABLE customers | customer_id
(2 rows)
safe_query
----------------------------------------------------------------------------------
SELECT name FROM customers WHERE name = 'nobody'' OR ''1''=''1'
SELECT "city""; DROP TABLE customers; --" FROM customers WHERE name = 'Asha Rao'
(2 rows)
- Allow-list the choices: map the input to one of a fixed set of known identifiers, and use a default for anything else. The malicious "sort column" becomes
customer_id. This is the best defence for sort orders, column choices and table names. - When SQL code builds SQL, as in stored procedures with dynamic SQL (article 66), quote each piece for its role:
format's%Iquotes an identifier, doubling any"inside it, and%Lquotes a literal, doubling any'. The output shows both attacks neutralised: the malicious name becomes a harmless string, and the malicious column becomes a (non-existent) quoted column name.quote_identandquote_literaldo the same. Better still, useEXECUTE ... USINGto pass values as real parameters.
Two other cases that trip people up:
LIKEsearches. Pass the pattern as a parameter,name LIKE $1, and build it in the application, such as'%' + term + '%'. Escape%,_and the escape character in the user's term if they should be matched literally (article 7). That's about correct results, not injection: the pattern is still just a value.INlists. A variable number of values tempts developers to join them into the text. Instead, generate one placeholder per value,IN ($1, $2, $3), or in PostgreSQL pass a single array:WHERE customer_id = ANY($1).
ORMs and query builders
Object-relational mappers such as Hibernate, Entity Framework, SQLAlchemy, Django's ORM and Prisma generate parameterized SQL, so ordinary ORM queries are safe. Injection reappears when developers drop down to raw SQL and build it with string formatting, for example:
# DON'T: an f-string inside a raw query is concatenation
session.execute(text(f"SELECT * FROM customers WHERE city = '{city}'"))
# DO: bind the value
session.execute(text("SELECT * FROM customers WHERE city = :city"), {"city": city})
Every raw-SQL escape hatch in an ORM accepts parameters. Use them.
Defence in depth
Parameters remove the vulnerability. Other measures limit the damage if a mistake slips through anyway:
- Least privilege (article 58): the application's database role should have only the data privileges it needs. It can't drop tables it doesn't own, or read tables it hasn't been granted.
- Don't show database errors to users. Detailed error messages help attackers map the schema. Log them, and show a generic message.
- Validate input for its business meaning: an order ID should be a positive integer, a country code two letters. Validation is good practice, but it's not a substitute for parameters, because many legitimate values contain quotes.
- Code review and static analysis catch string-built SQL. Many linters and security scanners flag it automatically.
- Beware second-order injection: data that was stored safely, such as a user's name containing a quote, is later read back and pasted into a new query. Values from your own database are still input. Parameterize everything.
Escaping quotes by hand, for example replacing ' with '', is not a reliable defence: it's easy to miss a case, character set tricks have defeated it in the past, and it does nothing for numeric contexts such as WHERE id = 1 OR 1=1, where there's no quote to escape.
What's current
- OWASP Top 10 (2025 edition) still lists injection among the most critical web application risks.
- PostgreSQL 18's psql added
\parseand\bind_namedfor working with named prepared statements from the command line, building on\bindfrom PostgreSQL 16. - Modern drivers increasingly default to sending queries with the extended protocol, which sends parameters separately and accepts only one statement per call.
Common questions
Do prepared statements completely prevent SQL injection? For values, yes: a parameter can't change the query's structure. They don't help when identifiers or SQL fragments are built from input, which need allow-lists or quoting.
Isn't escaping quotes enough? No. It's error-prone, has been bypassed with character set tricks, and does nothing for numeric values. Use parameters.
Are stored procedures safe from injection? Only if they don't build SQL from their arguments. A procedure that concatenates input into dynamic SQL is just as vulnerable (article 66).
Are ORMs safe? Their normal query methods are. Raw SQL built with string formatting isn't.
Can I parameterize a table name?
No. Choose from a fixed list of known names, or quote it with %I/quote_ident when generating SQL inside the database.
Summary
- SQL injection happens when input is pasted into SQL text, letting it change the statement.
- Attacks include always-true conditions,
UNION SELECTto read other tables, stacked statements, and blind injection. - Parameterized queries send text and values separately, so values can't become code. Use them for every value from outside.
- Parameters can't replace identifiers or keywords: allow-list them, or quote with
%Iand%Linside the database. - Pass
LIKEpatterns andINlists as parameters too, using one placeholder per value or an array. - ORMs are safe unless you build raw SQL with string formatting.
- Limit damage with least-privilege roles, hidden error details and code review.
Practice questions
Rewrite this Java code so it isn't injectable: stmt.executeQuery("SELECT * FROM orders WHERE status = '" + status + "'").
Answer
PreparedStatement ps = conn.prepareStatement("SELECT * FROM orders WHERE status = ?");
ps.setString(1, status);
ResultSet rs = ps.executeQuery();
A query is built as "SELECT * FROM orders WHERE order_id = " + id, where id comes from the URL. There are no quotes to break out of. Is it safe?
Answer
No. An id of 1 OR 1=1 returns every order, and 1; DROP TABLE orders may run a second statement. Numeric values need parameters too.
A report lets users choose a sort column from a drop-down list. Why can't the column be passed as a parameter, and what should the code do?
Answer
Parameters stand for values, not identifiers: ORDER BY $1 would sort by a constant. Map the input to a fixed list of allowed column names in the application, falling back to a default for anything else, and put the chosen name into the SQL.
Write a PostgreSQL query that finds customers whose IDs are in a list passed as a single parameter.
Answer
SELECT customer_id, name FROM customers WHERE customer_id = ANY($1);
The application passes an integer array, such as [1, 3, 5], as $1.
Previous: Users, Roles and Privileges: GRANT, REVOKE and Row-Level Security

More in SQL Course
Quiz: SQL Dialect Differences (PostgreSQL, MySQL, SQL Server, Oracle, SQLite)
Twenty-four questions on how the major SQL databases differ: limiting rows, concatenation, empty strings, identifier case, upserts, identity columns, transactional DDL, error handling, isolation defaults, booleans, set operations, RETURNING, dates and typing.
Quiz: SQL Delicate Details
Twenty-five questions on SQL's subtle corners: NULLs in aggregates, IN and CHECK, sort order of NULLs, rounding, CHAR padding, window frame defaults, identity gaps, LIKE escapes, empty groups, set operations and multi-column updates.
Quiz: SQL Interview Questions
Thirty SQL questions of the kind asked in developer and analyst interviews: WHERE vs HAVING, DELETE vs TRUNCATE, keys, joins, duplicates, Nth-highest values, window functions, ACID, isolation, locking, indexes, views, procedures and performance.
Quiz: SQL Course Final Exam (All 15 Parts)
The final exam for the SQL course: thirty questions across all fifteen parts, from query processing, NULLs, joins and aggregation through windows, data changes, types, design, indexes, security, transactions, procedural SQL and tuning.
Discussion
Sign in to ask a question or share what you learned.