generate the view with the union

Hello

I want to create a view

CREATE VIEW ViewTest AS

Select ID, Number, to_char (City) in the Fi

Union

Select 0,0, "of the double

But I get an error message:

shall appoint this expression with a column alias

What is the correct syntax? I want to get all the rows in the table 'fi' one another line with id = 0.

The select works, but the creation of the view, then I get the error message

Best regards

Thomas

Hello

First of all how you can create a Fi table because you can't use number as column name? It is not appropriate for the conventions of name of column in the oracle.after remedy

and

Error is very clear and it says you have to. "shall appoint this expression with a column alias.

When you create the view, you must specify a column name for the expression in the first statement as follows

CREATE VIEW ViewTest AS

Select ID, No, to_char (City) city_name fi

Union

Select 0,0, "of the double

Yasin

Tags: Database

Similar Questions

  • With the help of SCORE on top of view with UNION

    Hi guys,.

    I explain what I'm trying to do it quickly:

    2 tables: table1 and table2 with the same structure and have both a multi_column_datastore ctxsys.context.

    1 view: View1

    Select * from table1

    Union

    Select * from table2

    If I run:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0;

    It works fine, I get the correct result.

    If I try to use the PARTITION function, I got an error:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0 ORDER by SCORE (1);

    ORA-29921: auxiliary operator not supported with query to configure block

    I understand the problem is in the UNION inside the view, is it possible to keep work, filtering the VIEW?

    Thanks in advance

    There is no score in the view, so you cannot reference the score when you query the view.  In order to put the note in the view, you need a contains the clause, which requires a value.  A method to do this is to use sys_context.  Please see the reproduction of the problem and solution below.

    Scott@orcl12c >-reproduction of the problem:

    Scott@orcl12c > create the table1 table:

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table1 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > create table table2

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table2 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > start

    2 ctx_ddl.create_preference ('test_ds', 'multi_column_datastore');

    3 ctx_ddl.set_attribute ('test_ds', 'columns', "column1");

    4 end;

    5.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > create index table1_idx on table1 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create index table2_idx on the table2 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create or replace view View1

    2 as

    3 select * from table1

    4 union

    5 select * from table2

    6.

    Created view.

    Scott@orcl12c > select * from View1 where contains (view1.column1, '% textext %', 1) > 0

    2.

    COLUMN1

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

    textext

    1 selected line.

    Scott@orcl12c > select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    2.

    Select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    *

    ERROR on line 1:

    ORA-29921: auxiliary operator not supported with query to configure block

    Scott@orcl12c >-solution:

    Scott@orcl12c > create or replace view View1

    2 as

    3. Select the partition (1) score, table1.* from table1

    4 where contains (table1. Column1, sys_context ('text_query', 'query_value'), 1) > 0

    5 union

    6 select score partition (1), table2.* from table2

    7 where contains (table2.column1, sys_context ('text_query', 'query_value'), 1) > 0

    8.

    Created view.

    Scott@orcl12c > create or replace context text_query using text_proc

    2.

    Context that is created.

    Scott@orcl12c > create or replace procedure text_proc

    2 (p_val in varchar2)

    3 as

    4 start

    5 dbms_session.set_context ('text_query', "query_value", p_val);

    6 end text_proc;

    7.

    Created procedure.

    Scott@orcl12c > text_proc exec ('% textext %')

    PL/SQL procedure successfully completed.

    Scott@orcl12c > set autotrace on explain

    Scott@orcl12c > select * from View1 by score

    2.

    MARK THE COLUMN1

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

    3 textext

    1 selected line.

    Execution plan

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

    Hash value of plan: 4090246122

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

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

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

    |   0 | SELECT STATEMENT |            |     2.    60.     8 (0) | 00:00:01 |

    |   1.  SORT ORDER BY |            |     2.    60.     8 (0) | 00:00:01 |

    |   2.   VIEW                          | VIEW1.     2.    60.     8 (0) | 00:00:01 |

    |   3.    UNIQUE FATE |            |     2.    58.     8 (50) | 00:00:01 |

    |   4.     UNION-ALL |            |       |       |            |          |

    |   5.      TABLE ACCESS BY INDEX ROWID | TABLE1.     1.    29.     4 (0) | 00:00:01 |

    |*  6 |       DOMAIN INDEX | TABLE1_IDX |       |       |     4 (0) | 00:00:01 |

    |   7.      TABLE ACCESS BY INDEX ROWID | TABLE2.     1.    29.     4 (0) | 00:00:01 |

    |*  8 |       DOMAIN INDEX | TABLE2_IDX |       |       |     4 (0) | 00:00:01 |

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

    Information of predicates (identified by the operation identity card):

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

    6 - access("CTXSYS".") CONTAINS "(" TABLE1".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    8 - access("CTXSYS".") CONTAINS "(" TABLE2".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    Note

    -----

    -the dynamic statistics used: dynamic sampling (level = 2)

    Scott@orcl12c >

  • Create the view with the Unique ID column

    I need to create a view.
    The view is created using unions on 4 tables.
    The problem is that I need to create a unique id column in the view that I use in an Oracle Apex application and need to drill down to each line.

    Any help appreciated

    Gus

    You cannot use oracle sequences directly in the query that is connected with other queries using Union or INTERSECT or less cluses.

    Other cases where you cannot use a sequence are:
    -In a WHERE clause
    -In a GROUP BY or ORDER BY clause
    -In a SEPARATE clause
    -Along with a UNION or INTERSECT or LESS
    -In a subquery

    In order to better you will love

    Select seqname.nextval, col1, col2
    Of
    (

    Union

    ..
    ..
    )

    as mentioned in one of the previous answer by the other members of the community...

    Alternatively, you can use rownum speed of sequence to a unique number as below examle:

    Select rownum, col1, col2
    Of
    (

    Union

    ..
    ..
    )

    Kind regards
    Lifexisxnotxsoxbeautiful...

  • Create the view with the dynamic from clause

    Hi all

    you might have some ideas to help me out of my problem I just "created myself" ;-)

    I have an unknown quantity and not constant of the tables using the same structure of the table and I have a main table
    that contains all the names of these table types. Now, I want to create a unique view that contains all the columns in each table
    and an extra column name containing the name of the corresponding table.

    I found a solution for this but only if I knew that all the table names while creating my view.

    Here is what I currently have:

    master_table:
    TABLENAME ID
    1 table_01
    2 table_02


    table_01:
    ID NAME
    1 eins
    zwei 2
    drei 3


    table_02:
    ID NAME
    1 a
    2 two
    3 three


    I think 'tab1tab2' on these 2 table looks like this:

    ID NAME TABLENAME
    1 table_01 eins
    2 zwei table_01
    3 drei table_01
    1 a table_02
    2 two table_02
    3 three table_02


    I have reached this point of view with:

    CREATE OR REPLACE VIEW TAB1TAB2 ('ID', 'NAME', 'TABLENAME')
    AS
    SELECT id, name, 'table_01' AS table_01 FROM tablename
    UNION
    SELECT id, name, 'table_02' AS tablename FROM table_02;



    Is it possible to create as many select statements and union that I entered (tablenames) into my master_table to achieve the same results as my opinion hard?

    Thank you very much in advance for your help

    Best regards

    Majo

    create or replace view v_alltables
    Select * from v_all;

    These two statement contradict each other in some way, Don't they?

    path ID number name 'id', varchar2 (20) 'name' of the path) x;

    the column names are case sensitive - try

      id number path 'ID' , name varchar2(20) path 'NAME' ) x;
    

    assuming that the names of the columns are named like that.

  • How to generate a pulse with the signal generator?

    Hello

    I would like to ask if anyone knows how to use the Elvis platform to generate a regulated pulse wave?

    It should look roughly like the picture above. A sine wave with the regulation.

    Anyone who can answer my question please respond to my post.

    Thank you.

    You are using LabVIEW to generate the waveform or using the Soft front panels? In LabVIEW, you can use the express VI generator function and specify the Type as "Sine". Then, simply change the amplitude of the sine wave. During the actual pulse, the amplitude would be what you want (i.e. 1 V) and while the pulse is idle, set the amplitude to 0.

    If you use the soft front panels, you can use the Waveform Editor to create a waveform that includes a sine wave for the length of your pulse and then the values of '0' for the rest of the time. Then use this waveform in the flexible front of the arbitrary signal generator. Simply create a component of sine as the first part of the wave and then add another element to a level DC '0' for the rest.

  • I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound.

    I am facing a problem with the beep.vi.  I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.

    Ihab El-Sayed

    published here: http://forums.ni.com/t5/LabVIEW/Playing-sound-based-on-exceeding-a-threshold-value-1D-array-data/m-p...

  • Measurement and Automation does not open and generates the MAXKnownException error with an unknown exception.

    Measurement & Automation does not open and generates the MAXKnownException error with an unknown exception.

    Heres the log

    Context where the exception was taken:
    (No context - the unhandled exception)

    Size version of Base module
    -------------------- -------- -------- ------------------
    NIMax.exe 00400000 0006 has 000 4.6.0.49152
    ntdll.dll 770E0000 00180000 6.1.7601.18247
    00110000-76060000 6.1.7601.18409 Kernel32.dll
    KERNELBASE.dll 74E00000 00047000 6.1.7601.18409
    SYSFER. 74830000 00072000 12.1.1101.401 DLL
    1BFB0000 0001 NiMaxImp.dll B 000 4.6.0.49152
    Shell32.dll 74E50000 00C4A000 6.1.7601.18429
    Msvcrt.dll 76830000 000AC000 7.0.7601.17744
    74 00000 00057000 6.1.7601.17514 SHLWAPI.dll
    76740000 00090000 6.1.7601.18275 Gdi32.dll
    00100000 76480000 6.1.7601.17514 User32.dll
    Advapi32.dll 75DD0000 000 A 0000 6.1.7601.18247
    sechost.dll 76CC0000 00019000 6.1.7600.16385
    000F0000 rpcrt4.dll 76980000 6.1.7601.18205
    SspiCli.dll 74AE0000 00060000 6.1.7601.18443
    CRYPTBASE.dll 74AD0000 0000 C 000 6.1.7600.16385
    LPK.dll 76470000 0000 has 000 6.1.7601.18177
    USP10.dll 768E0000 0009D 000 1.626.7601.18454
    Ole32.dll 75F00000 0015C 000 6.1.7601.17514
    Msvcp90.dll 739F0000 0008E000 9.0.30729.6161
    Msvcr90.dll 73DB0000 000 has 3000 9.0.30729.6161
    74470000 00009000 6.1.7600.16385 VERSION.dll
    IMM32. 00060000 60000 74 6.1.7601.17514 DLL
    000CC000 76BB0000 MSCTF.dll 6.1.7600.16385
    74320000 00021000 6.1.7600.16385 Ntmarta.dll
    Wldap32.dll 00045000 763E0000 6.1.7601.17514
    Uxtheme.dll 6EB20000 00080000 6.1.7600.16385
    NiMaxUI.dll 1C2D0000 00269000 4.6.0.49153
    Msvfw32.dll 6BE30000 00021000 6.1.7601.17514
    73970000 00032000 6.1.7601.17514 WINMM.dll
    Comctl32.dll 73E80000 0019E000 6.10.7601.17514
    Wsock32.dll 73DA0000 00007000 6.1.7600.16385
    74DC0000 00035000 WS2_32.dll 6.1.7601.17514
    NSI.dll 75AA0000 00006000 6.1.7600.16385
    Oleaut32.dll 76580000 0008F000 6.1.7601.17676
    6D8E0000 003 Mfc90u.dll has 1000 9.0.30729.6161
    MSIMG32.dll 6EBA0000 00005000 6.1.7600.16385
    dwmapi.dll 6EB00000 00013000 6.1.7600.16385
    MFC90ENU. DLL 6EAF0000 0000 D 000 9.0.30729.6161
    NiMaxRes.dll 1BFD0000 0007 has 000 4.6.0.49153
    BtMmHook.dll 10000000 00038000 6.4.0.2900
    PSAPI. DLL 76440000 00005000 6.1.7600.16385
    DCIMAN32. DLL 6E1F0000 00006000 6.1.7601.18177
    MXS.dll 1 B 240000 4.6.0.49152 0000F000
    mxsutils.dll 1B4D0000 00041000 4.6.0.49152
    Msvcp71.dll 7C3C0000 0007C 000 7.10.6030.0
    7 360000 00056000 7.10.6030.0 Msvcr71.dll
    mxsout.dll 1 B 400000 00075000 4.6.0.49152
    64600000 00014000 4.257.3.0 nirpc.dll
    Mswsock.dll 73A 90000 0003C 000 6.1.7601.18254
    profapi.dll 76460000 0000B 000 6.1.7600.16385
    mxMax.dll 1BF20000 00086000 4.6.0.49152
    58000000 00240000 6.5.0.3005 AsstntUI.mxx
    MFC80U. DLL 71210000 8.0.50727.6195 0010F000
    MSVCR80.dll 0009B 000 8.0.50727.6195 72E50000
    Comdlg32.dll 20000 75 0007B 000 6.1.7601.17514
    71180000 00087000 8.0.50727.6195 Msvcp80.dll
    ATL80. DLL 6BD70000 0001 B 000 8.0.50727.6195
    MFC80ENU. DLL 730F0000 8.0.50727.6195 0000E000
    59000000 00582000 6.5.0.3005 mxwTask.dll
    00011000 74180000 6.1.7601.17887 Netapi32.dll
    74170000 00009000 6.1.7601.17514 netutils.dll
    74150000 00019000 6.1.7601.17514 srvcli.dll
    wkscli.dll 74140000 6.1.7601.17514 0000F000
    56000000 00148000 6.5.0.3005 mxwRCEng.dll
    mxcal.mXX 1 A 110000 00056000 4.6.0.49152
    mxcat.mXX 1BE20000 000AB000 4.6.0.49152
    nidmfuiu.mXX 04360000 0010D 000 1.11.0.49152
    NIPALU.dll 64000000 00057000 2.1025.3.0
    64500000 00006000 2.1025.3.0 nipalut.dll
    NIPAL32.dll 00007000 1F700000 2.1025.3.0
    SETUPAPI.dll 76240000 0019D 000 6.1.7601.17514
    CFGMGR32.dll 75DA0000 00027000 6.1.7601.17621
    76220000 00012000 6.1.7601.17621 DEVOBJ.dll
    6 280000 00031000 1.9.0.49152 nimdbgu.dll
    6 000000 00017000 1.9.3.49152 niorbu.dll
    nimstsu.dll 6E180000 0001 has 000 1.11.0.49152
    nimhwcfu.dll 6DFD0000 000 B 6000 1.11.0.49152
    6 050000 0001E000 1.9.0.49152 nidimu.dll
    nimxdfu.dll 0003E000 1.10.0.49152 6D0F0000
    nimxpu.dll 6E1B0000 0000 000 1.11.0.49152 B
    Iphlpapi.dll 74280000 0001C 000 6.1.7601.17514
    WINNSI. DLL 74270000 00007000 6.1.7600.16385
    74B 40000 001BD000 11.0.9600.17126 WININET.dll
    76A 70000 API-MS-Win-Downlevel-User32-L1-1-0.dll 00004000 6.2.9200.16492
    770B 0000 API-MS-Win-Downlevel-shlwapi-L1-1-0.dll 00004000 6.2.9200.16492
    75AB0000 API-MS-Win-Downlevel-Version-L1-1-0.dll 00004000 6.2.9200.16492
    76430000 00003000 6.2.9200.16492 API-MS-Win-Downlevel-normaliz-L1-1-0.dll
    normaliz. DLL 76450000 00003000 6.1.7600.16385
    iertutil.dll 75AC0000 00219000 11.0.9600.17126
    76610000 00005000 6.2.9200.16492 API-MS-Win-Downlevel-advapi32-L1-1-0.dll
    76200000 00017000 6.1.7601.17514 USERENV.dll
    nidmxfu.dll 04470000 0049F000 1.12.0.49152
    nimru2u.dll 6EC70000 00044000 2.10.1.49152
    nimmgluu.dll 69830000 0001E000 1.11.0.49152
    nimercu.dll 6DFB0000 00019000 1.11.0.49152
    MFC71. 00106000 140000 7 7.10.6101.0 DLL
    MFC71ENU. 360000 5 0000E000 7.10.3077.0 DLL
    niGPIBui.mxx B 6, 000000 0008E000 2.7.0.49152
    niIVIui.mxx 02CE0000 000D 0000 4.2.0.49152
    niPXIui.mxx A 671 0000 000BC000 2.1280.1.49152
    niRemPXI.mxx 1 A 270000 00057000 4.6.0.49152
    mxRmCfg.dll 1 has 000000 00090000 4.6.0.49152
    niRMui.mxx 1AD70000 000FD000 4.6.0.49152
    NISRLUI.mxx 6B 500000 00061000 3.4.0.49154
    63800000 00010000 2.7.0.49152 NiSpyLog.dll
    niSWui.mxx 1A3B0000 00072000 4.6.0.49152
    niVISAui.mxx 63360000 0017D 000 4.1280.0.49152
    62 30000 0002E000 4.1280.0.49152 niVISAres2.dll
    RICHED32. DLL 40000 00006000 6.1.7601.17514 6FC
    Riched20.dll 61F70000 00076000 5.31.23.1230
    Wshtcpip.dll 73A 80000 00005000 6.1.7600.16385
    nisysapi.dll 68 has 00000-000B 2000 5.5.2.49152
    Dbghelp.dll 70F20000 000EB000 6.1.7601.17514
    -------------------- -------- -------- ------------------

    Application: C:\Program Files (x 86) \National Instruments\MAX\NIMax.exe
    User name: administrator
    OS version: 6.1.7601 (Service Pack 1)
    Exception code: C06D007E
    Exception addr: 74E0C42D

    Sender's address: 74E0C42D
    Function name: RaiseException
    Module name: KERNELBASE
    Parameters: 00000000 00000001 0518FD84 C06D007E
    Source file: (not available)

    Sender's address: 68A3C6F7
    Function name: DllUnregisterServer
    Module name: nisysapi
    Parameters: 00000000 0518FD50 005F59B8 0000001E
    Source file: (not available)

    Sender's address: 68A53D87
    Function name: DllUnregisterServer
    Module name: nisysapi
    Parameters: 00000350 68A791B8 005F59B8 00000000
    Source file: (not available)

    Sender's address: 68A0DC65
    Function name: nisysInitDiagnosticsByValue
    Module name: nisysapi
    Parameters: 68A 01680 00000001 68A93BB8 FFFFFF01
    Source file: (not available)

    Sender's address: 68A0DFC4
    Function name: nisysInitDiagnosticsByValue
    Module name: nisysapi
    Parameters: 005E2C40 00000000 00000001 00000001
    Source file: (not available)

    Sender's address: 68A 01698
    Function name: nisysInitDiagnosticsByValue
    Module name: nisysapi
    Parameters: 005E2C40 00000000 00000001 00000001
    Source file: (not available)

    Sender's address: 1BE27A73
    Function name: mxGetProvider
    Module name: mxcat
    Parameters: 020469F0 02047084 0518FED0 1BE76CBA
    Source file: (not available)

    Sender's address: 1BE30D2E
    Function name: mxGetProvider
    Module name: mxcat
    Parameters: 02029FA8 02047748 0518FF34 1BE21D4C
    Source file: (not available)

    Sender's address: 1BE35780
    Function name: mxGetProvider
    Module name: mxcat
    Parameters: 00000000 00000000 02047818 020469F0
    Source file: (not available)

    Sender's address: 1BE21D4C
    Function name: (not available)
    Module name: mxcat
    Parameters: 02029FA8 1BE6264D 0518FF7C 73DD3433
    Source file: (not available)

    Sender's address: 1BE21CDC
    Function name: (not available)
    Module name: mxcat
    Parameters: 02030018 00000000 00000000 9192C45C
    Source file: (not available)

    Sender's address: 73DD3433
    Function name: endthreadex
    Module name: MSVCR90
    Parameters: 00000000 0518FF94 7607338A 02047818
    Source file: (not available)

    Sender's address: 73DD34C7
    Function name: endthreadex
    Module name: MSVCR90
    Parameters: 02047818 0518FFD4 77119F72 02047818
    Source file: (not available)

    Sender's address: 7607338A
    Function name: BaseThreadInitThunk
    Name of the module: kernel32
    Parameters: 02047818 00000000 00000000 775D5D69
    Source file: (not available)

    Sender's address: 77119F72
    Function name: RtlInitializeExceptionChain
    Name of the module: ntdll
    Parameters: 02047818 00000000 00000000 73DD345E
    Source file: (not available)

    Sender's address: 77119F45
    Function name: RtlInitializeExceptionChain
    Name of the module: ntdll
    Parameters: 02047818 00000000 00000000 73DD345E
    Source file: (not available)

    If I could come with the OS discs for the thing, I think I'd do a new install of Windows 7.

    Mike...

  • How to activate the keys to generate and view the AWR reports Developer SQL

    Version: 4.0.3.16

    Build: HAND - 16.84

    S/n > (sid) > Performance > AWR report viewer

    I am able to select the start and end ID, but the following buttons are disabled:

    • Entries Toggel
    • Generate the report
    • Save to file
    • Open in browser

    What needs to be done to enable these buttons?

    Hello

    After entering start Id and the Id of the end, the button "report" will be activated, and then after that the report generated (by clicking the report generate) rest buttons button is activated. As shown in the image below.

    Hope it will be useful.

    Kind regards

    Sanjaya

  • Can any body help to get a script that can generate the sequence (length 3) with a combination of numbers and characters example: T11... TA1... TZ9... then on

    Can any body help to get a script that can generate the sequence (length 3) with a combination of numbers and characters example: T11... TA1... TZ9... then on

    With the help of the clause type

    Select sqnc

    from (select sqnc

    from (select 'T00"sqnc, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ordr

    of the double

    )

    model

    size of (0 I)

    measures (sqnc, ordr, length (ordr) len)

    rules iterate (1300) until (instr(sqnc[iteration_number],'~')! = 0)

    (sqnc [iteration_number] = case when sqnc [cv (i) - 1] is null

    then sqnc [0]

    of another substr (sqnc [iteration_number - 1], 1, 1) |

    -case when substr (sqnc [iteration_number - 1], 2, 1)<=>

    so when business substr (sqnc [iteration_number - 1], 3, 1)<>

    then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)), 1)

    of another nvl (substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)) + 1.1),'~ ')

    end

    end |

    -case when substr (sqnc [iteration_number - 1], 3, 1)<>

    then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 3, 1)) + 1.1)

    else ' 0'

    end

    end

    )

    )

    where instr(sqnc,'~') = 0

    Concerning

    Etbin

  • B2B generate the file with the file extension will start

    Hi guru B2B.

    We have a problem with the name of the output file. We have customized the java class to change the file name out based on operational needs. It works well, but recently, we see the file with the extension name from "start" are generated with size '0 '. The right files always generated with the appropriate content.

    Can someone tell us what is causing this problem?

    Thank you in advance,

    NAFTA Li

    Hi Alena

    I assume you are using a B2B channel tuned to retrieve messages in a folder. Please check if this channel to listen is to have the parameter enable selected marker.

    Disabling the marker Enable should avoid generating the file start in the folder.

    Thank you

    Arun

  • Please help me with the Alternative of queries to replace the UNION ALL for two queries

    Hi all

    I have the query to retrieve assets employees salary count and in so far as below:

    Select ename, emp_no, sum (sal_till_2010), sum (sal_till_2014) of

    (select emp_no, ename, salary as sal_till_2010, 0 as sal_till_2014 of employee e1

    where effective_date < = 1 January 2010 ' and not exists (select 1 from e2 employee_deletion where e2.emp_no = e1.emp_no and e2.deletion_date < = January 1, 2010 "")

    UNION ALL

    Select ename, emp_no, 0 as sal_till_2010, salary as employee e1 sal_till_2014 - here is a dummy 0 salary until 2010 for the union of all the

    where effective_date < = 1 January 2014 "and not exists (select 1 from e2 employee_deletion where e2.emp_no = e1.emp_no and e2.deletion_date < = 1 January 2014") "

    Group of emp_no, ename;

    In this query, I get the total salary until 2010 and until 2014 in the employee table, dates are dynamically passed to the procedure, and this can change.

    But assume the date above and let me know the alternative of queries to improve performance because I use Union ALL and read the same table twice in the above query.

    Advice me with request to read the table once to fetch the same data as the above query.

    Thanks in advance.


    Hello

    Thanks for the display of the data of the sample; It's very useful!

    I think OP wants something like this:

    WITH cutoff_dates AS

    (

    SELECT TO_DATE (January 1, 2010 ', ' DD/MM/YYYY') AS cutoff_date, 2010 UNDER the label OF dual UNION ALL

    SELECT TO_DATE (1 January 2014 ', "DD/MM/YYYY"), double 2014

    )

    SELECT e.emp_no, e.ename

    , NVL (SUM (CASE WHEN c.label = 2010 THEN e.salary END), 0) AS sal_till_2010

    , NVL (SUM (CASE WHEN c.label = 2014 THEN e.salary END), 0) AS sal_till_2014

    E employee

    JOIN cutoff_dates c ON e.effective_date<=>

    WHERE DOES NOT EXIST)

    SELECT 1

    Of employee_deletion ed

    WHERE ed.emp_no = e.emp_no

    AND ed.deletion_date<=>

    )

    E.emp_no GROUP, e.ename

    ORDER BY e.emp_no

    ;

    Output of your sample data:

    EMP_NO ENAME SAL_TILL_2010 SAL_TILL_2014

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

    1 Mickey 450 0

    2 Donald 750 0

  • Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside

    Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG

    I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page

    This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.

    CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.

  • Has anyone got the error after error Adobe statement: Mismatched start and called rollbackUserAction? (Action Import::import to generate the bitmap of the page to communicate WITH US)

    Help!  Full statement of the error:

    Adobe Muse CC has encountered an error and will now close.  Please report the last actions bit that you have taken to this error to the Adobe Muse CC team.

    Not match start and called rollbackUserAction? (Action Import::import to generate the bitmap of the page to communicate WITH US)

    Please send us the .muse file and the file MuseLog.txt to your Documents folder to [email protected]. Include a link to this thread for the context. If the file is larger than 20 MB, you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (if you use a service, please include your email address in the body of the message back, given that not all services to include it in the invite sharing they send.) Thank you.

  • Unable to generate the complete file with UTL_FILE

    Hello

    Please refer to the next simple room where I am generating a file on the DB server that should contain 100,000 lines of code.

    declare
    l_fil utl_file.file_type;

    cursor c1 is
    Select *.
    of rats_txtio;

    Start

    l_fil: = utl_file.fopen('SRS_CSD_DIR','rats3.txt','w',32767);

    I'm looping c1
    UTL_FILE.put_line (l_fil, to_char (i.SNO));

    UTL_FILE.fflush (l_fil);

    end loop;

    UTL_FILE.fclose (l_fil);

    end;

    rats_txtio is a table which has sno as one of the columns. The table has 100 thousand records, with sno from 1 and ending with 100000.

    However, after you generate the file, when I display the contents of the file on the server, there only 95123 lines, starting with 1 and ending with 95123.

    Let me know, if there is no parameter causing a restriction on the number of lines that can be generated, or is there something missing in the code.

    Thanking you,
    Rocky.

    Can you provide a reproducible test for us case?

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2    l_fil utl_file.file_type;
      3    cursor c1 is
      4    select rownum as sno
      5    from dual
      6    connect by rownum <= 100000;
      7  begin
      8    l_fil := utl_file.fopen('TEST_DIR','rats3.txt','w',32767);
      9    for i in c1 loop
     10      utl_file.put_line(l_fil,to_char(i.sno));
     11      utl_file.fflush(l_fil);
     12    end loop;
     13    utl_file.fclose(l_fil);
     14* end;
    SQL> /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    When I open this file in word and examine the properties it tells me there are 100,000 lines.

    Looks ok to me. What you do differently?

    How do you count the number of rows returned by your query?
    How do you count the number of lines in the file?

  • Generate the table of contents with chapter markers?

    It has been a while since I had to install and create a table of contents for a long document of single file, but I'm sure that I created TOCs in this way in the past. Then, why the text in the Section markers will appear in the table of contents? It is even possible to generate a table of contents that contains text of article marker?

    I use InDesign CS5 in Windows. I have a file single document I'm trying to generate a table of contents for. I designed a 16-page manual in an inDesign file that includes a cover page, table of contents page and seven "chapters."

    I created a separate section for each 'chapter' and used Chapter markers in the top of the page master for chapter names. It's something I did in the past of syntactically long documents containing several chapters.

    I put the first page of each 'chapter' as a new Section on the Pages panel. In numbering and Section Options for each page, I checked the Section getting started, Automatic Page numbering, the Style of Page numbering: 1,2,3,4... and in Section marker: I put the name of 'chapter' in the text box.

    InDesign_Pages_NumberingSectionOptions.jpg

    I've set up paragraph and character Styles and has used throughout my document. When I put in place the table of contents I created everything correctly, including a heading style that I used for all the sub lines in my file and my style of Section marker for chapter names.

    InDesign_TOC.jpg

    When I insert the table of contents, generate headers sub with their page numbers, but the titles of the chapters which are chapter markers do not generate. Am I missing something or is it still possible to enter the text of chapter markers in a table of contents? I'm sure that he's worked in the past. Can anyone offer a solution for this?

    Thank you

    Kat

    Looks like the markers section present only in the table of contents if they are on a document page. Try manually to the substitution of the frame.

  • generate the table with a column of numbers from 1 to 999999999

    Hi all, I'm about to generate the table like this:

    Select 1 double t
    Union of all the
    Select 2 double t
    Union of all the
    Select 3 t double

    But I need up to 999999999. Could you please find more simple decision?

    858774 wrote:
    But I need up to 999999999. Could you please find more simple decision?

    Don't know exactly what you are looking for, but if you want to just set the number from 1 to 999999999, query below would:

    select level from dual  connect by level <999999999;
    

    Vivek L

Maybe you are looking for

  • Y50-70 Windows regularly crashes when 1 TB SSHD is rotating upward

    I just received confirmation that my next level support has one of the Western Digital disks specified in the thread for the HDD Y50 gel. They were already looking to it for reports of slow keyboard entering after fashion 'sleep'. Slow keyboard typin

  • I can't play my Xbox, a game in offline mode

    I installed halo master Chief collection to my Xbox, but it want let me play offline. I went to my Xbox home and put it in offline mode. He still wanted to let me play. How to play my game without internet?

  • Someone knows how to install AutoCadLT 97 on Win7 x 64 - how?

    It worked on Win 7 x 32, but the results of the "setup" program in a complaint may not be compatible with Windows 64-bit.  I tried right click theInstallation Guide began to solve the problems, and when he says 'run the program' nothing happened, so

  • Windows 7 extends programs (not Widescren) 4:3 and 16:9 (wide screen)

    Hello.  Whenever I have used programs like Virtual PC 2007, WinUAE, etc., Windows keeps stretching programs on the screen whenever I go into full screen mode and in the options of the Windows Control Panel of configuration for the resolution of my sc

  • Materialized refresh time

    Hi allWe have a view, materialized in prodWe use a toad,I want to know what time interval internal the materialized view is refreshed.View MaterilizedSchemaUpdateLastRefreshR typexxxx_MVWXXXXNO.09/07/2015-12:33:42 AMALL THEThank you