I need to create an Oracle 11g SQL report showing daily productivity: how many units were shipped during a 24 hour period. Each period starts at 6am and finishes at 5:59am the next day.
How could I group the results in such a way as to display this 24 hour period? I've tried grouping by day, but...
I need to create an Oracle 11g SQL report showing daily productivity: how many units were shipped during a 24 hour period. Each period starts at 6am and finishes at 5:59am the next day.
How could I group the results in such a way as to display this 24 hour period? I've tried grouping by day, but...
@FreshPrinceOfSO i was just going to say ... i hope that baxter HQ is not rolling out product based on a mysql database ... i'd wretch in my chair if you did work for them
When you take the backup of database, the last LSN on the source will be X. If any activity will occur (including, say, an automated checkpoint), the source LSN will progress forward to X+n. If there is any activity that occurred on the source and was not captured on in the backup it would leave ...
declare c CURSOR fast_forward read_only FOR
select t.name
from sys.tables t;
declare @sql varchar(4000);
declare @tablename varchar(50);
OPEN c
FETCH NEXT FROM c
INTO @tablename
WHILE @@FETCH_STATUS = 0
BEGIN
set @sql = 'SELECT ''' + @tablename + ''' , rows = count(*) from ' + @tablename
execute(@sql);
FETCH NEXT FROM c
INTO @tablename
END
CLOSE c
DEALLOCATE c
@MarkStorey-Smith do you see my predicament :) ... it's more conclusive to put it in read_only and back the thing up ... but they think that the rowcounts mean something ... nevermind that the row data could have changed entirely :S
@MarkStorey-Smith well thanks. i'm including documentation and screenshots of the sequence of events (with read_only), but i'll give them the precious row counts just to satisfy the bean counters