I am currently using Access, but if I migrated to another db I would like to
be able to easily take my queries with me in one big sql statement if
possible. I do know about the SQL View within Access, but I was wondering
for future use and for knowledge if it is possible to have queries within
queries, but only using the sql statement of the queries.
Maybe something like : Select tblOne.ID, [Select Count(tblTwo.SecondaryID)
FROM tblTwo WHERE tblTwo.SecondaryID = tblOne.ID], [Select
Count(tblTwo.AnotherID) FROM tblTwo WHERE tblTwo.SecondaryID = tblOne.ID]
From tblOne.ID
I have no idea how to do this or if it is even possible or if the above is
even correct, so I thought that I would check here. I apologize for not
using the ADO.NET newgroups and I thank you for the responses I have already
received. If anybody could just give me some examples or some hints or
websites to check out I would definitely appreciate the help.
Thanx a lot for your help.
Miha Markic said:
Hi John,
What database are you talking about?
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
John Smith said:
Can you do a Select Statement within a Select Statement? I want to
build
a
query similar to queries built in Access which link to other queries but
using only SQL Statements. Is it possible? If so, how do you do it?
Thanx in adv.