Skill 1.1.2
Design and implement specialized tables, including in-memory, temporal, external, ledger, and graph
Key Concepts
Memory-optimized tables (In-Memory OLTP) live in memory with lock-free, latch-free structures and use hash indexes for point lookups or nonclustered (range) indexes for ordered scans. DURABILITY = SCHEMA_AND_DATA keeps data across restarts, while SCHEMA_ONLY suits transient data such as session state or staging. In Azure SQL Database, In-Memory OLTP needs the Premium or Business Critical tier. Temporal tables are system-versioned: the engine copies every previous row version to a history table and maintains period columns, so FOR SYSTEM_TIME AS OF, BETWEEN and ALL return earlier states.
External tables read files that stay in Azure Storage, such as Parquet, CSV or Delta, through an external data source and file format (data virtualization), and OPENROWSET offers the same access ad hoc. Ledger tables hash every transaction into a blockchain-like structure whose digests are stored outside the database, so sp_verify_database_ledger can prove that no one, not even an administrator, altered the data; updatable ledger tables keep a history table and append-only ledger tables allow inserts only. Graph tables are node tables (AS NODE) and edge tables (AS EDGE) that model many-to-many relationships for queries with MATCH.