Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sql help on query

1 view
Skip to first unread message

Luca Casali

unread,
Feb 10, 2014, 4:34:52 AM2/10/14
to
hello, my name is Luce and I have a problem, I can not perform this query, someone can 'help me?

I have three tables:

1) materie (the key: id_materia)

id_materia materia
1 italiano
2 matematica
14 tedesco
4 geografia
5 inglese
6 francese
7 geometria
8 aritmetica
9 tecnica
---------------------------------------------------------

2) assegaValutPagella (the key: id_studente, id_materia)

id_studente id_materia votoPagella
3 1 6
2 8 7
2 1 9
2 7 7
-----------------------------------------------------------

3) AssegnaGiudizio (the key: id_studente, id_materia)

id_studente id_materia valutazione
3 1 bravo pirla
207 1 salame
3 8 -
2 8 bravo figliolo
2 1 sei il numero uno
------------------------------------------------------------

the result should be available for this:

id_sudente id_materia votopagella valutazione
3 1 - italiano 6 bravo pirla
2 8 - aritmetica 7 bravo figliolo
2 1 - italiano 9 sei il numero uno
2 7 - geometria 7
3 8 - aritmetica -
207 1 - italiano salame
=======================================================================

thans
0 new messages