Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query Column Based on another

$
0
0

Have 2 tables that I want to compare and query.

Table A - PMSCHED

Table B - METERRDG

I want to compare the date from A to B's date, if <= then show B.READING

METERRDG has multiple READING values for different dates.  I want to select the most current that is <= to the DATE in PMSCHED.

To be done in Crystal.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>