SQL - JOIN básico

El objetivo del artículo es mostrar básicamente como funciona la sentencia SQL JOIN que a veces cuesta entenderla.

La sentencia SQL JOIN se utiliza para relacionar varias tablas, veremos algunos ejemplos básicos de distintos tipos de JOIN.

Primero creamos dos tablas para las pruebas

Tabla clientes:

mysql> select * from clientes;
+------+--------+----------+
| cid  | nombre | telefono |
+------+--------+----------+
|    1 | jose   | 111      |
|    2 | maria  | 222      |
|    3 | manuel | 333      |
|    4 | jesus  | 4444     |
+------+--------+----------+
4 rows in set (0.00 sec)

Tabla acciones:

mysql> select * from acciones;
+-----+-----+--------+----------+
| aid | cid | accion | cantidad |
+-----+-----+--------+----------+
| 1 | 2 | REDHAT | 10 |
| 2 | 4 | NOVELL | 20 |
| 3 | 4 | SUN | 30 |
| 4 | 5 | FORD | 100 |
+-----+-----+--------+----------+

A "Quick" Sermon for Beginners

Encontre estos puntos en un blog sobre Drupal, me parecio muy acertado, por eso me gustaría compartilo con ustedes

Esta en ingles, pero en otro momento los voy a traducir.

------------------------

1. You must be motivated to learn by a passion, a dream, or a need to escape a present reality. Without that, you are unlikely to have the patience, and dillegence that is required to finally be able to "play for enjoyment".

2. When you first start, its going to suck: its going to be both boring, and confusing. Can you endure the unpleasent experience of watching yourself suck, while both confused and bored?

3. There are no shortcuts, YOU MUST LEARN THE FOUNDATIONS. Anything you perceive as a shortcut is going to cost you more time in the future, than just learning it the right way now.

4. The single biggest barrier between your present reality, and your future goal is practice, practice, practice.

Blogs en esDebian

Estimado usuario,

Estamos incorporando la funcionalidad de blogs a esDebian.

El objetivo es que todos los usuarios que participan frecuentemente en nuestra comunidad puedan tener su blog aquí.

Recién comenzamos la etapa de prueba y por el momento solo dispondrán de blog los colaboradores, moderadores y administradores de la comunidad.

Pero en la medida que las pruebas sean favorables, comenzaremos a habilitar los blogs a los demás usuarios para cumplir nuestro objetivo. Por favor tengan un poco de paciencia.

Aprovecho la oportunidad para agradecer tu participación y saludarlo muy atentamente.

Distribuir contenido