this is the view creation statement -
create view getfirstscores as
select
year,
category,
min(scoredate),
score
from scores
Thank you,
M. Berlin
You need to group by all columns that are not aggregated.
>>Dynamic SQL Error
SQL error code = -607
Invalid command
must specify column name for view select expression
Statement: create view GetFirstScores as
select
yearcode,
divcode,
min(specdate) as first,
percent
from scores
group by
yearcode,
divcode,
percent
create view getfirstscores (yc,dc,pc) as
select
yearcode,
divcode,
min(specdate),
percent
from scores
group by yearcode, divcode, percent