Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

sql join query with between oepator

$
0
0

Hi,

I have 2 tables

Table1 contains Week , Week end date columns

Week    Week end date

W01     2015-01-02

W02     2015-01-09

W03     2015-01-16

Table2 contains IDdate column and date columns contains all the dates

ID     date column

01     2015-01-02

02      2015-01-03

03       2015-01-04

04       2015-01-05

05       2015-01-09

I want to select all the rows from Table2 and Week column from Table1. when I made the join condition I am getting only week end date records from Table2 . how can I select other date records?

please advice me

thanks ,


Raja


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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