Questions tagged [inline-view]

34 questions
0
votes
2 answers

Restructure Inline view

SELECT MAX(column1) FROM table1 B , table2 A, table3 H WHERE B.unit=A.unit AND B.value=A.value AND B.unit=H.unit AND B.value=H.value AND A.number=1234 Can someone help me to restructure this query in inline view? SAMPLE Table1 ------ Value Unit…
user1954762
  • 159
  • 1
  • 3
  • 11
0
votes
2 answers

SQL inline view subquery

Is it possible to reference an inline view defined in the "FROM" clause from a subquery in the WHERE clause? SELECT tmp.TeacherName, tmp.courseid, tmp.AvgAttendingStudents FROM (SELECT T.TeacherID AS ID, …
0
votes
2 answers

can oracle inline views be used across java statements instead of creating temporary table

i have a java program executing 3 separate sqls with a same inline view - it takes about 20 minutes each time to build the inline view when the sqls are executed - is there a way to cache or reuse it ? - trying to avoid temporary table solution…
prabhackar
  • 11
  • 2
  • 3
0
votes
2 answers

How to fetch the top-n using inline view while performing a join with tables in main query in Oracle / SQL?

It seems like a really simple query but I must be missing something obvious. I am assuming that this scenario is pretty common. I have a table which stores the products and another table that stores the transactions. The transaction table has…
sohail
  • 589
  • 1
  • 11
  • 26
1 2
3