Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

TSQL Help

$
0
0

I need to write TSQL which gives the Result as below from Table A and Table B. Any help would be appreciated.

Table A :

LogId LogDate         NumberOfRecords
1       1/1/2013       1000
1       1/5/2013       0
1      1/7/2013       10000

Table B :

LogId LogDate
1 1/1/2013
1 1/2/2013
1 1/3/2013
1 1/4/2013
1 1/5/2013
1 1/6/2013
1 1/7/2013
1 1/8/2013

Result:

LogIdLogIdNumberOfRecords
11/1/20131000
11/2/20131000
11/3/20131000
11/4/20131000
11/5/20130
11/6/20130
11/7/201310000
11/8/201310000

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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