Miguelowski Posted January 30, 2017 at 10:34 PM Report Share #602222 Posted January 30, 2017 at 10:34 PM (edited) http://gyazo.com/9bc112ed51c92e97e232c9b32eb3e3c1 https://gyazo.com/1374dd37b97b7f50887aa1ad787cba03 1.1.1 Select * from peixe 1.1.2 Select avg(peso) from peixe 1.1.3 Select count(n.codespecie) as Quantidade From peixe p inner join Especie n on p.Peixe=n.nome where n.nome = 'carapau de corrida' 1.1.5 Select * From especies n inner join peixe p on n.codespecie= p.codpeixe inner join Ecossistemas e on p.codpeixe=e.nome where e.nome ='Rio Douro' Alguém me pode dizer se estão resolvidos corretamente estas 4? E como ficaria a 1.1.4? Edited January 31, 2017 at 11:48 AM by Miguelowski Link to comment Share on other sites More sharing options...
M6 Posted January 30, 2017 at 10:42 PM Report Share #602224 Posted January 30, 2017 at 10:42 PM A 1.1.4 tens de fazer um count com group by. 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to comment Share on other sites More sharing options...
Miguelowski Posted January 30, 2017 at 11:01 PM Author Report Share #602225 Posted January 30, 2017 at 11:01 PM (edited) select count(n.codpeixe) as Quantidade from p.peixe inner join especie e on p.peixe=e.nome group by nome ficaria assim a 1.1.4? e as outras estão corretas? Edited January 30, 2017 at 11:01 PM by Miguelowski Link to comment Share on other sites More sharing options...
M6 Posted January 31, 2017 at 09:43 AM Report Share #602228 Posted January 31, 2017 at 09:43 AM As outras parecem-me corretas, a 1.1.4 tens de meter o nome na cláusula select 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to comment Share on other sites More sharing options...
HappyHippyHippo Posted January 31, 2017 at 10:11 AM Report Share #602230 Posted January 31, 2017 at 10:11 AM eu não vejo as imagens. é ai que tens o enunciado ? IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now