02.08.2013 Views

Räkneövning 2 i Databaser modellsvar vecka 6, 2012

Räkneövning 2 i Databaser modellsvar vecka 6, 2012

Räkneövning 2 i Databaser modellsvar vecka 6, 2012

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

eller<br />

f) Hur många Comp. Sci. studenter finns det i student ?<br />

Gcount()(dept_name = 'Comp. Sci.' (student))<br />

4<br />

antal (dept_name = 'Comp. Sci.' (dept_nameGcount() as antal (student)))<br />

dept_name antal<br />

Comp. Sci. 4 antal<br />

History 1 4<br />

Finance 1<br />

Physics 3<br />

Music 1<br />

Elec. Eng. 2<br />

Biology 1<br />

g) Hur många studiepoäng (credits) får den som tar alla de kurser som ges<br />

av institutionen Comp. Sci.?<br />

Gsum(credits)(dept_name = 'Comp. Sci.' (course))<br />

course_id title dept_name credits<br />

CS­101 Intro. to Computer Science Comp. Sci. 4<br />

CS­190 Game Design Comp. Sci. 4<br />

CS­315 Robotics Comp. Sci. 3<br />

CS­319 Image Processing Comp. Sci. 3<br />

CS­347 Database System Concepts Comp. Sci. 3 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!