31.07.2013 Views

Relational Model Introduction - E-Courses

Relational Model Introduction - E-Courses

Relational Model Introduction - E-Courses

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.

Example Queries<br />

Retrieve the list of female PhD students<br />

σ degree = ‘phD’ ^ sex = ‘F’ (student)<br />

Obtain the name and rollNo of all female Btech students<br />

π rollNo, name (σ degree = ‘BTech’ ^ sex = ‘F’ (student))<br />

Obtain the rollNo of students who never obtained an ‘E’ grade<br />

π rollNo (student) – π rollNo (σ grade = ‘E’ (enrollment))<br />

Prof P Sreenivasa Kumar<br />

Department of CS&E, IITM<br />

40

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

Saved successfully!

Ooh no, something went wrong!