input: Write a python function to execute a database operation for a specific duration.
  assert execute_db_operation_for_duration(10) == "Operation completed within duration"
  assert execute_db_operation_for_duration(5) == "Operation completed within duration"
  assert execute_db_operation_for_duration(15) == "Operation completed within duration"
output: def execute_db_operation_for_duration(duration):
      import time
      
      def database_operation():
          # Simulating a database operation
          time.sleep(duration)
  
      start_time = time.time()
      database_operation()
      end_time = time.time()
  
      elapsed_time = end_time - start_time
  
      if elapsed_time <= duration:
          return "Operation completed within duration"
      else:
          return "Operation exceeded duration"