Primary Key vs. Foreign Key With a SQL Example
A primary key uniquely identifies each row; a foreign key points to a primary key in another table. Six statements and what SQLite accepted or rejected.
Calc sql-fk
BinConvert articles
Each guide pairs a direct answer with an interactive example and records how its numbers, commands or test output were produced.
Showing 1–12 of 47
A primary key uniquely identifies each row; a foreign key points to a primary key in another table. Six statements and what SQLite accepted or rejected.
Calc sql-fk
UNION combines two query results and removes duplicate rows; UNION ALL keeps every row. The same queries run both ways, with row counts and shared rules.
ViewTabs
SQL writes not equal as <> (standard) or !=. Both skip NULL rows, which surprises people. Query results show the problem and three ways to include NULLs.
ViewTabs
SSH 'Permission denied (publickey)' means the server rejected every key offered. A throwaway SSH server shows what ssh -v reveals for wrong and right keys.
DecisionTree
An invoice asks for payment; a receipt confirms payment was made. Annotated samples show what each records, when it is issued and how long to keep it.
ViewTabs
A credit memo is a seller's document that reduces what a customer owes on an invoice, for returns, damage or pricing errors. Work one through a calculator.
Calc credit-memo
EFT is the umbrella term for electronic money transfers; ACH is one US network within it. Terms compared, payment examples and what Regulation E covers.
ViewTabs
405 Method Not Allowed means the URL exists but rejects that HTTP method. Read the Allow header, fix the request, and try methods against a sample API.
Calc http-method
503 Service Unavailable means the server cannot handle the request right now: maintenance or overload. Both reproduced, with Retry-After and log output.
Stepper
ERR_TOO_MANY_REDIRECTS means a page redirects in a circle. Trace it hop by hop with curl, and see the classic proxy and HTTPS loop reproduced and fixed.
Stepper
Firefox shows SSL_ERROR_RX_RECORD_TOO_LONG when HTTPS gets a non-TLS reply, usually plain HTTP on port 443. Reproduced locally, with the bytes behind it.
ByteInspector
ERR_CERT_AUTHORITY_INVALID means the browser cannot chain a site's certificate to a trusted CA. A private test CA shows the failing chain and the fix.
Stepper