How can we acheive correlated sub-query in designer?can anyone help me in this regard?



How can we acheive correlated sub-query in designer?can anyone help me in this regard?..

Answer / Richa Gupta

In ColdFusion, you can achieve a correlated sub-query by using a nested cfquery tag within another cfquery tag. Here is an example:n`n<cfquery name="outerQuery">
SELECT * FROM employees
<cfquery param="id" cfsqltype="CF_SQL_INTEGER">
<!--- Sub-query here --->
</cfquery>n</cfquery>`nnIn this example, the sub-query is correlated because it references a variable (id) from the outer query.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Warehouse General Interview Questions

Explain datawarehousing?

1 Answers  


Explain difference between view and materialized view?

1 Answers  


If two relational tables are connected to sq trans, what are the possible errors it will be thrown?

1 Answers  


What is XMLA ?

1 Answers  


What is the capacity of power cube?

2 Answers  


What is the main difference between star and snowflake star schema? Which one is better and why?

1 Answers  


explain the ROLLUP, CUBE, RANK AND DENSE_RANK FUNCTIONS OF ORACLE 8I

3 Answers   IBM, Ness Technologies,


What should I have in mind when building olap solution from scratch?

1 Answers  


What are the different problems that ?Data mining? can solve?

1 Answers  


What are the advantages and disadvantages of using stored procedures versus calling sql inline in cold fusion?

1 Answers  


Give me a broad concept of what a data warehouse is, and what it might be used for?

2 Answers  


What is cfapplication tag?

1 Answers  


Categories