SET NOCOUNT ON

DECLARE @cnt INT
SELECT @cnt = COUNT(*) 
FROM AmountInterval WITH (NOLOCK)

IF ISNULL(@cnt, 0) = 0
BEGIN
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (0, 399, 1)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (400, 459, 2)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (450, 499, 3)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (500, 549, 4)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (550, 599, 5)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (600, 649, 6)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (650, 999, 7)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1000, 1099, 8)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1100, 1199, 9)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1200, 1299, 10)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1300, 1399, 11)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1400, 1599, 12)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1600, 1799, 13)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (1800, 1999, 14)
  INSERT INTO AmountInterval (FromAmount, ToAmount, SortNumber) VALUES (2000, 999999, 15)
END