11.07.2015 Views

Capitolul IV Limbajul PL/SQL

Capitolul IV Limbajul PL/SQL

Capitolul IV Limbajul PL/SQL

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.

82• Să se afişeze toŃi câinii dintr-o Ńară (de ex. Germania), indiferent de rasă.select "CAINE"."RASA" as "RASA","TARI"."TARA" as "TARA"from "TARI" "TARI","CAINE" "CAINE"where "TARI"."TARA" ='Germania'and "CAINE"."COD_TARA" =tari.cod_tararezultatul:• Să se afişeze toŃi câinii de talie medie dintr-o Ńară.select "CAINE"."RASA" as "RASA","TARI"."TARA" as "TARA","TALIE"."TALIE" as "TALIE"from "CAINE" "CAINE","TALIE" "TALIE","TARI" "TARI"where "TARI"."TARA" ='Germania'and "TALIE"."TALIE" ='medie'and "CAINE"."COD_TALIE" =talie.cod_talieand "CAINE"."COD_TARA" =TARI.COD_TARAorder by CAINE.RASA ASCrezultatul:• Să se afişeze toŃi câinii utilitari, indiferent de Ńară sau talie.selectfrom"CAINE"."RASA" as "RASA","SCOP"."SCOP" as "SCOP","TALIE"."TALIE" as "TALIE","TARI"."TARA" as "TARA""TARI" "TARI","TALIE" "TALIE",

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

Saved successfully!

Ooh no, something went wrong!