Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL semantics

Status
Not open for further replies.

Kalin

Programmer
Jul 24, 2001
76
NL
Does anybody know is the following is possible in Access ??
If so what is the correct syntax ??

SELECT column FROM (SELECT column FROM table) AS alias;

 
No. But you can create a query with an SQL statement and base another query off of that. It's like querying a view in SQL server.
 

Actually, you can use syntax similar to that which you describe - at least in Access 2000. I'll check Access 97 when I get to work.

I just created this query and ran it in Access 2000.

SELECT a.Dept
FROM [SELECT *
FROM Depts]. AS a;

I typed the query in with () and Access chenged them to [] and added the period. Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top