ERROR: view named #nic does not exist