Missing year in query

Hi all

Here is my sample data:

create table activity(
activity_id number,
general_id number,
customer_id number,
fy number,
value1 number,
CONSTRAINT "PK_ACTIVITY" PRIMARY KEY (activity_id)
);

insert into activity(activity_id,general_id,customer_id,fy,value1)
values(1,1,1,2009,10);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(2,1,1,2010,20);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(3,1,1,2011,30);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(4,1,1,2012,40);

insert into activity(activity_id,general_id,customer_id,fy,value1)
values(5,1,2,2009,50);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(6,1,2,2010,60);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(7,1,2,2011,70);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(8,1,2,2012,80);

insert into activity(activity_id,general_id,customer_id,fy,value1)
values(9,2,1,2011,90);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(10,2,1,2012,100);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(11,2,1,2013,110);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(12,2,1,2014,120);
insert into activity(activity_id,general_id,customer_id,fy,value1)
values(13,2,1,2015,130);

Here is my select statement

select fy, value1,
    dense_rank() over (partition by general_id order by fy ) rnk
   from activity
    where general_id = 2
and fy between 2008 and 2016

I'm pivoting values, but how do I show zero for the missing year, 2008, 2009... ?

FY 2008 should be RNK 1 to zero.

Thank you

Hello

user9542267 wrote:

Thank you guys for the reply and help.

I'm getting ORA-32033: unsupported column aliasing

In collaboration with Oracle 11 g.

There is no version 11f or 11 o'clock, so it is a bit ridiculous to say you have 11g.  Why not say something like "I work with Oracle 11.1.0.7.0?

Recursif WITH clauses, as used Hoek, working in Oracle 11.2 (and more).

Here's another way to get results like this:

OVER the years AS

(

SELECT 2008 - by year

+ LEVEL - HAVE 1 year

OF the double

CONNECT BY LEVEL<= 9   ="" --="" number="" of="">

)

...

It works in Oracle 9.1 (and more).

The 2008 values and 9 do not have to be hard-coded.  Any kind of expressions, such as bind variables or scalar subqueries, would work.

Tags: Database

Similar Questions

  • Columns nvarchar missing when you query a table in MSSQL, Oracle

    Hello

    I configured a dblink Oracle to MSSQL and when I ask a table, some columns are missing. The missing columns are all MSSQL nvarchar (4000) and dg4odbc trace file, it seems that the gateway database can not handle this type of data or maybe the size of these problematic columns.

    I wonder if there is an initialization parameter or any arrangement that might help hs to correctly map a MSSQL nvarchar (4000), knowing that the other columns to nvarchar with a smaller size can be mapped correctly?

    From the trace dg4odbc file, I get this error for every nvarchar columns (4000) MSSQL:

    Column:10 (title): dtype - 9 (WVARCHAR), prc / scl:4000 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 10 (TITLE): dtype - 9 (WVARCHAR): this type of data is not supoprted.

    I suspect oracle not be able to manage more than 4000 knowing that after some tests on a DEV server, all the columns less than 2000 in size MSSQL nvarchar are returned correctly by a query with Oracle "byte".

    Here's some info:

    Select * from v$ nls_parameters

    PARAMETER
    VALUE

    NLS_LANGUAGEFRENCH CANADIANNLS_TERRITORYCanadaNLS_CURRENCY$NLS_ISO_CURRENCYCanadaNLS_NUMERIC_CHARACTERS,NLS_CALENDARGREGORIANNLS_DATE_FORMATRR-MM-JJNLS_DATE_LANGUAGEFRENCH CANADIANNLS_CHARACTERSETWE8ISO8859P1NLS_SORTFRENCH CANADIANNLS_TIME_FORMATHH24:MI:SSXFFNLS_TIMESTAMP_FORMATRR-MM-JJ HH24:MI:SSXFFNLS_TIME_TZ_FORMATTZR HH24:MI:SSXFFNLS_TIMESTAMP_TZ_FORMATRR-MM-JJ HH24:MI:SSXFF TZRNLS_DUAL_CURRENCY$NLS_NCHAR_CHARACTERSETAL16UTF16NLS_COMPBINARYNLS_LENGTH_SEMANTICSBYTENLS_NCHAR_CONV_EXCPFAKE

    Classification of db Synprod MSSQL:

    Danish_Norwegian_CI_AS

    HS init file:

    # This is an example of initialization file of the agent that contains the HS settings

    # necessary for the database to ODBC gateway

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = SYNPROD

    #HS_FDS_TRACE_LEVEL = off

    HS_FDS_TRACE_LEVEL = DEBUG

    HS_NLS_LANGUAGE = UCS2

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < value >

    HS find file when you query a description of the table:

    Oracle Corporation - Thursday 15 August 2013 15:42:08.007

    Heterogeneous Agent release

    11.2.0.3.0

    Oracle Corporation - Thursday 15 August 2013 15:42:08.007

    Version 11.2.0.3.0

    Hgogprd entries

    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'DEBUG '.

    Hgosdip entries

    default assignment of 50 HS_OPEN_CURSORS

    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.

    HS_FDS_RECOVERY_PWD layout to the default

    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout

    HS_IDLE_TIMEOUT layout to the default 0 value

    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".

    layout default HS_NLS_NCHAR to "UCS2".

    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.

    layout HS_FDS_DATE_MAPPING default 'DATE '.

    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.

    HS_FDS_FETCH_ROWS layout without '100 '.

    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.

    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.

    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.

    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.

    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".

    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.

    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".

    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.

    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.

    parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.

    parameter HS_FDS_QUOTE_IDENTIFIER if there is no 'TRUE '.

    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.

    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.

    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.

    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION

    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.

    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.

    HS_FDS_WORKAROUNDS layout by default "0".

    Release of hgosdip, rc = 0

    ORACLE_SID is "dg4odbc.

    Product information:

    Port RLS / Upd:3 / 0 PrdStat:0

    Agent: Oracle Database Gateway for ODBC

    : Installation

    Class: ODBC, ClassVsn:11.2.0.3.0_0012, Instance: dg4odbc

    Release of hgogprd, rc = 0

    Hgoinit entries

    HOCXU_COMP_CSET = 1

    HOCXU_DRV_CSET = 178

    HOCXU_DRV_NCHAR = 1000

    HOCXU_DB_CSET = 31

    HS_LANGUAGE not specified

    RC = 1239980 trying to get environment variable LANG.

    HOCXU_SEM_VER = 102000

    Entry hgolofn to 2013 08/15-15: 42:08

    Out of hgolofn, rc = 0 to 2013 08/15-15: 42:08

    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.

    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.

    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".

    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "

    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.

    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.

    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.

    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.

    Invalid value of 64 for HS_FDS_SQLLEN_INTERPRETATION

    treat_SQLLEN_as_compiled = 1

    Out of hgoinit, rc = 0 to 2013 08/15-15: 42:08

    Entry hgolgon to 2013 08/15-15: 42:08

    name: synergiRead, reco:0, tflag:0

    Entry hgosuec to 2013 08/15-15: 42:08

    Out of hgosuec, rc = 0 to 2013 08/15-15: 42:08

    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.

    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".

    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.

    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.

    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.

    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.

    using synergiRead as the default value to "HS_FDS_DEFAULT_OWNER".

    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.

    Entry hgocont to 2013 08/15-15: 42:08

    HS_FDS_CONNECT_INFO = "SYNPROD".

    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.

    Entry hgogenconstr to 2013 08/15-15: 42:08

    DSN:SYNPROD, name: synergiRead

    OPTN:

    Entry hgocip to 2013 08/15-15: 42:08

    DSN:SYNPROD

    Out of hgocip, rc = 0 to 2013 08/15-15: 42:08

    Out of hgogenconstr, rc = 0 to 2013 08/15-15: 42:08

    Entry hgopoer to 2013 08/15-15: 42:08

    hgopoer, line 234: had native error 5701 and sqlstate 01000; message follows...

    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Data context has changed to 'Synprod '. {NativeErr 01000, 5701 =} [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Changed the setting of language to us_english. {NativeErr 01000, 5703 =}

    Out of hgopoer, rc = 0 to 2013 08/15-15: 42:08

    hgocont, line 2690: call SqlDriverConnect obtained sqlstate 01000

    Entry hgolosf to 2013 08/15-15: 42:08

    Out of hgolosf, rc = 0 to 2013 08/15-15: 42:08

    DriverName:sqlncli10.dll, DriverVer:10.50.4000

    DBMS name: Microsoft SQL Server DBMS Version: 10.50.4000

    Out of hgocont, rc = 0 to 2013 08/15-15: 42:08 with the ptr error FILE: hgocont.c LINE: 2690 ID:SQLDriverConnect

    SQLGetInfo Returns Y for SQL_CATALOG_NAME

    SQLGetInfo Returns 128 for SQL_MAX_CATALOG_NAME_LEN

    Out of hgolgon, rc = 0 to 2013 08/15-15: 42:08

    Entry hgoulcp to 2013 08/15-15: 42:08

    Entry hgowlst to 2013 08/15-15: 42:08

    Out of hgowlst, rc = 0 to 2013 08/15-15: 42:08

    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE

    Able TXN: isolation 2, Option: 0x2f

    SQLGetInfo Returns 128 for SQL_MAX_SCHEMA_NAME_LEN

    SQLGetInfo Returns 128 for SQL_MAX_TABLE_NAME_LEN

    SQLGetInfo returns 134 to SQL_MAX_PROCEDURE_NAME_LEN

    HOSGIP returned the value "TRUE" to HS_FDS_QUOTE_IDENTIFIER

    SQLGetInfo returns "(0 x 22) for SQL_IDENTIFIER_QUOTE_CHAR"

    14 capacity instance will be uploaded

    context: 0x00000000, capno:1989, add info: 0

    context: 0x0001ffff, capno:1992, add info: 0

    context: 0x00000000, capno:3042, add info: 0, translation: "42".

    context: 0x00000000, capno:3047, add info: 0, translation: "57."

    context: 0x00000000, capno:3049, add info: 0, translation: "59".

    context: 0x00000000, capno:3050, add info: 0, translation: "60".

    context: 0x00000000, capno:3066, add info: 0

    context: 0x00000000, capno:3067, add info: 0

    context: 0x00000000, capno:3068, add info: 0

    context: 0x00000000, capno:3069, add info: 0

    capno:3500, context: 0x00000001, add info: 91, translation: "42".

    capno:3501, context: 0x00000001, add info: 93, translation: "57."

    capno:3502, context: 0x00000001, add info: 107, translation: "59".

    capno:3503, context: 0x00000001, add info: 110, translation: "60".

    Out of hgoulcp, rc = 0 to 2013 08/15-15: 42:10

    Entry hgouldt to 2013 08/15-15: 42:10

    NO translation of DD for instance have been downloaded

    Out of hgouldt, rc = 0 to 2013 08/15-15: 42:10

    Entry hgobegn to 2013 08/15-15: 42:10

    tflag:0, original: 1

    Hoi:0x12ee18, ttid (len 38) is...

    00: 43415350 45522E45 414D2E45 4C4B454D [CASPER. EAM. ELKEM]

    10: 2E303030 33303039 662E3131 2E31362E [. 0003009f.11.16.]

    20: 31343533 3631 [145361]

    tbid (len 10) is...

    0: 0B 001000 D1370200 0104... 7....]

    Out of hgobegn, rc = 0 to 2013 08/15-15:42:11

    Entry hgodtab to 2013 08/15-15:42:11

    number: 1

    Table: ENERGY. D_TRANS

    Allocate hoada [0] @ 0000000005725F40

    Entry hgopcda to 2013 08/15-15:42:11

    Column:1 (TRANS): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:2 (UNIT_RESPONSIBLE): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:3 (TRANS_ID): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:4 (modified): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:5 (UNIT_IN_CHARGE): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:6 (PERSON_IN_CHARGE): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:7 (application): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:8 (Status): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:9 (TRANS_DATE): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 0, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:10 (title): dtype:-9 (WVARCHAR), prc / scl:4000 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 10 (TITLE): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:10 (Description): dtype:-9 (WVARCHAR), prc / scl:4000 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 10 (DESCRIPTION): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:10 (Comments): dtype:-9 (WVARCHAR), prc / scl:4000 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 10 (COMMENTS): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:10 (Deadline): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:11 (IMPORT_DATABASE_ID): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:12 (IMPORT_TRANS_ID): dtype:-9 (WVARCHAR), prc / scl:254 / 0, nullbl:1, byte: 508, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:13 (PERIOD_START): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 508, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:14 (created): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:0, byte: 508, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:15 (PERIOD_END): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 508, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:16 (FLG_CONFIDENTIAL): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 508, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15:42:11

    Entry hgopcda to 2013 08/15-15:42:11

    Column:17 (TMP_MAIL_CMT_CIRCULATION): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_CMT_CIRCULATION): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:17 (TMP_MAIL_CMT_IN_CHARGE_OF): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_CMT_IN_CHARGE_OF): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:17 (TMP_MAIL_CASE_COMMENT): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_CASE_COMMENT): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15:42:11

    Column:17 (TMP_MAIL_RECEIVERS_TO): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_RECEIVERS_TO): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:17 (TMP_MAIL_RECEIVERS_CC): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_RECEIVERS_CC): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:17 (TMP_MAIL_RECEIVERS_BCC): dtype:-9 (WVARCHAR), prc / scl:4000 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Column 17 (TMP_MAIL_RECEIVERS_BCC): dtype - 9 (WVARCHAR): this data type is not supported.

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:17 (DATE_EXT_1): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:18 (DATE_EXT_2): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:19 (DATE_EXT_3): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:20 (DATE_EXT_4): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:21 (DATE_EXT_5): dtype:93 (TIMESTAMP), prc / scl:23 / 3, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:22 (FLG_REGENERATE_INDEX): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:23 (CLOSED_IN_DAYS): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:24 (PERSON_EXT_1): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:25 (PERSON_EXT_2): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:26 (watch): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:27 (Shift): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:28 (CHECK_LIST_CATEGORY): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:29 (INVOLVED_PERSONS): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:30 (FLG_ALLOW_ACCESS_PW): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 8000, sign: 1 radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:31 (CASE_PW): dtype:-9 (WVARCHAR), prc / scl:80 / 0, nullbl:1, byte: 160, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:32 (TMP_BUSINESS_TYPE): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 160, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:33 (FLOAT_EXT_1): dtype:6 (FLOAT), prc / scl:53 / 0, nullbl:1, byte: 160, sign: 1, radix: 2

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:34 (FLOAT_EXT_2): dtype:6 (FLOAT), prc / scl:53 / 0, nullbl:1, byte: 160, sign: 1, radix: 2

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:35 (FLOAT_EXT_3): dtype:6 (FLOAT), prc / scl:53 / 0, nullbl:1, byte: 160, sign: 1, radix: 2

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:36 (FLOAT_EXT_4): dtype:6 (FLOAT), prc / scl:53 / 0, nullbl:1, byte: 160, sign: 1, radix: 2

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:37 (FLOAT_EXT_5): dtype:6 (FLOAT), prc / scl:53 / 0, nullbl:1, byte: 160, sign: 1, radix: 2

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:38 (TRANS_DATE_HOUR): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:1, byte: 160, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    Entry hgopcda to 2013 08/15-15: 42:12

    Column:39 (STATUS_TEMP): dtype:4 (an INTEGER), prc / scl:10 / 0, nullbl:0, byte: 160, sign: 1, radix: 10

    Out of hgopcda, rc = 0 to 2013 08/15-15: 42:12

    The hoada for table ENERGY. D_TRANS follows...

    hgodtab, line 1099: print hoada @ 0000000005725F40

    MAX: ACTUAL 39: 39, BRC:1, WHT = 6 (TABLE_DESCRIBE)

    hoadaMOD bit-values found (0x20: NEGATIVE_HOADADTY, 0x40: TREAT_AS_NCHAR, 0x400: UNICODE_COLUMN)

    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME

    INTEGER 4 N 4 4 0 / 0 0 0 0 TRANS

    INTEGER 4 N 4 4 0 / 0 0 0 0 UNIT_RESPONSIBLE

    -5 BIGINT Y 8 8 0 / 0 0 0 20 TRANS_ID

    N DATE 91 16 16 0 / 0 0 0 0 MODIFIED

    INTEGER 4 N 4 4 0 / 0 0 0 0 UNIT_IN_CHARGE

    INTEGER 4 N 4 4 0 / 0 0 0 0 PERSON_IN_CHARGE

    INTEGER 4 N 4 4 0 / 0 0 0 0 APPLICATION

    INTEGER 4 N 4 4 0 / 0 0 0 0 STATUS

    Y DATE 91 16 16 0 / 0 0 0 0 TRANS_DATE

    Y DATE 91 16 16 0 / 0 1000 0 440 DELAY

    INTEGER 4 4 4 Y 0 / 0 0 0 0 IMPORT_DATABASE_ID

    12 VARCHAR Y 508 508 128 / 254 1000 0 440 IMPORT_TRANS_ID

    Y DATE 91 16 16 0 / 0 0 0 0 PERIOD_START

    N DATE 91 16 16 0 / 0 0 0 0 CREATED

    Y DATE 91 16 16 0 / 0 0 0 0 PERIOD_END

    INTEGER 4 N 4 4 0 / 0 0 0 0 FLG_CONFIDENTIAL

    Y DATE 91 16 16 0 / 0 1000 0 440 DATE_EXT_1

    Y DATE 91 16 16 0 / 0 0 0 0 DATE_EXT_2

    Y DATE 91 16 16 0 / 0 0 0 0 DATE_EXT_3

    Y DATE 91 16 16 0 / 0 0 0 0 DATE_EXT_4

    Y DATE 91 16 16 0 / 0 0 0 0 DATE_EXT_5

    INTEGER 4 4 4 Y 0 / 0 0 0 0 FLG_REGENERATE_INDEX

    INTEGER 4 4 4 Y 0 / 0 0 0 0 CLOSED_IN_DAYS

    INTEGER 4 N 4 4 0 / 0 0 0 0 PERSON_EXT_1

    INTEGER 4 N 4 4 0 / 0 0 0 0 PERSON_EXT_2

    INTEGER 4 N 4 4 0 / 0 0 0 0 OBSERVER

    INTEGER 4 N 4 4 0 / 0 0 0 0 UPDATE

    INTEGER 4 N 4 4 0 / 0 0 0 0 CHECK_LIST_CATEGORY

    INTEGER 4 4 4 Y 0 / 0 0 0 0 INVOLVED_PERSONS

    INTEGER 4 N 4 4 0 / 0 0 0 0 FLG_ALLOW_ACCESS_PW

    12 VARCHAR Y 160 160 128 / 80 1000 0 440 CASE_PW

    INTEGER 4 4 4 Y 0 / 0 0 0 0 TMP_BUSINESS_TYPE

    Y DOUBLE 8 8 8 53 / 0 0 0 0 FLOAT_EXT_1

    Y DOUBLE 8 8 8 53 / 0 0 0 0 FLOAT_EXT_2

    Y DOUBLE 8 8 8 53 / 0 0 0 0 FLOAT_EXT_3

    Y DOUBLE 8 8 8 53 / 0 0 0 0 FLOAT_EXT_4

    Y DOUBLE 8 8 8 53 / 0 0 0 0 FLOAT_EXT_5

    INTEGER 4 4 4 Y 0 / 0 0 0 0 TRANS_DATE_HOUR

    INTEGER 4 N 4 4 0 / 0 0 0 0 STATUS_TEMP

    Out of hgodtab, rc = 0 to 2013 08/15-15: 42:12

    Entry hgodafr, cursor IDs 0 to 2013 08/15-15: 42:12

    Free Hoada @ 0000000005725F40

    Out of hgodafr, rc = 0 to 2013 08/15-15: 42:12

    Thanks in advance.

    Sébastien

    Maximum precision of Oracle nvarchar2 is 2000. You have a nvarchar (4000), which is greater than the maximum precision of Oracle and must be mapped to the long data type in Oracle. But that only works when the Oeacle database character set is a set of Unicode characters - otherwise you would lose information. The character set of your database is WE8ISO8859P1, so you would not be able to display all the characters as a result, the column is removed from the selection list.

    Which is also described in the manual of DG4ODBC: http://docs.oracle.com/cd/E11882_01/gateways.112/e12070.pdf

    See A Appendix Data Type Mapping:

    SQL_WLONGVARCHAR ALONG if Oracle DB Character Set = Unicode. Otherwise, it is not supported

    -Klaus

  • Pivot query

    Hi all

    I wrote a pivot query but it is not giving me the expected output.

    with test as
    ( select 'outgoing' type_of_call, 'local' sub_type_call, '1sec' pulse, 0.3 call_charge from dual union all
      select 'outgoing' type_of_call, 'STD' sub_type_call, '2sec' pulse, 1.5 call_charge from dual union all
      select 'outgoing' type_of_call, 'ISD' sub_type_call, '1sec' pulse, 4 call_charge from dual union all
      select 'SMS' type_of_call, 'local' sub_type_call, '1' pulse, 0.5 call_charge from dual union all
      select 'SMS' type_of_call, 'STD' sub_type_call, '1' pulse, 1 call_charge from dual union all
      select 'SMS' type_of_call, 'ISD' sub_type_call, '1' pulse, 3 call_charge from dual
    )
    select * from test
    pivot(count(type_of_call) for (sub_type_call) in ('local','STD','ISD') );
    
    O/P should look like
    Type_of_call         pulse_local     charge_local  Pulse_STD   charge_STD  pulse_ISD  charge_isd
    outgoing             1sec            0.3            2sec        1.5         1sec        4
    SMS                  1               0.5            1           1           1           3
    
    
    
    

    Is there something that I am missing in the query?

    Thank you

    SID

    SQL> with test as
    ( select 'outgoing' type_of_call, 'local' sub_ty, '1sec' pulse, 0.3 call_charge from dual union all
      select 'outgoing' type_of_call, 'STD' sub_ty, '2sec' pulse, 1.5 call_charge from dual union all
      select 'outgoing' type_of_call, 'ISD' sub_ty, '1sec' pulse, 4 call_charge from dual union all
      select 'SMS' type_of_call, 'local' sub_ty, '1' pulse, 0.5 call_charge from dual union all
      select 'SMS' type_of_call, 'STD' sub_ty, '1' pulse, 1 call_charge from dual union all
      select 'SMS' type_of_call, 'ISD' sub_ty, '1' pulse, 3 call_charge from dual
    )
    select *
    from test
    pivot(max(CALL_CHARGE) as CALL_CHARGE, max(pulse) as pulse for (sub_ty) in ('local' as local,'STD' as std,'ISD' as isd) )
    order by type_of_call desc  2    3    4    5    6    7    8    9  10  11  12
    13  /
    
    TYPE_OF_ LOCAL_CALL_CHARGE LOCA STD_CALL_CHARGE STD_ ISD_CALL_CHARGE ISD_
    -------- ----------------- ---- --------------- ---- --------------- ----
    outgoing                .3 1sec            1.5 2sec              4 1sec
    SMS                    .5 1                  1 1                  3 1
    
  • Query in days

    Dear gurus,
    I'm under query below for more than 20 hours now and it is still ongoing.

    SELECT clnt,
    sg_cd,
    bg_dt,
    end_dt,
    working_days (submit_dt, process_dt) AS working_days
    OF prc_clms
    WHERE sg_cd IN ('2', '3', '12', '15',' 16', ' 18')
    AND (TO_DATE('31-JAN-13') - bg_dt) < = 450
    AND amount_paid > 0;

    -as the elongated table (prc_clms) contains about 280 Mill record and this table is partitioned index BITMAP.
    -I am computer workng days by using the function working_days (submit_dt, process_dt)

    Please let me know if something is missing in my query, or anything that should not be used.

    Any advise is much appreciated!
    JP
  • To get the last date of the year

    Can someone tell me how to get the date of the year from the first date of last year:
    My query below gives the last date of the month

    SELECT LAST_DAY (ADD_MONTHS (TO_DATE (JANUARY 1, 2012 "," DD/MM/YYYY '), 12-))
    TO_NUMBER (to_char (sysdate, 'mm'))) OF the DOUBLE

    Thnx in advance
    SELECT LAST_DAY (ADD_MONTHS (TO_DATE ('01/01/2012', 'DD/MM/YYYY'), 11))
      FROM DUAL
    
  • A query with the weeks/months/quarters without filling data

    During recovery of monthly data from any data source, experts how CF (which I am not one) creates results for the time intervals where there is no results? I.E. event data to draw per month, how can I show that there can be no activity for a given month? Thanks in advance.

    There is a way to make more efficient approach to dempster.

    Step 1: run your query from the database. (1 queries)
    Step 2 - create a cold fusion query to get all years-months in the range of dates of interest (2 requests)
    Step 3 - make a query of queries for years-monthly query 2 that are not in the application 1. (3 requests)
    Step 4: make a query of queries that questions 1 and 3 trade unions.

  • in the query expression syntax error

    I get the following error message:

    Microsoft] [ODBC Microsoft Access driver] syntax error (missing operator) in query expression 'customerid_cus ='.

    for the following code:

    If IsEmpty (Request.Form("company_cus")) then

    rs_company. Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE customerid_cus =" & Request.QueryString ("customerid") & "". "

    On the other

    rs_company. "Source =" SELECT customerid_cus, company_cus FROM customers_cus WHERE company_cus = ' "& Request.Form ("company_cus") &" "'"

    End If

    What could be the problem?

    Are you sure that you pass the customerid querystring when the form
    company_cus is empty.

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "aonefun" wrote in message
    News:epmf3n$f3u$1@forums. Macromedia.com...
    > I get the following error message:
    >
    [> Microsoft] [ODBC Microsoft Access driver] Syntax error (missing operator)
    > in
    > query expression 'customerid_cus ='.
    >
    > to the following code:
    >
    > If IsEmpty (Request.Form ("company_cus")) then
    >
    > rs_company. Source = "SELECT customerid_cus, company_cus FROM".
    > customers_cus
    "> WHERE customerid_cus =" & Request.QueryString ("customerid") & ""
    >
    > Other
    >
    > rs_company. Source = "SELECT customerid_cus, company_cus FROM".
    > customers_cus
    > WHERE company_cus = ' "& Request.Form ("company_cus") &" ' "
    >
    > End If
    >
    > What could be the problem?
    >

  • Using a Variable to create the SQL query

    I need to create a "dynamic" update query I want to hold the meeting of the command in a variable and then refer to the query variable.

    Example:

    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    PBname = "Fred Flintstone",
    pbnumber = ' 555-555-1234. '
    pbage = 25
    where recnum = 24
    < / cfquery >

    I would like use this code:
    < cfset upst = "pbname ="Fred Flintstone", pbnumber =' 555-555-1234, pbage = 25" > ".
    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    #upst #.
    where recnum = 24
    < / cfquery >

    When I run the present, I get the following error message:
    Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] syntax error (missing operator) in query expression "Fred Flintstone".

    The SQL is:
    Update db_table_name set pbname = "Fred Flintstone", pbnumber = "555-555-1234", pbage = 25 where recnum = 24

    I know it's hard to see, but the "are 2' No 1". I have no idea why Coldfusion (or perhaps the ODBC driver?) puts the 2nd "in the command that causes the errors.

    Anyone can shed some light on this subject?

    While it is a simple example, my application is much more complex. I have over 50 fields in the update and based on changes to the values of the form, I may need to update all fields, some fields or NO fields.

    Can I use < cfif > test if all the fields have changed and if so, include them in the update command, but if NONE of the fields have changed, I update the command vacuum and therefore get an error. I want to avoid having to test changes twice (once to determine if I do the update and twice to perform the update).

    Thank you
    Mike.

    CF automatically escapes single quotes, he must preserve them


    Update db_table_name set
    #PreserveSingleQuotes (upst) #.
    where recnum = 24

    Ken

  • 2 query fields

    Hello

    I have 2 tables

    Table 1
    Id_interface - Varchar
    ERROR_DESC - Varchar


    Table2
    cod_interface - Varchar
    msg_erreur - Varchar


    Values of table 1

    ID_INTERFACE ERROR_DESC
    CODE 01 ERROR not FOUND 1
    01 FOUND 2 ERROR CODE
    CODE 01 ERROR 3 not FOUND
    XPTO MISSING ERROR CODE 01
    02 LACK OF VALUES 4 ERROR CODE
    02 ERROR CODE 2 PRESS 1 HELP
    02 ERROR CODE 3 PRESS HELP 2
    03 4 ERROR CODE
    . .
    . .
    . .


    Table 2 values

    cod_interface msg_erreur
    CODE 01 ERROR not FOUND 1
    01 FOUND 2 ERROR CODE
    XPTO MISSING ERROR CODE 01
    02 ERROR CODE
    ERROR MISSING 02

    The query that I have that does not work:

    Select ioi. Eef, siebel.cx_ioi_log law erros_eai_func ERROR_DESC
    where eef.cod_interface don't like ioi. ID_INTERFACE
    and eef.error_msg not in law. ERROR_DESC

    I have this in the query results is that this set:

    CODE 01 ERROR 3 not FOUND
    03 4 ERROR CODE


    Can you help me?

    Hello

    I think you need something like this:

    SELECT   *
    FROM      siebel.cx_ioi_log     ioi
    WHERE      NOT EXISTS     (
                        SELECT     NULL
                   FROM     erros_eai_func
                   WHERE     ioi.interface_id     = cod_interface
                   AND     ioi.error_desc          LIKE error_msg || '%'
                   )
    ;
    

    Furthermore, Anurag solution was just the last line of the code he posted. Subqueries were there simply to provide some data, given that you post any CREATE TABLE or INSERT statements.

  • DeskJet 932C - the power light is on and the cartridge flashing

    Hello! I know my DeskJet 932C is 'old', but it seems to be in excellent condition.  First time that I had a problem.  The power light is on and the cartridge is flashing.  When I open the cover, the plateau of the cartridge moves to the far left.  The arrow points to the unfortunate color cartridge.  The missed years ago color cartridge.  I use my printer to print B & W, so I've been printing with the empty cartridge in place for years.

    I removed a reinserted the color and B & W cartridges and turn on the power and turns off.  I used the HP print and scan doctor, and it's scan does not have something wrong, I clicked on print a test page, and nothing happens.  The test page is listed as 1 document in the queue.   Status: error - printing.

    The printer has been in its current position on my desk for years.  It was not known of any trauma... None does damage... no power failure.  It's clean.  Has been connected to 4 laptops and uninterrupted service.

    I prefer not to buy a new color cartridge.

    Would appreciate help.  I would like to know what it means and if there is a solution.

    Thank you!

    Focus21

    The printer will perform electrical cartridges to light control and a few other times.  If an error printing can be blocked to avoid damaging the printer.  Clean the contacts of the cartridge as shown in the document here can solve the problem, otherwise you will probably need to replace the color cartridge.  The 932 Deskjet will allow printing with an empty cartridge, but for years, the cartridge may fail electrically and needs to be replaced.

  • Helps with the sum on partition

    Hi all

    This is my sample data:

    create table general(
    general_id number,
    general_type nvarchar2(10),
    start_year number,
    end_year number,
    fy number,
    fy_value number
    );
    
    insert into general(general_id, general_type, start_year, end_year, fy, fy_value)
    values (1, 'data 1', 2009, 2013, 2010, 10);
    insert into general(general_id, general_type, start_year, end_year, fy, fy_value)
    values (1, 'data 1', 2009, 2013, 2013, 20);
    insert into general(general_id, general_type, start_year, end_year, fy, fy_value)
    values (2, 'data 2', 2010, 2014, 2010, 5);
    insert into general(general_id, general_type, start_year, end_year, fy, fy_value)
    values (2, 'data 2', 2010, 2014, 2013, 15);
    
    SELECT general_id, general_type, fy,
      sum(fy_value) over (partition by general_id, general_type order by fy) sum_fy_value
    FROM general
    

    My results:

    
    GENERAL_ID    GENERAL_TYPE    FY    SUM_FY_VALUE
    1    data 1    2010    10
    1    data 1    2013    30
    2    data 2    2010    5
    2    data 2    2013    20
    

    How can I complete the sum of the missing years (with leading zeros), from my year start and end?

    Example of final results:

    GENERAL_ID    GENERAL_TYPE    FY    SUM_FY_VALUE
    1    data 1    2009    0
    1    data 1    2010    10
    1    data 1    2011    10
    1    data 1    2012    10
    1    data 1    2013    30
    2    data 2    2010    5
    2    data 2    2011    5
    2    data 2    2012    5
    2    data 2    2013    20
    2    data 2    2014    20
    

    Oracle Database 11g - 11.2.0.4.0

    Thanks in advance.

    SQL> with t
      2  as
      3  (
      4   select general_id
      5        , general_type
      6        , start_year + (level-1) fy
      7     from (
      8            select distinct general_id
      9                 , general_type
     10                 , start_year
     11                 , end_year
     12              from general
     13          )
     14  connect
     15       by level <= end_year - start_year + 1
     16      and prior general_id = general_id
     17      and prior dbms_random.value is not null
     18  )
     19  select t.general_id
     20       , t.general_type
     21       , t.fy
     22       , sum(nvl(g.fy_value, 0)) over(partition by t.general_id order by t.fy) sum_fy_value
     23    from t
     24    left join
     25         general g
     26      on t.general_id = g.general_id
     27     and t.fy         = g.fy
     28   order
     29      by general_id
     30       , fy;
    
    GENERAL_ID GENERAL_TY         FY SUM_FY_VALUE
    ---------- ---------- ---------- ------------
             1 data 1           2009            0
             1 data 1           2010           10
             1 data 1           2011           10
             1 data 1           2012           10
             1 data 1           2013           30
             2 data 2           2010            5
             2 data 2           2011            5
             2 data 2           2012            5
             2 data 2           2013           20
             2 data 2           2014           20
    
    10 rows selected.
    

    Note: I must say that it is one of these well posed the question, which we do not often here. I appreciate you providing sample data and expected outcomes in a well-formatted way and also provides the oracle version 4-digit.

  • With the help of download file Denes Kubicek

    I'm under APEX 4.2.5.00.08 and I'm trying to implement the method of application process of download of a file, as described in https://apex.oracle.com/pls/otn/f?p=31517:15.

    I follow the instructions listed at the bottom of the page


    The link that is generated is:


    https://testapex4.UTPA.edu/appstest/f?p=124:0:452883450868:DOWNLOAD_FILES: & debug. : t_file: #14479506063099434 #.

    The problem is when I click the link I get an error message 'Missing '=' in the query string or post the form. "

    Missing '=' in query string or form post

    FATHER's name: appstest

    PROCEDURE: f

      URL : http://testapex4.utpa.edu:80/appstest/f? p = 124:0:452883450868:DOWNLOAD_FILES: & debug.:t_file:

    PARAMETERS:

    Stuck in the mud. Seemed to be a simple method.

    I would say that there is something wrong with the definition of your link, perhaps if you provide can we check?

    The fact that I can see "& debug" suggests me substitution does not work, probably due to distinguish uppercase / lowercase. Try & DEBUG.

    2.7 understand the Substitution of strings

  • Used to synchronize files in creative cloud.

    I searched the forums, but short of reinstalling, I don't know what to try.  Noticed this problem every day for at least two weeks. Here's a piece of the log file. Any ideas?

    Thank you.

    20150322 - 210908.549: - 3/22 / 2015 21:09:08: job 'CreativeCloudFiles': ANALYSIS started by change on "SHAWN-PC" (CoreSync 1.3.2.307 x 86 on Windows 7, Wow32on64).

    20150322 - 210908.549: CreativeCloudFiles: C:\Users\Shawn\Creative Cloud Files <>- acsl://scss.adobesc.com/files (acsl://scss.adobesc.com:80 / files) [DirectDest], ConflictOnDiffItemsNoCommonHistory, CleanupOldGens = 24 m, TmpDest, SameBeforeSyncAsInAnalyze, DetectMovesAndRenames, DetectFolderMoves, WorkerThreads = 8, FileLinksDrill, CopyCreateTime, ResolveConflicts is RightToLeft, RenamesLosingFile

    20150322 - 210908.549: exclude the system, exclude Thumbs.db | DS_Store | * .idlk | * .mulk | * .crdownload

    20150322 - 210908.549: "SyncPluginData" of work: analyze finished OK

    20150322 - 210908.549: info: [DesignLibraryPlugin] [DesignLibrarySyncHook.cpp:onPostSync:168] SynkHook root is: SyncPluginData, the status is: 0!

    20150322 - 210908.549: info: [SynKit] [SynKitSyncHook.cpp:onPostSync:198] SynkHook root is: SyncPluginData, the status is: 0!

    20150322 - 210908.627: left: No. state file found, new State will be built

    20150322 - 210908.627: left: files: 645 (26 excluded). Records: 56 (excluded 0). Time (s): analysis of the case: 0.078 (9320 f/s), compare: 0.000

    20150322 - 210908.705: right: No. state file found, new State will be built

    20150322 - 210908.705: right: files: 645 (0 excluded). Records: 56 (excluded 0). Time (s): analysis of the case: 0.078 (8987 f/s), compare: 0.000

    20150322 - 210908.736: changes: 4, conflicts: 0, CopyTime: 0, CopyState: 0/0, errors: 0

    20150322 - 210908.736: from left to right: copy the file: 4

    20150322 - 210908.736: all nodes (live + dead): 727

    20150322 - 210908.736: live all files: 671, records: 56

    20150322 - 210908.736: - 3/22 / 2015 21:09:08: analysis is complete. Time of 00:00:00, speed: many files/s -.

    20150322 - 210908.736: "CreativeCloudFiles" of work: analyze finished OK

    20150322 - 210908.736: = 22/03/2015 21:09:08: job 'CreativeCloudFiles': SYNC started with change on "SHAWN-PC" =.

    20150322 - 210908.736: CreativeCloudFiles: C:\Users\Shawn\Creative Cloud Files <>- acsl://scss.adobesc.com/files (acsl://scss.adobesc.com:80 / files) [DirectDest], ConflictOnDiffItemsNoCommonHistory, CleanupOldGens = 24 m, TmpDest, SameBeforeSyncAsInAnalyze, DetectMovesAndRenames, DetectFolderMoves, WorkerThreads = 8, FileLinksDrill, CopyCreateTime, ResolveConflicts is RightToLeft, RenamesLosingFile

    20150322 - 210908.736: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 - 210908.736: BaseControllerDelegate::pushSyncStatus: CoreSyncStateSyncing (2) sent

    20150322 - 210908.736: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm (Ovr)

    20150322 - 210908.736: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm (Ovr)

    20150322 - 210908.752: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm (Ovr)

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\mountain-high.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/mountain-high.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\traveling-lighter.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\filmmakers.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/filmmakers.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion page Web/New site 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    20150322 - 210908.752: UL start: sales of movies/sales/CLC records.xls (Ovr)

    20150322 - 210908.752: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm (Ovr)

    20150322 - 210908.752: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm (Ovr)

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\filmmakers.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/filmmakers.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion page Web/New site 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm": SQL logic error or missing database

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding awaiting the entry with the name "/ files/movies/sales/CLC records.xls sales": SQL logic error or missing database

    20150322 - 210908.752: UL start: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm (Ovr)

    20150322 - 210908.752: copy on 'Cloud Files\Films\Sales\CTC C:\Users\Shawn\Creative sale records.xls'-> ' acsl://scss.adobesc.com:80/files/sales of movies/sales/CLC records.xls '.

    -ERROR: Copy of the file: Error adding awaiting the entry with the name "/ files/movies/sales/CLC records.xls sales": SQL logic error or missing database

    20150322 - 210908.752: finish UL: sales of movies/sales/CLC records.xls (Ovr): copy of the file: Error adding awaiting the entry with the name "/ files/movies/sales/CLC records.xls sales": SQL logic error or missing database

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\mountain-high.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/mountain-high.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm": SQL logic error or missing database

    20150322 - 210908.752: SqlStatement::prepare: error is "SQL logic or missing database error" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    20150322 - 210908.752: AcslSvcFS::CreatePendingRequestEntry: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    «20150322 210908.752: copy 'C:\Users\Shawn\Creative Cloud Files\Films\Poetry moving webpage\New site 5-17-12\pim-website-newlogohtml5\traveling-lighter.htm'-> ' acsl://scss.adobesc.com:80 / files/movies/Poetry in Motion Web/New site 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm page»

    -ERROR: Copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    20150322 - 210908.752: finish UL: / movies/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm (Ovr): copy of the file: Error adding pending the entry with the name "/ files/movies/Poetry in Motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm": SQL logic error or missing database

    20150322 - 210908.752: synchronization complete with 7 mistakes. Click the button to see the errors of synchronization errors

    20150322 - 210908.752: items synchronized OK: 0, errors: 7

    20150322 - 210908.752: = 22/03/2015 21:09:08: synchronization is complete. Duration: 00:00:00, speed: =.

    20150322 - 210908.752: info: [DesignLibraryPlugin] [DesignLibrarySyncHook.cpp:onPostSync:168] SynkHook root is: CreativeCloudFiles, the status is: 0!

    20150322 - 210908.752: info: [SynKit] [SynKitSyncHook.cpp:onPostSync:198] SynkHook root is: CreativeCloudFiles, the status is: 0!

    20150322 - 210908.752: BaseControllerDelegate::pushQuota {storageFree:20360723037, storageTotal:21474836480}

    20150322 - 210908.752: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 - 210908.767: BaseControllerDelegate::pushSyncStatus: CoreSyncStateSyncError (3) sent

    20150322 - 210908.767: info: BaseControllerDelegate: adding error (SibTErr_LocalErr, SibErrCode_None) for the path access/Films/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/mountain-high.htm (BaseControllerDelegate.cpp.cosy::BaseControllerDelegate:pushSyncErrorStatus.288)

    20150322 - 210908.767: info: BaseControllerDelegate: adding error (SibTErr_LocalErr, SibErrCode_None) for the path access/Films/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/traveling-lighter.htm (BaseControllerDelegate.cpp.cosy::BaseControllerDelegate:pushSyncErrorStatus.288)

    20150322 - 210908.767: info: BaseControllerDelegate: adding error (SibTErr_LocalErr, SibErrCode_None) for the path access/Films/poetry in motion site Web/New 5-17-12/pim-website-newlogohtml5/filmmakers.htm (BaseControllerDelegate.cpp.cosy::BaseControllerDelegate:pushSyncErrorStatus.288)

    20150322 - 210908.767: info: BaseControllerDelegate: error (SibTErr_LocalErr, SibErrCode_None) for path adding sales sales/Films/CLC records.xls (BaseControllerDelegate.cpp.cosy::BaseControllerDelegate:pushSyncErrorStatus.288)

    20150322 - 210908.767: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 - 210908.767: BaseControllerDelegate::pushSyncStatus: CoreSyncStateSyncError (3) sent

    20150322 - 210908.767: BaseControllerDelegate::pushSyncErrorStatus: received 4 errors with the label "cannot synchronize 4 files. shouldSuppressErrorNotification: FALSE

    20150322 - 210908.923: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 210908.923: WControllerDelegate::syncStatus State 3 (CoreSyncStateSyncError)

    20150322 - 210937.267: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 - 210937.277: WControllerDelegate::quota {storageFree:20360723037, storageTotal:21474836480}

    20150322 210937.277: WControllerDelegate::syncStatus State 3 (CoreSyncStateSyncError)

    20150322 - 211043.238: error: [DesignLibraryPlugin] [DesignLibraryMessageHook.cpp:onErrorReceived:116] "DestinationUnreachable" MsgType, errorInfo is ' < fault > < endpoint point > < endPointId > 3280.1426970447 < / endPointId > < appId > ACCC < / appId > < appVersion > 1.9.0 < / appVersion > < / endpoint > < / breakdowns >!

    20150322 - 211043.238: error: [SynKit] [SynKitMessageHook.cpp:onErrorReceived:135] "DestinationUnreachable" MsgType, errorInfo is ' < fault > < endpoint point > < endPointId > 3280.1426970447 < / endPointId > < appId > ACCC < / appId > < appVersion > 1.9.0 < / appVersion > < / endpoint > < / breakdowns >!

    Hello

    Your log files show that your local creative cloud database is missing or damaged.

    • SqlStatement::prepare: there was an error "SQL logic error or missing database" query "INSERT INTO pending_requests (created, item_id, ev_type, f_path, request_id) VALUES (: eventTime,: itemId,: path,: name,: eventType,: requestId)"

    Please close the creative cloud, then navigate to C:\Users\Shawn\AppData\Roaming\Adobe\CoreSync and delete all files ending in .db then re start creative cloud.

    Thank you

    Warner

  • How can I download a flash drive on my Samsung pro tab 12.2 tablets. What type of application to apply on my Android tablets.

    Can you please help me to download different flash player or application on my shelves.

    Adobe support dropped for Flash Player on Android a few years ago.  Although it is possible to side load an old version of Flash Player, you're going to Miss years of updates of security, which leaves your tablet at risk.

    The only good option I know for now is that browser, which extends from Flash content in the cloud and disseminates results to your tablet.  This gets you the features of the current Flash versions, without the risk to run a local version, insecure.

    Puffin Web browser - the fastest mobile browser with Flash support on cloud on iPad, iPhone and Android.

  • Glenmike.

    I have a Tablet Android player E. I had Adobe Flash Player running on this subject, some how lost and cannot

    recover one had the same problem?

    Flash Player for Android reached its end of life a few years ago.  While you can install an older version, missing years of security patches, who put your device in danger.

    As an alternative, the Puffin monk, browser - fastest with Flash mobile browser support on cloud on iPad, iPhone and Android running Flash Player on a server in the cloud and broadcasts the result on the device.  This gives you a secure way to run a recent version of Flash.

Maybe you are looking for

  • Instructions for AMPERAGE satellite 1905-S303 CPU fan

    Hi guys,. First of all thank you for your help in advance. My fan is this similar to a buzzing noise, but not very much. Almost as if something interferes here or something is loose.It can also feel vibrations final on my wrists resulting from the pr

  • Moving MessagePopup

    Is there a way to move the Panel of MessagePopup? He always appears in the middle of the screen. I would like to bring up another place.

  • How to hide an update of Microsoft?

    I wonder to install an update that was installed 4 months of automatic update of Windows. How can I hide this update.

  • Stop error c0000135

    I get this error message that says: "stop: c0000135 (impossible to locate the component). This application has failed to start because winsrv was not found. reinstalling the application may fix this problem. I try to install windows xp to re =, but w

  • How can I expand and view all my folders and their files in a single window?

    I want to clean multiple copies of files and folders, etc even by striking or drag and drop existing folders. Re structuring my work PC.