Form a inline view based on the results of the previous query?


Posted on 16th Feb 2014 07:03 pm by admin

Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

Ex:
Did you know?Explore Trending and Topic pages for more stories like this.
select employees.emp_no,
employees.ename,
departments.dept_no
from
(select dept_no from dept) departments,
(select emp_no, ename from emp) employees
where employees.dept_no = departments.dept_no

In the above example, first the compiler forms 2 inline views employees and departments and then joins these 2 in the where clause.

But can we form the "employees" inline view to have only those rows based on the results of "departments" query.

Thanks
No comments posted yet

Your Answer:

Login to answer
209 Like 16 Dislike
Previous forums Next forums
Other forums

php require help needed
Ok i tried to use the search funtion but the word require is everywhere.

i'm really new to cr

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

=> and <=
So I was digging through some code when I came across the <= operator. This is the first tim

Question about the upload of large files
Hi there,

I have a question about the upload of large files, like videos (files generally abo

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

* Gridview and Detailsview in UpdatePanel, insert mode problem
I have a GridView and DetailsView working together. When a record from Gridview is selected, Detail

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

BI in Upstream Production operations
Appreciate if you can assist in the following areas:
1) Examples of life before and after BI i

ldap connection
We are using ldap to get user information from the domain controller. It was working before. Recentl

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash