Can I designate a column as an output to another column in the same point of view?

Hello!

I have a custom view which I use in the daily Business Intelligence KPI, which is something like this:

Select (select sum (col1) from table1) out1.

((select sum (col1) from table1) out2)

of the double

I need to reproduce the same columns that DBI will not refer me a column twice. It certainly is him asking to run the same query twice.

Is there a way in which out2 will 'just talking' to out1?

Thank you.

For example,.

SQL >

SQL > set autot on exp

SQL > create view v1 as

2 with col (select sum (sal) s of emp)

3 select s out1, out2 s of the neck;

Created view.

SQL > select * from v1;

OUT1 OUT2

---------- ----------

29025 29025

Execution plan

----------------------------------------------------------

Hash value of plan: 1190005124

----------------------------------------------------------------------------

| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

----------------------------------------------------------------------------

|  0 | SELECT STATEMENT |      |    1.    13.    3 (0) | 00:00:01 |

|  1.  VIEW |      |    1.    13.    3 (0) | 00:00:01 |

|  2.  GLOBAL TRI |      |    1.    4.            |          |

|  3.    TABLE ACCESS FULL | EMP |    14.    56.    3 (0) | 00:00:01 |

----------------------------------------------------------------------------

SQL >

Tags: Database

Similar Questions

Maybe you are looking for

  • I have restored my hard drive for time machine

    I have restored my hard drive of the machine after a malware infection, and now at startup, Finder opens the folder of DVD player. This does not seem to interfere with the normal operation of my computer, but I'm curious to know if anyone has had thi

  • Warcraft III does not install on Windows 7 32 bit

    I try to install Warcraft III, and whenever I try to start the installer, nothing happens. I tried to run in each mode of compatibility as administrator, and nothing happens. I downloaded Virtual PC and XP Mode for it and tried to install it on that,

  • How can I implement this formula?

    Hello, I use labview to implement the formula in the image; x with i, is a particular element of the nx1 range... What should I do?

  • 5510 does not print color correctly, despite full cartridges

    Hello My printer prints incorrectly in the color. The cartridges are relatively complete. However, it seems that use red and blue cartridges, - the photos are coming in shades of red and blue and are dimmed.

  • Windows media player will not sync

    When I connect my sansa fuze + it appears on the screen, but when I try to sync songs to a folder on the computer or the library it appears a message windows media player does not.