select top 1 where code example
Example 1: select top 1 where
SELECT TOP number|percent column_name(s)
FROM table_name
WHERE condition;
Example 2: select top 1
<option v-for="location in locations" v-bind:value="location.id" v-bind:selected="$index === 0 ? 'selected' : false">
{{ location.from }} - {{ location.to }}
</option>