MiniCTRMSearch

MiniCTRM - Tutorial: NatGas deals in SQL - Natural Gas

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

  • The map – The gas tables on the Data Model diagram, and the five Transco deals.
  • A physical deal – Its physical and financial sides, and the pipeline, zone and location it delivers at.
  • Multi-leg deals – More sides on the same trade type, legs with their own dates, and how SQL tells the two apart.
  • Storage and transportation – A contract's header, MDIQ and MDWQ, a transport pair and its fuel, and the transaction types.
  • Traded volume – The ledger beside the profile, its runs of days, and a day typed by hand.
  • Misc. and available – A misc. reduction, what is left to nominate, and the ticket's Daily Volumes tab.
  • The mistakes – A total counted three times, and the checklist before you trust a gas query.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

NatGas deals in SQL

1 / 27
NatGas deals in SQL
Welcome

Most of it is worked out for you

2 / 27
Most of it is worked out for you
The map

The gas tables on the map

3 / 27
The gas tables on the map
The map

Five deals on Transco

4 / 27
Five deals on Transco
A physical deal

A physical deal has two sides

5 / 27
A physical deal has two sides
A physical deal

Where the gas is

6 / 27
Where the gas is
A physical deal

Pipeline, zone and location

7 / 27
Pipeline, zone and location
A physical deal

The same row on the ticket

8 / 27
The same row on the ticket
Multi-leg deals

A multi-leg deal

9 / 27
A multi-leg deal
Multi-leg deals

Classic or multi-leg

10 / 27
Classic or multi-leg
Multi-leg deals

The legs on the ticket

11 / 27
The legs on the ticket
Storage and transportation

A contract's header

12 / 27
A contract's header
Storage and transportation

Storage: inject and withdraw

13 / 27
Storage: inject and withdraw
Storage and transportation

Transportation: a pair and its fuel

14 / 27
Transportation: a pair and its fuel
Storage and transportation

A many-to-many table

15 / 27
A many-to-many table
Storage and transportation

The contract on its ticket

16 / 27
The contract on its ticket
Traded volume

The traded-volume ledger

17 / 27
The traded-volume ledger
Traded volume

Traded beside the profile

18 / 27
Traded beside the profile
Traded volume

Traded, range by range

19 / 27
Traded, range by range
Traded volume

A day typed by hand

20 / 27
A day typed by hand
Misc. and available

A misc. reduction

21 / 27
A misc. reduction
Misc. and available

What is left to nominate

22 / 27
What is left to nominate
Misc. and available

Available, range by range

23 / 27
Available, range by range
Misc. and available

The same days on the ticket

24 / 27
The same days on the ticket
The mistakes

A total counted three times

25 / 27
A total counted three times
The mistakes

Before you trust a gas query

26 / 27
Before you trust a gas query
What next

Where to go from here

27 / 27
Where to go from here

You have finished lesson 411, NatGas deals in SQL.

Where next?

← → move · N notes · Home / End