I have a query wich goes some thing like this...
select count(a.dept),count(a.emp) from ((select Distinct 1,2,3 from (select 1,2,3,4,5 from dept) as a) as b;
1,2,3,4,5 are columns...
When I run this query,it is giving me the error,table/view/procedure a does not exits...
I there any wrong in...
I have a query wich goes some thing like this...
select a.dept,a.emp from ((select Distinct 1,2,3 from (select 1,2,3,4,5 from dept) as a) as b;
1,2,3,4,5 are columns...
When I run this query,it is giving me the error,table/view/procedure a does not exits...
I there any wrong in my query or...
Thank you for the reply....
What I wanted is not the relation between the two.I want to validate separatly both the values but should come in one SELECT STATEMENT...
......
THIS IS A SAMPLE QUERY BUT MY QUERY LOoKS ALMOST THE SAME...I am getting the 2646 no more spool error..can any one advice me onit
select CASE
WHEN EMPCD='12' THEN 'SAMPLE'
WHEN EMPCD='13' THEN 'SAMPLE1'
END AS TEST1,
CASE
WHEN DEPTCD='12' THEN 'SAMPLE'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.