Dipesh Surana
Dipesh Surana

Reputation: 93

SQL Server query joins with dates

I am trying to join two tables using Dates but I want the join to be:

table1.date = (table2.date + 1)

Is this possible?

Upvotes: 0

Views: 62

Answers (1)

Chanukya
Chanukya

Reputation: 5893

USE DATEADD FUNCTION

on table1.date = dateadd(dd,1,table2.date)

Upvotes: 3

Related Questions