Compare two tables and retreive relevant rows from one table based on the other.
I have 2 tables. Table 1: Timestamp (in 15 minute intervals),i1,i2,i3,p1,p2,p3,p4,.... (182 columns) Table 2: Year, Month, Date, StartTime, EndTime ( StartTime and EndTime is in the format- h...