SQL query for report

Need new test, action, option? Post request here.
Post Reply
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

SQL query for report

Post by violant »

Please help with SQL query for report.
SLA Measurement. I want to get in result table this row:
1)testname
2)test folder
3)start datetime
4)end datetime
5)difference
6)from status
7)to status
8)translated (UP or DOWN)
sort by testname.

No metter which timeperiod. Thats I create myself. In DB I write standart row:
1)testname
2)status
3)eventtime
4)reply
5)eventid
6)folder

I SEE THIS REPORT IN http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4078. it name SLA Measurement
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

As I understand single SQL query cannot generate such reports.
You need set of tables and some scripts (stored procedures) to generate such reports.

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

How I now in MSSQL I can use construction like this SELECT(SELECT(SELECT())). So it doesnt matter how to do this (maybe temp tables+procedure).
I think it very helpful report so we need to write this SQL report and publish it in Library.
To ALL: IF you now how to do this answer.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Well, if we implement new type of report, it will be implemented as HostMonitor code so it will work regardless of your type of log file and type of SQL server.

Regards
Alex
Post Reply