input: Write a python function to scrape data from an online store and store it in an SQLite database.
  assert scrape_store("http://example.com/api/products") == "Data stored successfully"
  assert scrape_store("http://example.com/api/empty") == "No data to store"
  assert scrape_store("http://example.com/api/error") == "Failed to retrieve data"
output: def scrape_store(url):
      import requests
      import sqlite3
  
      # Fetch data from the given URL
      response = requests.get(url)
      
      if response.status_code != 200:
          return "Failed to retrieve data"
      
      data = response.json()
      
      if not data:
          return "No data to store"
      
      # Connect to SQLite database
      conn = sqlite3.connect('store_data.db')
      cursor = conn.cursor()
      
      # Create table if it doesn't exist
      cursor.execute('''
          CREATE TABLE IF NOT EXISTS products (
              id INTEGER PRIMARY KEY,
              name TEXT,
              price REAL,
              stock INTEGER
          )
      ''')
      
      # Insert data into the table
      for item in data:
          cursor.execute('''
              INSERT INTO products (id, name, price, stock)
              VALUES (?, ?, ?, ?)
          ''', (item['id'], item['name'], item['price'], item['stock']))
      
      conn.commit()
      conn.close()
      
      return "Data stored successfully"