SQL First Quize

Embed Size (px)

Citation preview

  • 8/14/2019 SQL First Quize

    1/3

    D

    Sub

    Sub

    Reg.

    Univ

    TABASE SYSTEMS

    Quiz Assignment

    SQL

    itted To: Prof. Shoaib Farooq

    itted By: Farhan Saleem

    No : L1F07BSCS2007

    rsity of Central Punjab

  • 8/14/2019 SQL First Quize

    2/3

  • 8/14/2019 SQL First Quize

    3/3

    select sname from supplier,catalog where cost in (selectmax(cost) from catalog group by pid);

    7. Find the sids of suppliers who supply only red parts.select sid from supplier s, parts p, catalog c where s.sid=c.sidand c.pid=p.pid and p.color = 'red';