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

Get LastOrderDate from each Table

$
0
0
Hi,
i want to write the max(Orderdate) from all Tables in DB into a #TempTable.
How can i realise this in a easy way ? (All Tables in the DB have 1 Col. with Orderdate).

CREATE TABLE #TempTbl(
    [tblName] [nvarch

Viewing all articles
Browse latest Browse all 3145

Trending Articles