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

First and Last data

$
0
0
from the below table I need the Last_data and last_data from 6 month. with different DB_nameso my output would look like :DB_name backup_start Backup_finishStock_any 8/1/2016 8/1/2016Stock_any 1/1/2017 1/1/2017Bond 8/1/2016 8/1/2016Bond 1/1/2017 1/1/2017DB name backup Start Backup FinishStock_Any 5/1/2016 5/1/2016Stock_Any 6/1/2016 6/1/2016Stock_Any 7/1/2016 7/1/2016Stock_Any 8/1/2016 8/1/2016Stock_Any 9/1/2016 9/1/2016Stock_Any 10/1/2016 10/1/2016Stock_Any 11/1/2016 11/1/2016Stock_Any 12/1/2016 12/1/2016Stock_Any 1/1/2017 1/1/2017bond 5/1/2016 5/1/2016bond 6/1/2016 6/1/2016bond 7/1/2016 7/1/2016bond 8/1/2016 8/1/2016bond 9/1/2016 9/1/2016bond 10/1/2016 10/1/2016bond 11/1/2016 11/1/2016bond 12/1/2016 12/1/2016bond 1/1/2017 1/1/2017

Viewing all articles
Browse latest Browse all 3145

Trending Articles