Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Pulling from two tables when data does not exist in both

$
0
0
I'm trying to pull sales for current year and last year for a list of customers. Sales are coming from 2 tables and the key is the customer ID. However the customer may not have data for both years so the ID may not exist in both tables. I could use a FUL

Viewing all articles
Browse latest Browse all 3145

Trending Articles