﻿CREATE PROCEDURE [session].[ReadAllSessionsMetadata]
AS

SET NOCOUNT ON;

SELECT
	[Name],
	CASE Player2Id
		WHEN NULL THEN 1
		ELSE 2 
	END AS PlayerCount
FROM [session].[Session];
