473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Query to count the rows count of one column in two tables

I need a 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.
Nov 28 '11 #1
3 2365
Rabbit
12,516 Expert Mod 8TB
There's nothing attached.
Nov 28 '11 #2
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
Nov 28 '11 #3
Rabbit
12,516 Expert Mod 8TB
Union the tables and then do a count grouping the ID7 field.
Nov 28 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Good Man | last post by:
Hi there I'm in the planning stages of creating a database, and I have two options here. Which makes more sense, and/or provides better performance for queries - a single table with hundreds of...
8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
3
by: John Pether (john | last post by:
I have the following code which loads a dataset into a datagrid: <code> ' Obtain Link information from Links table ' and bind to the datagrid control Dim links As New DNSite.LinksIndexDB() '...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
5
by: stevepl7 | last post by:
I want to make the rows become column headings in an Access table or query. The data changes based on input to a form. It looks like this: A B N1 1 N2 2 N3 3 N4 4 Where A and...
1
by: yogeshtiwarijbp | last post by:
how to write stringname or row name instead of in Tables.Rows.Count
2
by: leegold58 | last post by:
Newbie question must of been asked before but: How do I count the number of tables in a database? Without VB, prefer to use SQL or the Access GUI somehow. Thanks. Lee g.
7
by: kunku | last post by:
Hi, I am using a query "Select SUM(Amount) from tblAccount where TransactionID=' "+textBox1.Text+" ' "; in my C# project this query return dataset.Tables.Rows.Count =1 eventhough there...
1
by: kummu4help | last post by:
hi, i am using mysql. i have 3 tables with following structures. these are not actual tables i am working on. table A id varchar(16),name varchar(255),InDate datetime table B id...
2
EntryTeam
by: EntryTeam | last post by:
Count is about 67k, while phisycally there are only 2 records returned by query. What's going on? The cycle keeps returning those two records until exception or change in cycle condition. for...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.