Microsoft
Software
Hardware
Network
Question : Nested sql queries insetead of myltiple queries
I have 2 tables:
Table 1 (persons) has 2 fields id_p and name
Table 2 (Books) has 3 fields id_b, person_id,tittle
What I do now is:
select persons.name,books.title into temp from books,persons where
persons.id_p=books.person
Then
Select name,count(*) from temp group by name
The result is a table of all the persons (one row for each) and the nimber of books they have
I need to combine the 2 into one
select * from (select...)
Answer : Nested sql queries insetead of myltiple queries
select persons.name,books.title, (select count(*) from books where persons.id_p=books.person)
from persons
Random Solutions
Sharepoint 2010 and default IIS
How to ensure only one user at a time uses the MS access application?
Remove Webroot Spy Sweeper 3.1
Cannot boot into Windows 7 partition (Blinking cursor) after using Acronis Disk Director resize
VMware, vSphere Virtual Machine and Disk Errors "invalid disk type 7" and "cannot detect guest operating system type"
Design issue - not enough room on screen.Subforms/Pop ups/Tabs
namespace question
How to map external ip to internal subnet on a Cisco ASA
Ruby script failing: (NoMethodError)
Powershell, get-qadcompter