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

Returning all rows from multiple partitions of a partitioned table

$
0
0
I have a table that is partitioned into multiple filegroups and spread out over multiple tables b y month. My partition scheme is using a date column. What I would like to do is something like the following:SELECT a , b , cFROM<table>WHERE date between '2015-08-01' AND SYSDATETIME()I am wondering if there is a way to do it without the need to use a UNION ALL on all the tables. Any advice would be appreciated. Thank you.

Viewing all articles
Browse latest Browse all 3145

Trending Articles