SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL QUERY REQ
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

harikiranjammul
Starting Member

2 Posts

Posted - 11/28/2011 :  14:35:45  Show Profile  Reply with Quote
I need a small help on SQL query.

I have two tables RESPONSETIME00 & RESPONSETIME02, I need to count the URL’s such that how many times it was requested. I am attaching two tables & the output which I am looking for. Let me know how to get the attached output from the two tables.


Table 1 :


ID1 Node_Name ID4 ID7
10.150.3.1 SERVER5 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER3 [28/Nov/11:23:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:22:09:10 /reuest-transfer
10.150.3.1 SERVER8 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:15:09:10 /i3-soft/com
10.150.3.1 SERVER6 [28/Nov/11:17:09:10 /i3-soft/com
10.150.3.1 SERVER5 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /reuest-transfer
10.150.3.1 SERVER3 [28/Nov/11:23:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /reuest-transfer



Table 2 :


ID1 Node_Name ID4 ID7
10.150.3.1 SERVER1 [28/Nov/11:15:09:10 /i3-soft/com
10.150.3.1 SERVER3 [28/Nov/11:15:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /reuest-transfer
10.150.3.1 SERVER1 [28/Nov/11:22:09:10 /reuest-transfer
10.150.3.1 SERVER4 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:15:09:10 /i3-soft/com
10.150.3.1 SERVER6 [28/Nov/11:17:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /i3-soft/com
10.150.3.1 SERVER3 [28/Nov/11:23:09:10 /i3-soft/com
10.150.3.1 SERVER1 [28/Nov/11:17:09:10 /i3-soft/com


output i am looking for


ID7 Count
/i3-soft/com 16
/reuest-transfer 12

malpashaa
Constraint Violating Yak Guru

Saudi Arabia
257 Posts

Posted - 11/28/2011 :  23:08:34  Show Profile  Reply with Quote
Duplicate post

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=168457



For us, there is only the trying. The rest is not our business. ~T.S. Eliot

Muhammad Al Pasha
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000