0

I am inside oracle procedure

I have a complex query with join which gives single value to which i assign alias

now can i pass alias in where clause in another query rather than making above query again as subquery?

d-man
  • 57,473
  • 85
  • 212
  • 296
  • 2
    Please expand your question with some details. Show us the sort of query you're talking about, and how you want to use this variable in another query. – APC Jul 14 '10 at 06:01

1 Answers1

0

Yes, provided its in scope (ie a subquery you're joining to in the FROM clause that the WHERE exists in).

heisenberg
  • 9,665
  • 1
  • 30
  • 38