I have two tables, stores and states, and I need (COUNT(*) of stores) / (COUNT(*) of states)
CREATE TABLE [dbo].stores
(
[StoreID] [int] IDENTITY(1,1) NOT NULL,
[Store] [nchar](200) NOT NULL,
[StateID] [int] NOT NULL
)
CREATE TABLE [dbo].states
(
StateID [int] IDENTITY(1,1) NOT NULL,
State [nchar](200) NOT NULL,
)