Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
mike writes "I have a table which keeps count of files that end up in a folder through out the day.I have fields that record the time the files show up with some other information.Here’s my question; I need to wright a query to use in a report that shows a graph. This graph has to show how many files came in the folder in 15 minute intervals. With multiple queries I can get the information however I can’t graph it. So I think I might have to make a temp table and populate that and use that table to graph my results? I just don’t know where to start?Can any help?ThanksMike "
spirit1
Cybernetic Yak Master
11752 Posts
Posted - 2007-02-15 : 10:10:51
you have to create a table of all intervals and then left join to that table.your null rows will be those that have no files in the interval.Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp
SwePeso
Patron Saint of Lost Yaks
30421 Posts
Posted - 2007-02-15 : 10:12:03
Which 15 minute interval do you need?00-1415-2930-4445-59Try this