SQL [message #371582] |
Thu, 09 November 2000 12:24 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Anita Deepak
Messages: 2 Registered: November 2000
|
Junior Member |
|
|
Can I get record count of two tables A & B as 2 columns of my SQL Query return. The query should return just 1 row with 2 columns (count from A,Count from B). Also I don't have any condition to join these two tables.
|
|
|
Re: SQL [message #371583 is a reply to message #371582] |
Thu, 09 November 2000 12:41 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
Anita Deepak
Messages: 2 Registered: November 2000
|
Junior Member |
|
|
I found the answer myself before I got any reply over here.
Hope u would enjoy this..
Select (select count(*) from A) CountOfA,
(select count(*) from B) CountOfB
From Dual;
|
|
|