DB2 SQL Questions and Answers

Recent IT Questions

1 - 2 of 2
<<PREVIOUS 1 NEXT>>

DB2 SQL Confusion

I am failing to understand why the following won't work SELECT m.index, SUM(d1.amt), SUM(d2.amt) FROM master m, detail d1, detail d2 WHERE m.index = d1.index AND m.index = d2.index AND d2.qalif = 1 GROUP BY m.index I wrote another sql that does work, I just don't...

View Answer   |  Jan 9 2009  4:46 PM GMT
DB2 SQL, SQL, DB2
asked by ThorButtox

  5 pts.

SQL Table Join when the name of a column in Table1 equals the value of a column in Table2

Does anyone know how to write the SQL to join two DB2 tables when the name of Table1.columnA equals the data values stored in Table2.columnB? In the table structure examples listed below, I'm trying to figure out how to join Table1 and Table2 when the values in Table2.Tag_Name are equal to the...

View Answer   |  Dec 4 2008  8:13 AM GMT
SQL, JOIN statement, Conditional statements
asked by Bchat

  5 pts.

1 - 2 of 2
<<PREVIOUS 1 NEXT>>