English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-07-31 07:06:35 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

I want to do a further selection from the result that i go from a pervious SELECT statement.

2006-07-31 07:12:27 · update #1

5 answers

The following example works for me with Nwind.mdb and Access 2000 (and an Oracle-like syntax):

SELECT *
FROM
(SELECT * FROM Customers where country = 'Germany') t1
WHERE t1.city='Berlin';

Access saves this as:

SELECT *
FROM [SELECT * FROM Customers where country = 'Germany']. AS t1
WHERE t1.city='Berlin';

2006-07-31 10:39:47 · answer #1 · answered by Darth Vader 4 · 0 0

What do you mean select from a select statement?

2006-07-31 07:10:53 · answer #2 · answered by John J 6 · 0 0

Your records format is incorrect. you'll under no circumstances get better complicated queries to artwork. you choose to set up a table youthful little ones(id int() auto_increment, call varchar() ); the accepted secret's the id. then you somewhat choose a table for beverages with an id. then you somewhat can link the guidelines making use of a table with the drink id and the little ones id. this way that is likewise conceivable to have youthful little ones liking better than one drink, and also you merely choose to position in writing queries making use of joins to get better records.

2016-11-27 01:28:40 · answer #3 · answered by xaviera 4 · 0 0

Do you mean a sub-select or criteria?

Criteria:
SELECT title FROM books WHERE author_id = 'Geisel'

SubSelect:
SELECT title FROM books
WHERE author_id = (SELECT id FROM authors
WHERE last_name='Geisel'
AND first_name='Theodor Seuss')

Good Luck!

2006-07-31 07:12:53 · answer #4 · answered by Special Ed 5 · 0 0

it depends on what the hell 'sql' is...

2006-07-31 07:08:32 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers