<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Q._Inner_Joins_III_i_IV</id>
	<title>Q. Inner Joins III i IV - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Q._Inner_Joins_III_i_IV"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Q._Inner_Joins_III_i_IV&amp;action=history"/>
	<updated>2026-08-30T04:21:36Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Q._Inner_Joins_III_i_IV&amp;diff=298093&amp;oldid=prev</id>
		<title>Joan: /* Tasques */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Q._Inner_Joins_III_i_IV&amp;diff=298093&amp;oldid=prev"/>
		<updated>2021-11-30T18:03:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tasques&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 18:03, 30 nov 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Línia 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Tasques=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Tasques=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Seguim practicant INNER JOINS:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Seguim practicant INNER JOINS:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*INNER JOINS III (base de dades ''vestuari'')&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;INNER JOINS III&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;(base de dades ''vestuari'')&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*INNER JOINS IV (base de dades de ''langtrainer'')&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;INNER JOINS IV&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;(base de dades de ''langtrainer'')&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Pots repetir la tasca tantes vegades com calgui. Pots cercar el 10 (totes bé), però no és estrictament necessari que tot estigui bé per poder enviar el teu informe al Classroom.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Pots repetir la tasca tantes vegades com calgui. Pots cercar el 10 (totes bé), però no és estrictament necessari que tot estigui bé per poder enviar el teu informe al Classroom.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Línia 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ORDER BY id_loc&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ORDER BY id_loc&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Entrega=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Entrega=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Entregaràs al classroom els dos pdf de l'informe, que són l'evidència de què has realitzat la tasca. A més, el professor pot consultar el número d'intents que has realitzat.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Entregaràs al classroom els dos pdf de l'informe, que són l'evidència de què has realitzat la tasca. A més, el professor pot consultar el número d'intents que has realitzat.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Q._Inner_Joins_III_i_IV&amp;diff=298092&amp;oldid=prev</id>
		<title>Joan: Es crea la pàgina amb «=Introducció= *http://bdquest.joanillo.org  =Tasques= Seguim practicant INNER JOINS: *INNER JOINS III (base de dades ''vestuari'') *INNER JOINS IV (base de dades de '...».</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Q._Inner_Joins_III_i_IV&amp;diff=298092&amp;oldid=prev"/>
		<updated>2021-11-30T18:02:11Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «=Introducció= *http://bdquest.joanillo.org  =Tasques= Seguim practicant INNER JOINS: *INNER JOINS III (base de dades &amp;#039;&amp;#039;vestuari&amp;#039;&amp;#039;) *INNER JOINS IV (base de dades de &amp;#039;...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introducció=&lt;br /&gt;
*http://bdquest.joanillo.org&lt;br /&gt;
&lt;br /&gt;
=Tasques=&lt;br /&gt;
Seguim practicant INNER JOINS:&lt;br /&gt;
*INNER JOINS III (base de dades ''vestuari'')&lt;br /&gt;
*INNER JOINS IV (base de dades de ''langtrainer'')&lt;br /&gt;
&lt;br /&gt;
*Pots repetir la tasca tantes vegades com calgui. Pots cercar el 10 (totes bé), però no és estrictament necessari que tot estigui bé per poder enviar el teu informe al Classroom.&lt;br /&gt;
*Si un qüestionari es queda a mitges (tanques l'ordinador, per exemple), s'ha de tornar a iniciar el test (no funciona com els qüestionaris de Moodle). No pateixis, pots fer els qüestionaris tantes vegades com vulguis.&lt;br /&gt;
==SQL ANSI-92 vs ANSI-89==&lt;br /&gt;
*https://stackoverflow.com/questions/334201/why-isnt-sql-ansi-92-standard-better-adopted-over-ansi-89&lt;br /&gt;
Hem discutit a classe que fer ''inner joins'' és millor que fer el filtratge implícit. Et torno a posar les dues maneres de fer:&lt;br /&gt;
&lt;br /&gt;
SQL ANSI-89&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select a.id, b.id, b.address_1&lt;br /&gt;
from person a, address b&lt;br /&gt;
where a.id = b.id&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
SQL ANSI-92&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select a.id, b.id, b.address_1&lt;br /&gt;
from person a&lt;br /&gt;
inner join address b&lt;br /&gt;
on a.id = b.id&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==INNER JOIN amb USING==&lt;br /&gt;
Fixa't bé amb aquesta opció dels ''INNER JOINS''. Quan els dos camps en les dues taules tenen el mateix nom, pots utilitzar ''USING'' en comptes de ON, i la sintaxi queda molt simplificada:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT id_loc, vestuari, pers rol FROM OBRA o&lt;br /&gt;
INNER JOIN PERSONATGE p USING(id_obra)&lt;br /&gt;
INNER JOIN VEST_PERS USING(id_pers)&lt;br /&gt;
INNER JOIN VESTUARI v USING(ref)&lt;br /&gt;
WHERE obra='La Caputxeta Vermella 2021'&lt;br /&gt;
ORDER BY id_loc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=Entrega=&lt;br /&gt;
Entregaràs al classroom els dos pdf de l'informe, que són l'evidència de què has realitzat la tasca. A més, el professor pot consultar el número d'intents que has realitzat.&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>