Can I simulate a table with a query?

For example... I can write:

Select 'A', 'B' of the double, I have a line with A and B.

Can I simulate multiple lines?

Thanks in advance!

I doubt if you ask about subquery factoring... either it is like a point of view online.

/* Formatted on 10-15-2012 2:40:18 PM (QP5 v5.163.1008.3004) */
WITH xx AS (
    SELECT 'a' r1, 'b' r2 FROM DUAL UNION ALL
    SELECT 'c' r1, 'd' r2 FROM DUAL UNION ALL
    SELECT 'e' r1, 'f' r2 FROM DUAL
)
SELECT x.* FROM xx x;

Here I am simulating 'xx' in table form.
Is that what you were asking?

HTH
Vanessa B.

Tags: Database

Similar Questions

  • How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    I know it should be easy, but my brain doesn't work right now


  • is that we can transform a GML table with oracle 11g?

    I have a project with GML and this is the first time that I work with.
    I just need to know if I can transform a normal table with oracle of GML.

    I found that we can do this with xml using the simple features sql example:

    SQL:
    SELECT XMLElement (name 'Department',
    XMLAttributes (deptno),
    XMLAgg (XMLElement (name"employee", ename))) .getStringVal () as a RESULT
    FROM scott.emp
    GROUP BY deptno;

    result:
    < Department deptno '34' = >
    ename < employee > < / employee >
    < / Department >

    < Department deptno = "35" >
    ename1 < employee > < / employee >
    < / Department >...

    We can do something like this with oracle11g for GML instead of XML (when we have spatial data).

    I hope that you have the answer or a reference that can help.
    Thank you
    Best regards

    Hi, -.

    We have the following conversion functions of GML and KML to/from SDO_GEOMETRY.
    We both support GML2 and GML 3.1.1:

    In 11.1.0.7, you will find the following functions:

    SDO_UTIL. FROM_GML311GEOMETRY: Converts a fragment of geography markup language (GML 3.1.1) a spatial geometry.
    SDO_UTIL. FROM_GMLGEOMETRY: Converts a fragment of geography markup language (GML 2.0) a spatial geometry.
    SDO_UTIL. FROM_KMLGEOMETRY: Converts a KML (Keyhole Markup Language) of a Spatial geometry object document.

    SDO_UTIL. TO_GML311GEOMETRY: Converts an object of spatial geometry to a fragment of language (GML version 3.1.1) geography markup based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_GMLGEOMETRY: Converts an object of spatial geometry a geography markup language (GML 2.0) fragment based on the geometry types defined in the schema geometry.xsd Open GIS Consortium document.
    SDO_UTIL. TO_KMLGEOMETRY: Converts a Spatial geometry object to a KML (Keyhole Markup Language) document.

    See also User Guide Pro Oracle Spatial and Oracle Spatial for book of 11g Oracle database for more details and examples.

    Please let us know if you have any other questions. We will be happy to help you.

    I hope this helps.
    Best regards
    Baris

  • Mathscript I can only index a table with an actual integer not a reference to another table

    Hello

    Basically, I'm trying to write a function in Mathscript that works well in Matlab.

    I did a FFT of a signal that I used VI Ridge detector to find the main summits

    To find the signal of phase I want to refer to the location of the peaks in the phase table

    That is to say

    Phase (rental (1))

    Simply, I get the error-90026. Motorization of matrices the same indices of size must be whole

    Is this a bug

    Hello

    What version of LabVIEW are you using?  Are you maybe get two error codes?  Error-90026 is simply the indexes should be real and positive integers.  If you also get an error on the size of the matrices being incompatible, try your code in the MathScript window.  What is
    Rental (1)
    back?  A scalar value?  Or a table?

    What is the left side of this expression?  In other words, you assign the result to a variable or a submatrix?
    A = Phase (rental (1));
    or
    A (c:d) = Phase (rental (1));

    What is output when you type
    Rental (1)

    It is an integer value greater than 0?  Or is it a double number?  If you calculate the table of location in a certain way, it may be because the data error, you end up exactly a whole number.  Indexing routines will complain about this.  You can truncate to integer with the function of int32.  Try these suggestions.  If you still have problems, post more of your code so we can reproduce the problem that you see.

    Grant M.
    Staff software engineer | LabVIEW Math & Signal Processing | National Instruments

  • can update you a table with a column field with a default value

    I'm looking at a table (table_one) developer and basically, there a column field called is_update and the default value for this field is 1.

    I was wondering if it would be possible for me to use a syntax of the form update
    update table_one t
    set t.is_update = 0;
    where t.id = 221;
    because I tried to do and the update does not work

    Semicolon (;) is the problem!

    update table_one t
    set t.is_update = 0 --Removed semicolon here!.
    where t.id = 221;
    

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/statements_10008.htm#SQLRF01708

    added query & URL: Johan on October 21, 2010 07:02

  • How can I update this table with values from another table?

    Hello

    I have a table 'governed '. I want to replace the values in the column "regies.agent" by the value of the column "regies_personnes.id."
    As you can see the tables have a column of common values. IE regies.agent = regies_personnes.nom

    Table 'governed ':
    Insert into 'authorities' (AGENT) values ('Humberdot Alain");
    Insert into 'authorities' (AGENT) values ("Danard Patrick");

    Table 'regies_personnes ':
    Insert into REGIES_PERSONNES (NAME, ID) values ("Humberdot Alain", 1);
    Insert into REGIES_PERSONNES (NAME, ID) values ("Danard Patrick", 2);

    Before having it
    SQL > select agent of authorities;
    Humberdot Alain
    Patrick Danard

    After the update, the result should be
    SQL > select agent of authorities;
    1
    2

    Thank you for your kind reply.

    You can

    update regies r set agent = (select id from regies_persones p where r.agent = p.nom)
      where exists (select id from regies_persones p where r.agent = p.nom)
    
  • I can't create a table with SDO_GEOMETRY type of data in the database of 12 c

    Hello

    When I run the following script I get an error please help,

    Error from line: 3 in command.

    create table SPATIAL.warehouses)

    whse_code VARCHAR2 (4) primary key,.

    warehouse of VARCHAR2 (50).

    location SDO_GEOMETRY

    )

    Error report-

    SQL error: ORA-00902: invalid data type

    00902 00000 - "invalid data type".

    * Cause:

    * Action:

    I use a 12 c database.

    Hi guys

    I found the solution by asking my DBA to reinstall localization features using the oracle Installer.

    Now everything works fine.

    Thanks again for the responses.

  • Update a table with a query that uses the table updated

    Hi This is my request. It's a mistake, but I hope that the basic idea may carry out. Cost_before_Decision is a column by using an alter table statement, I added:
    UPDATE fraud_nov_14_final
    SET Cost_before_Decision = (select Cost_Prior 
                                from    fraud_nov_14_final ff
                                      ,(select cla_case_no, sum(case when decline = 1 or decline = 2  
                                                                  THEN (nvl(total_cost_adj_old,0) + nvl(decline_estimate,0)) 
                                                                  ELSE Total_Cost 
                                                                  END) Cost_Prior
                                        from reporting.ci_final@test
                                            group by cla_case_no) z
                                                    where ff.cla_case_no = z.cla_case_no)
    Error I get is:
    Error report:
    SQL error: ORA-01427: einreihig subquery returns multiple rows
    01427 00000 - "einreihig subquery returns several lines.

    Thanks in advance for your help:

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Try this

    update fraud_nov_14_final a
       set cost_before_decision = (
                        select cost_prior
                          from (
                             select cla_case_no, sum(case when decline = 1 or decline = 2  then (nvl(total_cost_adj_old,0) + nvl(decline_estimate,0)) else total_cost end) cost_prior
                               from reporting.ci_final@test
                             group by cla_case_no
                               ) b
                                   where a.cls_case_no = b.cls_case_no
                         )
    
  • How can I filter a table of data control without entering the query

    I have a table from a WSDL-based web service data control.

    I want to filter the table without input query in the filter text box. Without text filter box, each could filter the table with a query hardcoded internally.
    For example, when the user menu button click and then it filters the table where type = '1' and B menu button filters the table by type = '2' and C menu button filters the table by type =' "."

    How can I filter the table without entering the query?

    Could someone point me to a solution please.

    Thank you.
    11.1.5 jdev

    Published by: 893364 on October 26, 2011 12:15

    Published by: 893364 on October 26, 2011 12:21

    Hello

    When you have created the table, have you tried selecting the option "filter". Select the table, and access the property of m.. In the toolbar of the Properties Inspector, there is an icon to change the configuration. His fields of filter adding filter for the user to search in.

    Option 2: Data from the Web Service are actually held in iterators. If you want to filter the Web service request, I wouldn't use the WS domain controller but a proxy of JAX - WS in a POJO to recover data from the WS. Then the data control created from the POJO. You might have a method exposed on the POJO which allows you to filter the data internally that is held

    Frank

  • FieldWidth: Table with a panel request

    Hello

    I have a table with a query panel. Works fine, the problem is the size of the search fields. Some are good number of wholesale, others too small.

    Is it possible to control?

    My af property: query are the following:

    < af:query id = "qryId1" headerText = "search".

    value = "#{bindings." ItemMasterPrimeVOCriteriaQuery.queryDescriptor}.

    model = ' #{bindings. " ItemMasterPrimeVOCriteriaQuery.queryModel}.

    queryListener = ' #{bindings. " ItemMasterPrimeVOCriteriaQuery.processQuery}.

    queryOperationListener = ' #{bindings. " ItemMasterPrimeVOCriteriaQuery.processQueryOperation}.

    resultComponentId = ": pc2:resId1".

    Binding = "#{backingBeanScope.backing_ItemMasterPrime.qryId1}"lines = maxColumns argument '2' = '4' "

    fieldWidth = '100% ' type = 'flow' modeButtonPosition = 'footer '.

    released = "true" saveQueryMode = "hidden" displayMode = "default" / >

    My version of jdev is 11.2.4.0.

    Thank you

    Hello

    in the view/entity object go to UI tips the display with the field.

    If you use the view with parameters you can do in the configuration of the parameters.

    EDIT:

    See also this post: binary: customization of the display of the component by substituting CriteriaItemAttributeHints

    Kind regards

    Ruben.

  • How can I insert a table created in Excel on the Web in Adobe Muse [was: Hello,]

    Hello

    I have a question, How can I Insert a table with features created in Excel for the Web in Adobe Muse.

    Thank you A. Fischer

    That is right. It is most likely will not get a glimpse. You may need to check in a real browser.

  • Creating tables with Muse...  Excel copy / paste?

    Can I create a table with Muse?

    I have no knowledge of HTML... learning HTML can be a good idea, but I don't really have time for that right now.

    Can I add a table Excel for Muse?  Or y at - it a simpler way to create the table with the Muse?

    You can insert page Muse excel table or use any html generator to create a table and use the exit code.

    This thread will provide the exact steps for inserting table on page Muse of excel:

    https://forums.Adobe.com/thread/1364446?TSTART=0

    With html generator, you will not need to define or add any code on your side, just select the options you want in your table and then copy the code insert html into the page of Muse.

    http://www.tablesgenerator.com/html_tables

    Thank you

    Sanjit

  • How to pass the form on a table after a query?

    With the help of Oracle 11.2 and Apex 4.1.
    1. I use a form on a table with buttons: QUERY, INSERT, DELETE and CANCEL.
    2. after INSERT and DELETE, the shape is erased.
    3 but I would remove the form after the QUERY. Well, I want to clarify when the user wants to that he erased!
    4. and, in fact, I have a process to clear the Cache for the button CANCEL.
    5. when I click on CANCEL, there is a flash like redraws the screen.
    6 and I think this is the case, is that after the cache is cleared, the variable RCD_ID of the page has the prior value and treatment of the "table row" retrieves the file once more.
    7 so I return values that I wanted to clear! Looks like I'm being undermined by the functionality of the ARF. (ARF, ARF!)

    1. I tried to change the "Go to page nn" to clear the cache for the page, but that seemed to make no difference.
    2. I tried to adjust the page RCD_ID variable to "as I do after DELETION, but that has not worked either to CANCEL.

    Thoughts?

    I guess it's just me, but the extremely annoying part of the APEX is that some simple obvious things – like the form of compensation - have no obvious simple solution. I would say, there are a few obvious approaches, but none seems not to work. You would think that a 'CLEAR' button would be a standard button or CANCEL to had an option to clear the form and or clear a list of items on the page.

    Howard

    Howard (DBA in training) wrote:

    For the button CANCEL, 1) I clear the cache of the page and 2) I put the variable RCD_ID (P2_RCD_ID) ". But without effect. When I consider the debug report, I don't see any indication that CANCEL was pressed or that these processes have been executed. So, maybe they are not running. I see the record being extracted again - which is what I want to avoid.

    Processes are not executed because the page is not submitted. The Cancel button does a redirect, not a shipment:

    apex.navigation.redirect('f?p=21997:2:13040303230582::NO:::')
    

    Change the button action to present, with the value of the request as "CANCEL".

    By default, generated by the wizard Cancel button will be created to perform a redirect. The anticipation is that the behavior required to navigate to another page in the application without changes to session state or process.

  • How to create a table with muse?

    How can I create a table with muse?

    Muse do not support building tables at this time.

    However, you can add HTML table to the object-> the option Insert HTML code as a way to get around this.

    http://www.w3schools.com/HTML/html_tables.asp

    You can even try lining up a few text boxes with or without contour applied to create a tabular look editable in design mode.

    Thank you

    Vinayak

  • REORG several tables with DEC

    Oracle 11.1.0.6 database
    RHEL 5.3

    Hi all

    1.)

    I want reorg several tables with the ETG. But because there are several tables with different indexes and column names I can not use the order by clause.

    create the table reorg_HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE
    tablespace REORG
    PCTFREE 10 pctused, initrans, maxtrans 1 255
    storage)
    initials pctincrease of 1 M following 0M 0
    MINEXTENTS 1 maxextents unlimited
    in select * from HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE;

    The table is going to get reorganized even without the orderby clause?

    2.)
    The steps I should follow are (please, correct me if I'm wrong):

    -Create table with the new name in the new tablespace
    -Remove the old tables
    -Move converted tables to the original tablespace

    Is it OK, what happens to the index?

    Help, please

    You can also copy dependent table with dbms_redfinition. The procedure is called COPY_TABLE_DEPENDENTS. See http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm

    ALTER table move would also be possible, but doen't it locks the table all the time?

    Kind regards

    -wiZ

Maybe you are looking for

  • How remote access to computers?

    How to access another computer remotely?

  • Cannot run Windows Update from the PC that was previously on a domain.

    Original title: cannot run Windows Update I got my PC of my former company with a local login. However, the PC has been joined to a domain. The company no longer exists, but because the PC has submitted to its group policies, I can't run Windows Upda

  • weindows disc 7

    Hi there can someone help me and tell me should I had the disc of windows 7 with my g6 when I brought. The softwear was already on the laptop but say if my drive hard breaks down or the windows then mess up how to resettle mild wear as I have the key

  • "Officejet Pro 8600' vs"Officejet Pro 8600 N911n"

    When you set up several programs or applications, I am presented with a list of available printers found. I have attached to my router as a network printer, a printer, a premium of Officejet Pro 8600, but still these two entries in the list: 'Officej

  • Service Centre of Smartphones from blackBerry for instant repair

    Hello I have a minor hardware problem with my camera, which sometimes works speaker and sometimes it doesn't work when I make or receive a call. I guess the Speaker Jack must have had some problems. I went to the nearby service center Netaji Subhash