﻿CREATE PROCEDURE [session].[ReadAllSessionsMetadata]
AS

SET NOCOUNT ON;

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