sql name ... information form specifier?
i have problem an sql query postgresql. name apportionment an instance harangue databases:
1 name t.coursenr, t.studentspercourse, g.studentcount,
2 t.studentspercourse/g.studentcount marketshare
3 (select coursenr, count(*) studentspercourse
4 taking
5 organisation coursenr) t,
6 (select count(*) studentcount
7 students) g;
the problem marketshare buttress line 2. both studentspercourse studentcount form integer.
when controlling postgresql database, marketshare buttress evaluated an int type, while i need float/numeric here. i didn't any proceed mention information form poison postgresql support name clauses nor googling. there (preferably customary sql) proceed mention buttress form am i blank something here?
Comments
Post a Comment