Note -f shows filesystem type, label, UUID, and mount points. Useful for identifying disks before mounting or partitioning. Linux only; on macOS, use diskutil list.
window_function() OVER (PARTITION BY column ORDER BY column)
example
SELECT
department_id,
first_name,
salary,
ROW_NUMBER() OVER (
PARTITION BY department_id
ORDER BY salary DESC
) AS dept_rank
FROM employees;
output
-- department_id | first_name | salary | dept_rank
-- 1 | Alice | 95000 | 1
-- 1 | Bob | 82000 | 2
-- 2 | Carol | 105000 | 1
-- 2 | Dave | 78000 | 2
Note PARTITION BY divides rows into groups and applies the window function independently within each group. It is like GROUP BY but without collapsing rows. You can partition by multiple columns.