asked on
ASKER
SELECT pchpuser 'User',
COUNT(*) 'Total Lines Counted by User',
pchdate 'dt'
FROM OPENQUERY (MyData, '
SELECT *
FROM picounthst
WHERE pchloc = 41
AND pchdate = (CURRENT_DATE - 1 DAYS)
')
GROUP BY pchpuser ;
-- The subribed report form SSRS will have the User and count but
-- I also want the date from wne the transaction happenedsomewhere...
-- or atleats the value from the CURRENT_DATE - 1 DAYS
Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.
TRUSTED BY