locked
Estoy tratando de relacionar dos campos de diferentes tablas respectivamente RRS feed

  • Pregunta

  • Quiero relacionar datos de una tabla a otra que tiene valores fijos y no se como hhacerlo he estamo mirando join pero no me sale algun ayuda
    jueves, 15 de febrero de 2018 15:35

Respuestas

  • Aparte te recomiendo la lectura de un libro de vital importancia si estas comenzando en TSQL.

    https://blogs.msdn.microsoft.com/microsoft_press/2016/08/08/new-book-t-sql-fundamentals-third-edition/


    "Oh, the wind, the wind is blowing,through the graves the wind is blowing,Freedom soon will come; then well come from the shadows".The Partisan(Leonard Cohen) Email: me[at]geohernandez.net Blog:www.geohernandez.net

    jueves, 15 de febrero de 2018 15:46

Todas las respuestas

  • Debe realizar un INNER JOIN entre las tablas involucradas, asumo que estan en la misma Base de Datos, algo como
    SELECT * FROM TablaA INNER JOIN TablaB ON TablaA.Columna1=TablaB.Columna1


    "Oh, the wind, the wind is blowing,through the graves the wind is blowing,Freedom soon will come; then well come from the shadows".The Partisan(Leonard Cohen) Email: me[at]geohernandez.net Blog:www.geohernandez.net

    jueves, 15 de febrero de 2018 15:45
  • para poder relacionar dos tablas estas tienen que tener entre si al menos un campo en común

    Att. Franklin Andino

    jueves, 15 de febrero de 2018 15:46
  • Aparte te recomiendo la lectura de un libro de vital importancia si estas comenzando en TSQL.

    https://blogs.msdn.microsoft.com/microsoft_press/2016/08/08/new-book-t-sql-fundamentals-third-edition/


    "Oh, the wind, the wind is blowing,through the graves the wind is blowing,Freedom soon will come; then well come from the shadows".The Partisan(Leonard Cohen) Email: me[at]geohernandez.net Blog:www.geohernandez.net

    jueves, 15 de febrero de 2018 15:46