put resultset in table and access as a table

Hi Experts,

I have a complex SQL that I use as a point of view online.

To simplify my code, rather than repeat complex SQL, I would like to put its result set in a table or any variable such that I can use it in a select statement in a table.

If var1 is our table with resultset, I want to be able to select * from table (var1).

I'm using Oracle 11 g.

Thanks for your time.

Why can't you can put your complex sql to view and use select * from as necessary.

Tags: Database

Similar Questions

  • Time Capsule bridge and access point?

    Hello

    I have a question about the network wireless of my TC. Our provider has installed a new router. These router can not work as bridge, telephone and TV are also connected to this router. Because 2 wifi networks do not work, I wonder what is the best set-up for the network? The Capsule is connected to the router by ethernet. It is configured as a gateway. Before I used the TC to connect to internet. Now, I have disabled the wi - fi function and use the ISP connection. It looks good, only backups are a little slow now.

    -What is the best configuration for the TC in an existing network? So that I can put it off the wireless of the TC or the ISP router: can I use the TC-wifi (create a new network) or wifi existing ISP router to connect with wireless devices?

    -Do I lose speed when I'm with 2 devices on my network: TC as the ISP as a router and Access Point.

    (I always thought that 1 unit for router and access point is the best configuration.)

    -Are faster backup copies using the TC wireless or it does not matter when I backup on the wireless ISP?

    Some maybe stupid questions, but thanks in advance. Greetings.

    Because 2 wifi networks do not work

    Many people think that this is the case... but this isn't so.

    You can use several wireless networks... all attached to the same router. There is enough bandwidth available in the channels wireless for the operation of 3 different wireless networks nearby each other... and using 5 GHz adds much more.

    The Capsule is connected to the router by ethernet. It is configured as a gateway. Before I used the TC to connect to internet. Now, I have disabled the wi - fi function and use the ISP connection. It looks good, only backups are a little slow now.

    The configuration of TC in bridge is correct.

    Do not turn off the TC wireless... Provide a different name for the ISP wireless router and connect your computer... then you can get internet and make backups on the TC without overloading the ISP router wireless.

    -What is the best configuration for the TC in an existing network? If I disable the wireless of the TC or the ISP router:

    Turn on Wi - Fi in both.

    A physical configuration, it is recommended to have say separation of 1 M (3 feet) between the ISP router and the TC to a min. But it would be even better to have the TC at near the Mac who performs backups TM and related to the ISP router with ethernet.

  • What is the difference between the password and access code

    I get all the IDs and passwords and none are accepted

    "I received message' iPad requires your password after restart", but it does not accept passwords

    What is the difference between the password and access code

    Standard codes which block the iPad are 4 or 6-digit. You can set a more difficult to decode, personalized access code / password in the settings using letter and numbers if you wish.

    A password is a series of numbers, symbols and letters that a user putting in place to protect the information in a frame, a web site, e-mail, etc. This may actually be a word or series of words, if you wanted to set up in this way.

    Your iPad is looking for this 4- or 6-digit code. If you can remember, you must restore the device so for free.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • After the update to el Capitan my iMac will not be asleep. I put it to sleep and turn off the mouse and keyboard that goes with it, and 5-10 minutes later, he wakes up on his own. Now, I have to stop it after use and each time only. Major pain

    After the update to el Capitan my iMac will not be asleep. I put it to sleep and turn off the mouse and keyboard that goes with it, and 5-10 minutes later, he wakes up on his own. Now, I have to stop it after use and each time only. The Major pain. Any help would be greatly appreciated.

    Please test after taking each of the steps that you have already tried:

    Step 1

    Take all of the measures suggested in this support article, including those under the title "If the previous steps do not work." It is the starting point for a new effort to solve the problem.

    Note that, as stated in the article, the computer will not sleep, if some sharing services are enabled. In the menu bar, select

     ▹ System Preferences... ▹ Sharing

    Disable all sharing services.

    Step 2

    If sharing music iTunes home sharing is enabled, disable it or quit iTunes. Do the same with third-party applications that have a similar feature.

    Step 3

    Select

     ▹ System Preferences... ▹ Accessibility ▹ Speakable Items: Off

    Step 4

    Select

     ▹ System Preferences... ▹ ▹ Advanced Bluetooth...

    and uncheck the two boxes marked

    Open Bluetooth Setup Assistant at startup if...

    Step 5

    Reset the printing system.

    Step 6

    Back up all data.

    Triple-click on the line below on this page to select, then copy the text to the Clipboard by pressing Control-C key combination:

    /var/vm

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named 'vm' should open. Inside, there may be a file named 'drag '. Move this file and only this one in the trash, but do not yet empty. You will be asked for your password. Close the folder window.

    Restart the computer and empty the trash.

  • Internet connection, im not connected to my wireless (SHayes), im not yet listed. So I tried to put it in manually and it says already exists.

    I just noticed that I am not connected to my wireless (SHayes), im not yet listed. So I tried to put it in manually and it says already exists. How can we or I get connected to my internet access?

    You probably want to try your manufacturer wireless to support or

    Try the Windows Networking forum http://answers.microsoft.com/en-us/windows/forum/networking

  • stop windows remote access connection and access the CD dirive

    I use windows 7 ultimate 32 bit OS

    There is a problem called "windows remote connection" which is not allowing me to access the CD drive for CD writing

    no disc burning software nero8, ashampoo burning studio, power iso; None of them can write data to dvd using my dvd burner

    I need solution; What kind of sequrity program is this "Windows remote connection?

    Here's how to turn on remote desktop (and therefore, how to disable - just check the other box):http://www.howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/.  See if the ' turn off resolves the problem.  If necessary, try to turn off remote access as well (above) - If this does not work, put in the less remote access back on (you may need it if you need someone to connect to your computer for assistance - as your ISP or Microsoft Support or even a computer repair shop that works remotely).

    This isn't a security feature, but a function of access to allow others on the internet to connect to your PC and you can connect other PCs (and show their desktop and work with their mouse on your computer - or they can do the same with you the authorizations if many use other 3rd party software to do this work easily and smoothly).  FYI, here's how to use remote desktop in Windows 7:http://forums.techarena.in/guides-tutorials/1187281.htm.

    If this does not work, please repost your question in the Forums Windows7: http://social.answers.microsoft.com/Forums/en-US/category/windows7 where Windows7 experts will be happy to help you.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    Return to your LMS administrator and ask them why they have not put in place more firmly. The scenario you mention should not occur if the LMS is well attached.

    Some LMS have the contents of the course are in a folder outside the web space so that users can access the course URL directly.  For example, Moodle t - it this way and then shot the course content in a temporary folder when the learner clicks on the link ask a module.  No matter how your LMS is supposed to do, it is currently not configured correctly.

  • How to connect and access SQL Server data base of sqldeveloper?

    Hi all
    is it possible to connect and access the database of remote sql server using sql developer?

    Connect you as 'his' or as a normal user?

    When you connect as a normal user, this user has the tables or views?

  • Load a CSV file and access to variables

    Hi guys,.

    I am new to AS3 and treated with AS2 before (just to get the scope when change it).

    Is it possible in AS3 to load an excel .csv file into Flash using the URLLoader (or?) and the data in the form of variables?

    I can get the .csv to load and trace values (cell1, cell2, cell3...) but I do not know how to collect the data and place it into variables.

    Can I create a table and access like so... MonTableau [0], myArray [1]? If so, I don't know why it does not work.

    I have to be on the road quite wrong. Here's what I have so far...

    var loader: URLLoader = new URLLoader();
    loader.dataFormat = pouvez;
    loader.addEventListener (Event.COMPLETE, dataLoaded);

    var request: URLRequest = new URLRequest ("population.csv");
    Loader.Load (request);
    //...
    function dataLoaded(evt:Event):void {}
    var myData:Array = new Array (loader.data);
    trace (mydata [i]);

    }

    Thanks for any help,

    Sky

    Simply load your csv file and use the string flash methods to allocate these values in a table:

    var myDate:Array = loader.data.split(",");

  • Oracle query of relay and access function call does not return the list

    Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.

    I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?

    The application of relay and looks like this

    Select * from fn_testvalues of the double

    Once that is running in oracle.

    To create the test table and 2 functions below.

    CREATE TABLE t_values (MyValue varchar2 (10));

    Table created
    INSERT INTO t_values)
    SELECT 'Merced' c1 FROM dual UNION ALL
    SELECT "Pixie" dual UNION ALL
    SELECT "452" DOUBLE);

    3 lines inserted
    FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
    n_val NUMBER;
    BEGIN
    n_val: = to_number (p_val);
    RETURN 1;
    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END;
    /

    Feature created

    table test:
    SELECT val, isnum fn_isnum (MyValue)
    OF t_values;

    VAL ISNUM
    ---------- ----------
    Merced 0
    Pixie 0
    1 452

    Now the function that is called in the application of relay:

    create or replace function fn_testvalues
    sys_refcursor is back
    RC sys_refcursor;
    Start
    Open rc for
    Select t_values.*, fn_isnum (MyValue) t_values IsNum;
    Return (RC);

    end fn_testvalues;

    Why not?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>create or replace view bb
      2  as
      3    select *
      4    from emp;
    
    View created.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from bb;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30 SALESMAN
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20 ANALYST
          7839 KING       PRESIDENT            17-NOV-81       7260                    10 PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20 CLERK
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30 CLERK
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10 CLERK
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
             1 boock
    
    12 rows selected.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select *
      2  from bb
      3  where empno = &eno;
    Enter value for eno: 7521
    old   3: where empno = &eno
    new   3: where empno = 7521
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

  • How to transfer photos from my iPhone to my iPad, put them in albums and then remove them from my iPhone

    How to transfer photos from my iPhone to my iPad, put them in albums and then remove them from my iPhone

    There are several methods.

    You could make a start by looking at this article.

  • I have an iphone 6 it is damaged by water but I set myself and the person put it on charge and tested it with a multimeter and it worked perfectly but when I went to look for a screen tested on it, it didn't work

    I have an iphone 6 it is damaged by water but I set myself and the person put it on charge and tested it with a multimeter and it worked perfectly but when I went to get a screen tested on it because she does not have the person had not on is it did not work, even if the person has used only flow to correct and get a few corosions out with the replacement of some components of the person responsible for 10 minutes after having plugged in and the battery it wamer so it as I said her test with a multi meter test and he registered 12v and I wondered if something was wrong with it and if I could fix it easily?

    Check the liquid Indcator of Contact.

    Instructions here > liquid for iPhone or iPod is not covered by the warranty - Apple support

    Just so you know, the service of the liquid damage to an iPhone or iPod is not covered by the limited warranty of one Apple or an AppleCare Protection Plan (APP).

  • Hi, I dropped my iphone6 in a salt water pool and was overwhelmed for only 3 to 5 seconds. I quickly ran upstairs to put it in rice and it was 2 days ago. Should I start charging or always keep rice?

    Hi, I dropped my iphone6 in a salt water pool and was overwhelmed for only 3 to 5 seconds. I quickly ran upstairs to put it in rice and it was 2 days ago. Should I start charging or always keep rice?

    Take your iPhone at the Apple Store as soon as possible. Unfortunately, warranty does not cover water damage. I'm afraid that your device is already damaged, but only professional can tell you this for sure. Take the sooner you it to the store - the best chance, it can be recovered.

  • Recent update asking for permission to put on my camera and audio without my knowledge, what then?

    Recent update asking for permission to put on my camera and audio without my knowledge, what then? Does this mean that Big Brother or anyone who can turn my Audio/video and see what I do?

    Firefox will always ask permission each time before the video/audio recording is turned on - then only you can activate it.

    the authorization is used for technologies such as webrtc: https://blog.mozilla.org/blog/2013/09/17/webrtc-now-available-across-mobile-and-desktop-with-new-firefox-for-android-compatibility/

  • How can I find and access a record of Mail in Mail El Capitan?

    In Mail on 10.8.5 - when I need to send an e-mail message, that I was able to search a folder, search for a message in this folder, select the message in the search results and then see and click on the name of the folder has resided in - take me directly to the folder nested within the appropriate e-mail account. Now, with El Capitan, it seems that this function no longer exists. How can I quickly find and access the files with in Apple Mail 10.11 El Capitan?

    Are you talking about looking for a folder in the Finder or in the mail?

Maybe you are looking for