Creating the table and get the invalid identifier

Thank you so much Ed (and all those who responded) to my previous post!, you all be extremely useful.

In fact, I have another question... Can I repost a new thread or continue on this one?

Here's my problem.

create the table DonationEvent
('ID' NUMBER (1,1) Not Null,)
"EventNumber" NUMBER (1,1) Not Null,
'Type' char (30) Not Null,
"OrganizerName' char (30) Not Null,
'Location' char (30) Not Null,
'Date' NUMBER (10.1) Not Null,
'Time' char (30) Null,
"DonationTotal" NUMBER (10.1) Not Null,

Primary Key (ID),



);

Getting ORA-00904: invalid identifier

Also I use Express Edition 10g, how can I get a view of context to see the line where error occurs?

Cushgod wrote:
I always get invalid identifiers... Your focus is so useful! My teacher is not useful. At his table did not work it would be copy and paste that work and say that he didn't had the time to debug it... I can't even say what my mistake is on in the Express edition...

What do you use to write/test your sql? That's why I asked sqplus. This is the basic sql shell. In the examples I showed you I had by the sql in a text (doit.sql) file, shot to the top of sqlplus, connect to the base, execute "doit.sql".

You're my only hope! Thank you very much in advance, I learn a little which makes me question why my teach would even use "" eventid NUMBER (1,1) not null "" after your explanation. " It's not supposed to have a decimal number to a primary key event IDS... anyway thanks in advance.

create the table DONATIONEVENT
(eventid NUMBER (5) Not Null,)
eventnumber NUMBER (9) Not Null,
EventType VARCHAR2 (30) Not Null,
OrganizerName VARCHAR2 (30) Not Null,
location VARCHAR2 (30) not Null,
EventDate DATE Not Null,
duration VARCHAR2 (30) Null,
donationtotal NUMBER (10.2) Not Null,

Primary Key (ID),

);

If I use a DATE instaed (4) no setting, I get "' missing right parenthesis"... once again. I counted my bracket and the match 10 (and 10)
See below.

DATE is right. Where did you get the idea of DATE (4)?

The documentation site (tahiti.oracle.com) Oracle seems to be down at the moment, but you really, * really *, * REALLY * need to get there and take the reference SQL and SQL * reference manuals more.

create the table DONATIONEVENT
(eventid NUMBER (5) Not Null,)
eventnumber NUMBER (9) Not Null,
EventType VARCHAR2 (30) Not Null,
OrganizerName VARCHAR2 (30) Not Null,
location VARCHAR2 (30) not Null,
EventDate DATE (4) Not Null,
duration VARCHAR2 (30) Null,
donationtotal NUMBER (10.2) Not Null,

Primary Key (ID),

);

Tags: Database

Similar Questions

  • How to insert into a GLOBAL TEMPORARY TABLE and get the data from it?

    The requrement is
    Split the string ENTRY point on the base and store it in a Collection. And the values of the collection will be stored in a global temporary table. Then, I'm updating some other table based on the data from the temporary table.

    There is in fact no error message. But there is no data in the temporary table and also no change in the update statement

    First of all, I'm creatiing a global temporary table only once outside the procedure.

    CREATE GLOBAL TEMPORARY table GLt (data_element number)


    create or replace procedure test_proc (p_in_string VARCHAR2) is
    i the number: = 0;
    number of POS: = 0;
    CLOB lv_str: = p_in_string;
    p_delim VARCHAR2 (1): = ', ';

    TYPE t_array IS TABLE OF VARCHAR2 (20) INDEX directory.
    t_array channels;

    BEGIN

    -cutting of string input and store in the strings (i) collection

    POS: = instr (lv_str, p_delim, 1, 1);
    WHILE (pos! = 0) LOOP
    i: = i + 1;
    Strings (i): = substr(lv_str,1,pos-1);
    lv_str: = substr (lv_str, pos + 1, length (lv_str));
    POS: = instr (lv_str, p_delim, 1, 1);
    IF pos = 0 THEN
    Strings (i + 1): = lv_str;
    END IF;
    END LOOP;

    run immediately "drop table TWG;
    run immediately ' CREATE GLOBAL TEMPORARY table (data_element number) TWG on commit preserve rows ";

    FORALL i in strings.first... Strings.Last
    INSERT INTO VALUES TWG (strings (i));
    commit;

    Update first_tbl set PIN is "XXX" where first_col in (select data_element from TWG);.
    commit;

    END test_proc;

    Published by: cedric b on January 25, 2013 12:59

    Remove the two execute immediate line. They are wrong.

    And then use the table in your code that you created at the beginning. The name is GLT.
    And delete the first commit. This validation would empty the temporary table of GLT.

    You get an error? Or it does not work as expected?

    Also, show how you call the procedure.

    Published by: Sven w. January 25, 2013 14:45

  • End of question creating a table and change the format of date on the creation

    Hi all

    I'm Googling the hell out of this but either it cannot be done or im just not finiding it.

    I know how to interview and select to_char allows you to change the date format.

    My question is when you create a table as follows:

    CREATE TABLE myTable2
    2 (NAME VARCHAR2 (15),)
    3 CHAR (2) STATE,
    4 SALARY NUMBER (5.2).
    5 YEARSEMP NUMBER (2),
    6 DATE STARTDATE);

    How can I set the DATE format will be a four-digit year? It is even possible to make when you create or you do it only when inserting?

    Thank you!

    Hello

    791443 wrote:
    Okay, so I guess that you can't change the default value for more than one session? So that whenever I have connect the date MM/DD/YYYY came? I know how ALTER, I was wondering if I can schedule the date WHEN I'll get the value by default whenever I connect JJ/MM/AAAA

    Exactly.

    The DBA can change the default format, which will then apply to all the columns DATE for all users.
    If you are the ADMINISTRATOR of you own private database, which is an option.

    If you are using SQL * Plus, you can put the ALTER SESSION SET NLS_DATE_FORMAT command in a file, login.sql, so it will run automatically every time that you start a session.
    Other frontends probably have similar functionality.

    You can also create a view, which had a column VARCHAR2 with formatted data. If you do this, the view also have the actual DATE column — VARCHAR2 column won't be good for sorting or making comparisons of inequality.
    From Oracle 11, you can have a virtual column in the table itself.

  • I get an invalid identifier... what I forget?

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Solaris: 11.2.0.3.0 - Production Version

    NLSRTL Version 11.2.0.3.0 - Production

    I'm trying to populate a child table, questioning of the parent.  When I do, I'm not a valid identifier.  I watched this six ways to Sunday and I'm obviously coming cross eyed and missing something.

    Here is the version of the parent table.

    CREATE THE TABLE NRIS_WBETTERS. INDIVIDUAL_DATA

    (

    TYPESITE VARCHAR2 (10 BYTE),

    AFOREST_CODE VARCHAR2 (6 BYTE),

    SUBUNIT VARCHAR2 (25 BYTE),

    SAMP_STRATUM VARCHAR2 (6 BYTE),

    DATE OF ENTRY,

    NUMBER OF SERIAL NUMBER,

    CODE POSTAL VARCHAR2 (5 BYTE),

    VARCHAR2 (6 BYTE) HISPANIC,

    NUMBER OF ARNDFAY

    NENTGFGA VARCHAR2 (1 BYTE),

    NUMBER OF TRVDIS

    VARCHAR2 (BYTE 9) INCOME,

    NUMBER OF TRAVDIST

    NUMBER OF NFARRIV

    NUMBER OF NFLEAV

    NUMBER OF NFDAYS

    WHEN_LEAVE_GFA VARCHAR2 (11 BYTE),

    WHEN_LEAVE_SITE VARCHAR2 (11 BYTE),

    NUMBER OF SITENUMBER,

    AGREE_TO_INTERVIEW VARCHAR2 (3 BYTE),

    NUMBER OF AXLE_COUNT

    NUMBER OF CLICK_START

    REC_GFA VARCHAR2 (3 BYTE),

    PURPOSE_SITE VARCHAR2 (35 BYTE),

    PURPOSE_GFA VARCHAR2 (35 BYTE),

    WHY_ROUTE VARCHAR2 (5 BYTE),

    FIGURE CIRCLES,

    DATAYEAR VARCHAR2 (4 BYTE),

    VISITED_OTHER_SITES VARCHAR2 (3 BYTE),

    DATE OF INTERVIEW_DATE,

    DATE OF INTERVIEW_TIME,

    DATE OF TIME_LEAVING_SITE,

    DATE OF DATE_ARRIVE_SITE,

    DATE OF TIME_ARRIVE_SITE,

    DATE OF DATE_ARRIVE_NF,

    DATE OF TIME_ARRIVE_NF,

    DATE OF DATE_DEPART_NF,

    DATE OF TIME_LEAVE_NF,

    NUMBER OF DUDS_USED

    NUMBER OF LODGING_DIF_USED

    ENTER_WILDERNESS VARCHAR2 (3 BYTE),

    ENTER_GFA VARCHAR2 (3 BYTE),

    DONT_KNOW_ZIP VARCHAR2 (3 BYTE),

    NUMBER OF GFA_HOURS

    NUMBER OF GFA_MINUTES

    NUMBER OF GFA_DAYS

    NUMBER OF PEOPLE_IN_VEHICLE

    NUMBER_UNDER16 NUMBER,

    PERSON1_SEX VARCHAR2 (1 BYTE),

    PERSON2_SEX VARCHAR2 (1 BYTE),

    PERSON3_SEX VARCHAR2 (1 BYTE),

    PERSON4_SEX VARCHAR2 (1 BYTE),

    PERSON1_AGE VARCHAR2 (8 BYTE),

    PERSON2_AGE VARCHAR2 (8 BYTE),

    PERSON3_AGE VARCHAR2 (8 BYTE),

    PERSON4_AGE VARCHAR2 (8 BYTE),

    NUMBER, OVERCROWDING

    PARTICIPATE_DOWNHILL_SKI VARCHAR2 (3 BYTE),

    MAIN_DOWNHILL_SKI VARCHAR2 (3 BYTE),

    PARTICIPATE_FISHING VARCHAR2 (3 BYTE),

    MAIN_FISHING VARCHAR2 (3 BYTE),

    PARTICIPATE_HUNTING VARCHAR2 (3 BYTE),

    MAIN_HUNTING VARCHAR2 (3 BYTE),

    PARTICIPATE_VIEW_WILDLIFE VARCHAR2 (3 BYTE),

    MAIN_VIEW_WILDLIFE VARCHAR2 (3 BYTE),

    PARTICIPATE_VIEW_NATURE VARCHAR2 (3 BYTE),

    MAIN_VIEW_NATURE VARCHAR2 (3 BYTE),

    PARTICIPATE_HISTORY VARCHAR2 (3 BYTE),

    MAIN_HISTORY VARCHAR2 (3 BYTE),

    PARTICIPATE_NATURE_STUDY VARCHAR2 (3 BYTE),

    MAIN_NATURE_STUDY VARCHAR2 (3 BYTE),

    PARTICIPATE_NATURE_CENTER VARCHAR2 (3 BYTE),

    MAIN_NATURE_CENTER VARCHAR2 (3 BYTE),

    PARTICIPATE_HIKING VARCHAR2 (3 BYTE),

    MAIN_HIKING VARCHAR2 (3 BYTE),

    PARTICIPATE_HORSE VARCHAR2 (3 BYTE),

    MAIN_HORSE VARCHAR2 (3 BYTE),

    PARTICIPATE_BIKING VARCHAR2 (3 BYTE),

    MAIN_BIKING VARCHAR2 (3 BYTE),

    PARTICIPATE_NONMOT_WATER VARCHAR2 (3 BYTE),

    MAIN_NONMOT_WATER VARCHAR2 (3 BYTE),

    PARTICIPATE_XC_SKI VARCHAR2 (3 BYTE),

    MAIN_XC_SKI VARCHAR2 (3 BYTE),

    PARTICIPATE_OTHER_NONMOT VARCHAR2 (3 BYTE),

    MAIN_OTHER_NONMOT VARCHAR2 (3 BYTE),

    PARTICIPATE_DRIVING VARCHAR2 (3 BYTE),

    MAIN_DRIVING VARCHAR2 (3 BYTE),

    PARTICIPATE_MOTOR_TRAIL VARCHAR2 (3 BYTE),

    MAIN_MOTOR_TRAIL VARCHAR2 (3 BYTE),

    PARTICIPATE_OHV_USE VARCHAR2 (3 BYTE),

    MAIN_OHV_USE VARCHAR2 (3 BYTE),

    PARTICIPATE_SNOWMOBILE VARCHAR2 (3 BYTE),

    MAIN_SNOWMOBILE VARCHAR2 (3 BYTE),

    PARTICIPATE_MOT_WATER VARCHAR2 (3 BYTE),

    MAIN_MOT_WATER VARCHAR2 (3 BYTE),

    PARTICIPATE_OTHER_MOT VARCHAR2 (3 BYTE),

    MAIN_OTHER_MOT VARCHAR2 (3 BYTE),

    PARTICIPATE_DEV_CAMPING VARCHAR2 (3 BYTE),

    MAIN_DEV_CAMPING VARCHAR2 (3 BYTE),

    PARTICIPATE_PRIM_CAMPING VARCHAR2 (3 BYTE),

    MAIN_PRIM_CAMPING VARCHAR2 (3 BYTE),

    PARTICIPATE_BACKPACK VARCHAR2 (3 BYTE),

    MAIN_BACKPACK VARCHAR2 (3 BYTE),

    PARTICIPATE_RESORTS VARCHAR2 (3 BYTE),

    MAIN_RESORTS VARCHAR2 (3 BYTE),

    PARTICIPATE_GATHERING VARCHAR2 (3 BYTE),

    MAIN_GATHERING VARCHAR2 (3 BYTE),

    PARTICIPATE_RELAX VARCHAR2 (3 BYTE),

    MAIN_RELAX VARCHAR2 (3 BYTE),

    PARTICIPATE_PICNIC VARCHAR2 (3 BYTE),

    MAIN_PICNIC VARCHAR2 (3 BYTE),

    PARTICIPATE_OTH_ACTIV VARCHAR2 (3 BYTE),

    MAIN_OTH_ACTIV VARCHAR2 (3 BYTE),

    NUMBER OF HOURS_MAIN_ACTIVITY

    OVERALL_SATISFACTION VARCHAR2 (7-BYTE),

    PROXY_RE1Q1 NUMBER,

    PROXY_RE1Q2 NUMBER,

    PROXY_FR1Q1 VARCHAR2 (BYTE 9),

    PROXY_FR1Q2 NUMBER,

    PROXY_RE4Q1 NUMBER,

    PROXY_RE4Q2 NUMBER,

    PROXY_MA2Q1 NUMBER,

    PROXY_MA2Q2 NUMBER,

    FROM_CANADA VARCHAR2 (3 BYTE),

    FROM_MEXICO VARCHAR2 (3 BYTE),

    FROM_SAMERICA VARCHAR2 (3 BYTE),

    FROM_ASIA VARCHAR2 (3 BYTE),

    FROM_EUROPE VARCHAR2 (3 BYTE),

    FROM_OTH_COUNTRY VARCHAR2 (3 BYTE),

    NUMBER OF NFVISITS_MAINACT_YEAR

    NUMBER OF TRAVEL_DISTANCE

    NF_ARRIVE_SAMETIME VARCHAR2 (3 BYTE),

    NF_DEPART_SAMETIME VARCHAR2 (3 BYTE),

    PRIMARY_PURPOSE VARCHAR2 (16 BYTE),

    NUMBER OF IMPORT_CLEANLINESS

    NUMBER OF IMPORT_DEVFACILITIES

    NUMBER OF IMPORT_DISPLAYS

    NUMBER OF IMPORT_HELPFULNESS

    NUMBER OF IMPORT_NATENVR

    NUMBER OF IMPORT_PARKING

    NUMBER OF IMPORT_PARKINGLOT

    NUMBER OF IMPORT_RECINFO

    NUMBER OF IMPORT_ROADS

    NUMBER OF IMPORT_SAFETY

    NUMBER OF IMPORT_SIGNAGE

    NUMBER OF IMPORT_TOTALROADS

    NUMBER OF IMPORT_TOTALSIGNS

    NUMBER OF IMPORT_TRAILS

    NUMBER OF IMPORT_VALUE

    NUMBER OF IMPORT_SCENERY

    SATIS_CLEANLINESS VARCHAR2 (7-BYTE),

    SATIS_DEVFACILITIES VARCHAR2 (7-BYTE),

    SATIS_DISPLAYS VARCHAR2 (7-BYTE),

    SATIS_HELPFULNESS VARCHAR2 (7-BYTE),

    SATIS_NATENVR VARCHAR2 (7-BYTE),

    SATIS_PARKING VARCHAR2 (7-BYTE),

    SATIS_PARKINGLOT VARCHAR2 (7-BYTE),

    SATIS_RECINFO VARCHAR2 (7-BYTE),

    SATIS_ROADS VARCHAR2 (7-BYTE),

    SATIS_SAFETY VARCHAR2 (7-BYTE),

    SATIS_SIGNAGE VARCHAR2 (7-BYTE),

    SATIS_TOTALROADS VARCHAR2 (7-BYTE),

    SATIS_TOTALSIGNS VARCHAR2 (7-BYTE),

    SATIS_TRAILS VARCHAR2 (7-BYTE),

    SATIS_VALUE VARCHAR2 (7-BYTE),

    SATIS_SCENERY VARCHAR2 (7-BYTE),

    SOMEONE_DISABLED VARCHAR2 (3 BYTE),

    DONT_KNOW_TOTALTRIP VARCHAR2 (3 BYTE),

    DONT_KNOW_EXP VARCHAR2 (3 BYTE),

    REFUSE_EXP VARCHAR2 (3 BYTE),

    REFUSE_TOTALTRIP VARCHAR2 (3 BYTE),

    DONT_KNOW_INC VARCHAR2 (3 BYTE),

    REFUSE_INCOME VARCHAR2 (3 BYTE),

    DONT_KNOW_MILES VARCHAR2 (3 BYTE),

    NUMBER OF SUBST_DISTANCE_FROMHOME

    NUMBER OF SPEND_MOTEL

    NUMBER OF SPEND_CAMPING

    NUMBER OF SPEND_GASOIL

    NUMBER OF SPEND_GROCERIES

    NUMBER OF SPEND_LOCALTRANSP

    NUMBER OF SPEND_RESTBAR

    NUMBER OF SPEND_SOUVOTHER

    NUMBER OF SPEND_SPGOODS

    NUMBER OF SPEND_RECENT

    NUMBER OF SPEND_RECFEES

    NUMBER OF SPEND_TOTAL_TRIP

    SUB_GOELSEWHERE_SAMEACT VARCHAR2 (3 BYTE),

    SUB_COMEBACK VARCHAR2 (3 BYTE),

    SUB_GOELSEWHERE_DIFFACT VARCHAR2 (3 BYTE),

    SUB_STAYHOME VARCHAR2 (3 BYTE),

    SUB_WORK VARCHAR2 (3 BYTE),

    SUB_OTHERREASON VARCHAR2 (3 BYTE),

    LODGING_CABIN_NF VARCHAR2 (3 BYTE),

    LODGING_CAMP_NF VARCHAR2 (3 BYTE),

    LODGING_CAMP_UNDEV VARCHAR2 (3 BYTE),

    LODGING_CAMP_PVT VARCHAR2 (3 BYTE),

    LODGING_OTHER_PUB_CAMP VARCHAR2 (3 BYTE),

    LODGING_RENTED_NOTNF VARCHAR2 (3 BYTE),

    LODGING_PVTHOME VARCHAR2 (3 BYTE),

    LODGING_OWNHOME VARCHAR2 (3 BYTE),

    LODGING_OTHER VARCHAR2 (3 BYTE),

    RACE_ASIAN VARCHAR2 (3 BYTE),

    RACE_BLACK VARCHAR2 (3 BYTE),

    RACE_NATIVAM VARCHAR2 (3 BYTE),

    RACE_PACISLAND VARCHAR2 (3 BYTE),

    RACE_WHITE VARCHAR2 (3 BYTE),

    USED_BYWAY VARCHAR2 (3 BYTE),

    USED_FISHSITE VARCHAR2 (3 BYTE),

    USED_INFOSITE VARCHAR2 (3 BYTE),

    USED_INTSITE VARCHAR2 (3 BYTE),

    USED_MOTORTRAIL1 VARCHAR2 (3 BYTE),

    USED_MOTORTRAIL2 VARCHAR2 (3 BYTE),

    USED_NONE VARCHAR2 (3 BYTE),

    USED_ORVAREA VARCHAR2 (3 BYTE),

    USED_ROADS VARCHAR2 (3 BYTE),

    USED_SWIM VARCHAR2 (3 BYTE),

    USED_VISCENTER VARCHAR2 (3 BYTE),

    SCAN_HEADER VARCHAR2 (40 BYTE),

    FACILITIES_ACCESSIBLE VARCHAR2 (3 BYTE),

    LASTNIGHT_INFOREST VARCHAR2 (3 BYTE),

    NUMBER OF NIGHTS_AWAY

    NIGHT_50MILES NUMBER,

    NONITES_50MILES VARCHAR2 (3 BYTE),

    NUMBER OF LAST_EXIT_REC

    NUMBER OF GFA_VIEWING

    NUMBER OF SVEXPAND

    NV_VISITS_12MONTHS NUMBER,

    PURPOSE_GFA_BATHROOM VARCHAR2 (3 BYTE),

    PURPOSE_GFA_OTHREASN VARCHAR2 (3 BYTE),

    PURPOSE_GFA_PASSTHRU VARCHAR2 (3 BYTE),

    PURPOSE_GFA_RECREATE VARCHAR2 (3 BYTE),

    PURPOSE_GFA_WORKING VARCHAR2 (3 BYTE),

    PURPOSE_SITE_BATHROOM VARCHAR2 (3 BYTE),

    PURPOSE_SITE_OTHREASN VARCHAR2 (3 BYTE),

    PURPOSE_SITE_PASSTHRU VARCHAR2 (3 BYTE),

    PURPOSE_SITE_RECREATE VARCHAR2 (3 BYTE),

    PURPOSE_SITE_WORKING VARCHAR2 (3 BYTE),

    FORM VARCHAR2 (7-BYTE),

    VARCHAR2 (2 BYTE) ONE NIGHT OR MORE.

    NUMBER OF NVEXPAND

    ADMIN_UNIT VARCHAR2 (50 BYTE)

    )

    TABLESPACE USERS

    RESULT_CACHE (DEFAULT MODE)

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    80K INITIAL

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    DEFAULT FLASH_CACHE

    DEFAULT CELL_FLASH_CACHE

    )

    LOGGING

    NOCOMPRESS

    NOCACHE

    NOPARALLEL

    MONITORING;

    Here is the version of child table

    CREATE TABLE nris_wbetters. NRN_BASIC_VISIT

    (

    Sys_guid() BASIC_VISIT_CN VARCHAR2 (40 BYTE) DEFAULT is NOT NULL.

    ADMIN_CN_FK VARCHAR2 (40 BYTE) NOT NULL,

    NV_VISITS_12MONTHS NUMBER (8).

    NF_NIGHTS NUMBER (8).

    VISITED_OTHER_SITES VARCHAR2 (1 BYTE),

    VISITED_TOT_SITES NUMBER (8).

    DUDS_USED NUMBER (8).

    LODGING_DIF_USED NUMBER (8).

    GFA_DIFF_DAYS NUMBER 4,

    ENTER_GFA VARCHAR2 (1 BYTE),

    WILDERNESS_DIFF_DAYS NUMBER 4,

    ENTER_WILDERNESS VARCHAR2 (1 BYTE),

    WILDERNESS_GUIDE VARCHAR2 (1 BYTE),

    NF_ARRIVE_SAMETIME VARCHAR2 (1 BYTE),

    NF_DEPART_SAMETIME VARCHAR2 (1 BYTE),

    PEOPLE_IN_VEHICLE NUMBER (8).

    TRAVEL_DISTANCE NUMBER (8).

    PRIMARY_PURPOSE VARCHAR2 (13 BYTE),

    GFA_HOURS NUMBER (8).

    GFA_DAYS NUMBER (8).

    GFA_MINUTES NUMBER (8).

    DATE OF DATE_ARRIVE_SITE,

    DATE OF DATE_ARRIVE_NF,

    DATE OF DATE_DEPART_NF,

    SUB_GOELSEWHERE_DIFFACT VARCHAR2 (1 BYTE),

    SUB_COMEBACK VARCHAR2 (1 BYTE),

    SUB_STAYHOME VARCHAR2 (1 BYTE),

    SUB_WORK VARCHAR2 (1 BYTE),

    SUB_OTHERREASON VARCHAR2 (1 BYTE),

    SUB_GOELSEWHERE_SAMEACT VARCHAR2 (1 BYTE),

    DAYS_AWAY NUMBER (8).

    NFVISITS_MAINACT_YEAR NUMBER (8).

    NF_PRIMARYDEST VARCHAR2 (1 BYTE),

    VARCHAR2 (1 BYTE) ONE NIGHT OR MORE.

    NIGHTS_AWAY NUMBER (8).

    NIGHT_50MILES NUMBER (8).

    NONITES_50MILES VARCHAR2 (1 BYTE),

    HOURS_AWAY NUMBER (8).

    JUST_HERE VARCHAR2 (12-BYTE),

    WHAT_ASSISTANCE VARCHAR2 (120 BYTE),

    OVERALL_SATISFACTION VARCHAR2 (25 BYTE),

    LASTNIGHT_INFOREST VARCHAR2 (1 BYTE),

    VPDUNIT_ID VARCHAR2 (10 BYTE) NOT NULL,

    LAST_UPDATE TIMESTAMP (6) WITH ZONE SCHEDULE systimestamp NOT NULL default

    )

    NOCOMPRESS

    TABLESPACE USERS

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    )

    LOGGING

    HASH PARTITION (ADMIN_CN_FK)

    (

    PARTITION P01

    TABLESPACE USERS,

    PARTITION P02

    TABLESPACE USERS,

    PARTITION P03

    TABLESPACE USERS,

    PARTITION P04

    TABLESPACE USERS,

    PARTITION P05

    TABLESPACE USERS,

    PARTITION P06

    TABLESPACE USERS,

    PARTITION P07

    TABLESPACE USERS,

    PARTITION P08

    TABLESPACE USERS

    )

    NOCACHE

    NOPARALLEL

    MONITORING

    ALLOW THE MOVEMENT OF THE LINE;


    And here is my statement in Locket... it erases the table of the old data first and then inserts the new.


    truncate table NRIS_WBETTERS.nrn_basic_visit;

    insert into NRIS_WBETTERS.nrn_basic_visit

    (basic_visit_cn,

    admin_cn_fk,

    nv_visits_12months,

    nf_nights,

    visited_other_sites,

    visited_tot_sites,

    duds_used,

    lodging_dif_used,

    gfa_diff_days,

    enter_gfa,

    wilderness_diff_days,

    enter_wilderness,

    wilderness_guide,

    nf_arrive_sametime,

    nf_depart_sametime,

    people_in_vehicle,

    travel_distance,

    primary_purpose,

    gfa_hours,

    gfa_days,

    gfa_minutes,

    date_arrive_site,

    date_arrive_nf,

    date_depart_nf,

    sub_goelsewhere_diffact,

    sub_comeback,

    sub_stayhome,

    sub_work,

    sub_otherreason,

    sub_goelsewhere_sameact,

    days_away,

    nfvisits_mainact_year,

    nf_primarydest,

    all night,

    nights_away,

    night_50miles,

    nonites_50miles,

    hours_away,

    just_here,

    what_assistance,

    overall_satisfaction,

    lastnight_inforest,

    vpdunit_id,

    last_update)

    Select sys_guid()

    admin_cn

    to_number (nv_visits_12months)

    null nf_nights - 1st round only

    , decode (upper (visited_other_sites), 'NO',' no, 'YES', 'Y', 'DK',', null) visited_other_sites

    null visited_tot_sites - 1st round only

    duds_used

    lodging_dif_used

    null gfa_diff_days - 1st round only

    , decode (upper (enter_gfa), 'NO', 'No,' YES ',' Y ',' *', null, null) enter_gfa

    null wilderness_diff_days - 1st round only

    , decode (upper (enter_wilderness), 'NO',' no, 'YES', 'Y', null) enter_wilderness

    null wilderness_guide - 1st round only

    , decode (upper (nf_arrive_sametime), 'NO',' no, 'YES', 'Y', nf_arrive_sametime) nf_arrive_sametime

    , decode (upper (nf_depart_sametime), 'NO',' no, 'YES', 'Y', nf_depart_sametime) nf_depart_sametime

    people_in_vehicle

    travel_distance

    , decode (superior (primary_purpose), null, null)

    , "NOT REC-SIDETRIP", "BusFam".

    , "ANOTHER REASON", "other".

    , "REC to THE NF", "RecAtNF".

    , "REC - ANOTHER DEST", "RecOther".

    'No VALID PRIMARY_PURPOSE') primary_purpose

    gfa_hours

    gfa_days

    gfa_minutes

    date_arrive_site

    date_arrive_nf

    date_depart_nf

    , decode (upper (sub_goelsewhere_diffact), 'NO',' no, 'YES', 'Y', sub_goelsewhere_diffact) sub_goelsewhere_diffact

    , decode (upper (sub_comeback), 'NO',' no, 'YES', 'Y', sub_comeback) sub_comeback

    , decode (upper (sub_stayhome), 'NO',' no, 'YES', 'Y', sub_stayhome) sub_stayhome

    , decode (upper (sub_work), 'NO',' no, 'YES', 'Y', sub_work) sub_work

    , decode (upper (sub_otherreason), 'NO',' no, 'YES', 'Y', sub_otherreason) sub_otherreason

    , decode (upper (sub_goelsewhere_sameact), 'NO',' no, 'YES', 'Y', sub_goelsewhere_sameact) sub_goelsewhere_sameact

    null days_away - 1st round only

    nfvisits_mainact_year

    null nf_primarydest - 1st round only

    , decode (upper (overnight), 'NO',' no, 'YES', 'Y', '4', 'Y', '6' ', not, overnight) from one day to the next

    nights_away

    night_50miles

    , decode (upper (nonites_50miles), 'NO',' no, 'YES', 'Y', nonites_50miles) nonites_50miles

    null hours_away - 1st round only

    null just_here - 1st round only

    null what_assistance - 1st round only

    , decode (superior (overall_satisfaction), null, null)

    , 'OR', 'nor '.

    , ' SomeDis 'SOMEDIS',

    , 'SOMESAT', 'SomeSat '.

    VeryDis 'of the ' VERYDIS' ',

    , 'VERYSAT', 'VerySat '.

    , ' 005', null

    'No VALID OVERALL_SATISFACTION') overall_satisfaction

    , decode (upper (lastnight_inforest), 'NO', 'No,' YES ',' Y ',' *', null, lastnight_inforest) lastnight_inforest

    substr(AForest_Code,2,2) | substr(AForest_Code,5,2) vpdunit_id

    sysdate

    of NRIS_WBETTERS.individual_data

    order admin_cn;

    -now delete empty folders

    remove from NRIS_WBETTERS.nrn_basic_visit

    where nv_visits_12months is null

    and nf_nights is null

    and visited_other_sites is null

    and visited_tot_sites is null

    and duds_used is null

    and lodging_dif_used is null

    and gfa_diff_days is null

    and enter_gfa is null

    and wilderness_diff_days is null

    and enter_wilderness is null

    and wilderness_guide is null

    and nf_arrive_sametime is null

    and nf_depart_sametime is null

    and people_in_vehicle is null

    and travel_distance is null

    and primary_purpose is null

    and gfa_hours is null

    and gfa_days is null

    and gfa_minutes is null

    and date_arrive_site is null

    and date_arrive_nf is null

    and date_depart_nf is null

    and sub_goelsewhere_diffact is null

    and sub_comeback is null

    and sub_stayhome is null

    and sub_work is null

    and sub_otherreason is null

    and sub_goelsewhere_sameact is null

    and days_away is null

    and nfvisits_mainact_year is null

    and nf_primarydest is null

    and from one day to the next is null

    and nights_away is null

    and night_50miles is null

    and nonites_50miles is null

    and hours_away is null

    and just_here is null

    and what_assistance is null

    and overall_satisfaction is null

    and lastnight_inforest is null;

    commit;

    When I try to run the insert, it tells me:

    ORA-00904: "ADMIN_CN": invalid identifier

    This is because you are trying to ask the column ADMIN_CN in table NRIS_WBETTERS. INDIVIDUAL_DATA, but this column does not exist in this table...

    do a simple Ctrl-F on this page taught me that :-)

  • Programmatically create ADF Table and binding.

    Hello

    I create the table and the columns programmatically using richeTableau and RichColumn. But unable to fill in the data in the table cells.

    Here is an excerpt of the code used. I followed the specified discussion ADF of Create Table by program. but I am not able to work.kindly suggest to solve this problem.

    RicheTableau tblObj = new RichTable();

    TableValues = (ArrayList) getCompValue (wsValues, compId) list;  contains a list of the HashMap object.

    tblObj.setVar ("trow");

    tblObj.setId ("tblDBrd");

    for (int k = 0; k < tblColumns.length; k ++) {/ / tblColumns contains a list of name of column to display in the table}

    RichColumn tblColumn = new RichColumn();

    tblColumn.setVisible (true);

    tblColumn.setId ("col" + k);

    tblColumn.setHeaderText (tblColumns [k]);

    UI RichOutputText = new RichOutputText();

    ui.setId (compId + k);

    "{[String expression =" #{row [] "+ k +"] ['"+ tblColumns [k] +"] ' ']} ";   want to retrieve the value of #{rank [k] [columnname]}

    ui.setValueExpression ("value", getValueExpression (expression));

    addComponent (tblObj, tblColumn);

    addComponent (tblColumn, ui);

    }

    tableModel = new SortableModel (tableValues);

    tblObj.setValueExpression ("value", getValueExpression("#{backingBeanScope.dashboardBean.tableModel}"));

    Thanks in advance.

    Best regards

    Arun

    You need the table setValue. Take a look at these discussions: programmatically set another link to Table read-only ADF and http://stackoverflow.com/questions/22389813/change-the-displayed-value-in-adf-table to get a few first thoughts and feel free to come back if you get stuck somewhere.

  • Create a table and inserting images easily?

    I have about 260 photos still size that should go in a table.

    The table will then 4 obviously 65 lines of broad and wide columns.

    Basically is there something that I can use to mass insert these images, one in each cell?

    Thank you!

    Hey afecustoms,

    You should look into some viewers of pictures such as http://www.airtightinteractive.com/viewers/. Saw the pictures, sitting at a table could get a little boring, so I thought id throw this site to you. I used one of them of hermetic to my http://mustangdriveinguelph.ca/flash%20tilt/index.aspxdrive-in theater site. You can also find most of these programs in torrents

    Check them out!

  • I'm trying to create another table and insert data to practice... How can I insert multiple values?

    I created another table for practice on two tables queries now.

    That's what I have:

    Insert in the test

    (address, age, status, DriverID)

    values ("131 Shore Drive", "Edison, NJ, 08011 ', ' 55', m ', '2').

    ("' 62 central avenue", "Middletown, NJ 08011', ' 43 ', am ', ' 1'");

    ('98 main street', ' Bristol, PA 19116 ', ' 67', the of ', '3' ").

    ('15 wrong Way', ' Long Island, NY 10111 ', ' 60', 'W', '4' '),

    ("' Kevin 9 Place", "New York, NY 10111 ', ' 25', the of ', '5'");

    It says command SQL is not properly terminated.

    Like this:

    Insert into test (address, age, status, DriverID)

    values ("131 Shore Drive", "Edison, NJ, 08011 ', ' 55', m ', '2');

    Insert into test (address, age, status, DriverID)

    values ("62 Middle Avenue", "Middletown, NJ 08011', ' 43 ', am ', ' 1'");

    ...

  • Move the partition of the table and get ORA-14006: invalid partition name

    I'm using oracle 11.2.0.4 and I am trying to move a partitioned table to one tablespace to another.  I checked may times and I have the correct table name and the name of the partition.  However, I get the error ora-14006.

    Can see everything what could be the problem?

    SQL > ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION 201112 TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING;

    ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING 201112

    *

    ERROR on line 1:

    ORA-14006: invalid partition name

    Thanks in advance.

    Names that begin with numbers are not legal partition names. A fool created by placing them between double quotes. You will need to do the same.

  • How to join tables and get ppl not in the list of the other table

    Hi, I have 2 tables

    Table (girlscoutid, quarter, point)

    Table b (girlscoutid, fname lname)

    I want to get the names of ppl who didn't sell any point/s for Q4

    girlscoutid agenda quarter
    7771drinks4QS
    9000Tickets4QW
    7771Cookies2QS
    5085books3QF
    3010Tickets3QW
    5085Cookies1QF

    lscoutid fname lname
    7771JennRichochet
    9000LauraWilkins
    5085SallyMae
    3010DoraMcKenzie

    That's what I have, however, I get duplicates and also 7771 appears on the list even if she sold something on the 4th quarter. Any suggestions?

    SELECT fname, lname, a.girlscoutid

    Of a, b

    WHERE a.girlscoutid = b.girlscoutid

    AND the term NOT AS "4Q_";

    Hello

    So, all the information that you want to see figure in table b, but if you want to see it depends on the table has.

    This looks like a job for a semi Join.  Here's a way to do it:

    SELECT b.fname

    b.lname

    b.girlscoutid

    B

    LEFT OUTER JOIN has IT a.girlscoutid = b.girlscoutid

    AND a.quarter NOT AS "4Q_" - or a.TERM, if it is the column

    WHERE a.girscoutid IS NULL

    ;

    What you posted was an INNER join, where the rows of each table are included in the only game that if they have a corresponding row in the other table.

    An OUTER join includes all the rows in a table (table b in this case) if they have a match in the other table.  If a line of b has no corresponding row in a, then all the columns that are supposed to come from table will be NULL in the result set.  Given that the join condition includes = b.girlscoutid a.girlscoutid, this means that the only way to a.girlscoutid can be NULL in the result set is if the b line is included although it has no corresponding line one, which are exactly the lines that we want to display.  (You can try to run the query above with the WHERE clause, deleted, just to see how it works.)

    Alternatively, you can get the desired results by using a subquery NOT EXISTS, a NOT IN subquery or analytical functions.  The semi join, supra, is probably the most effective solution.

  • compare a value to the range of values in the table and get the value of corr

    Hi all

    I'm a begineer and glued at one point.
    I have a table that has 2 fields
    number of days and the number of cards with values such as:

    number of days number of cards 20 1

    40 2
    60 3
    I have a SELECT query that returns the number of days, I need to get the number of cards based on the number of days.
    As if the select returns 30 I should get 1 as the number of cards, if select returns 48 I should get 2 and so on.

    Please help me

    Thanks and greetings
    SELECT MAX(num_of_cards)
    FROM   your_table
    WHERE  num_of_days <= X
    
  • -You also get an invalid identifier error when executing this query sql for a data model, but not in TOAD/SQL Developer?

    Hello OTN.

    I don't understand why my sql query will pass by in the data model of the BI Publisher. I created a new data model, chose the data source and type of Standard SQL = SQL. I tried several databases and all the same error in BI Publisher, but the application works well in TOAD / SQL Developer. So, I think it might be something with my case so I'm tender hand to you to try and let me know if you get the same result as me.

    The query is:

    SELECT to_char (to_date ('15-' |)) TO_CHAR(:P_MONTH) | » -'|| (To_char(:P_YEAR), "YYYY-DD-MONTH") - 90, "YYYYMM") as yrmth FROM DUAL


    Values of the variable:

    : P_MONTH = APRIL

    : P_YEAR = 2015

    I tried multiple variations and not had much luck. Here are the other options I've tried:

    WITH DATES AS

    (

    Select TO_NUMBER (decode (: P_MONTH, 'JANUARY', '01',))

    'FEBRUARY', '02',.

    'MARCH', '03'.

    'APRIL', '04'

    'MAY', '05'.

    'JUNE', '06'.

    'JULY', '07',.

    'AUGUST', '08'.

    'SEPTEMBER', '09'.

    'OCTOBER', '10',.

    'NOVEMBER', '11'.

    "DECEMBER", "12."

    '01')) as mth_nbr

    of the double

    )

    SELECT to_char (to_date ('15-' |)) MTH_NBR | » -'|| (TO_CHAR(:P_YEAR), 'DD-MM-YYYY') - 90, "YYYYMM")

    OF DATES

    SELECT to_char (to_date ('15-' |: P_MONTH |)) » -'|| ((: P_YEAR, 'MONTH-DD-YYYY')-90, "YYYYMM") as yrmth FROM DUAL

    I'm running out of ideas and I don't know why it does not work. If anyone has any suggestions or ideas, please let me know. I always mark answers correct and useful in my thread and I appreciate all your help.

    Best regards

    -Konrad

    So I thought to it. It seems that there is a bug/lag between the guest screen that appears when you enter SQL in the data model and parameter values, to at model/value data.

    Here's how I solved my problem.

    I have created a new data model and first created all my settings required in the data model (including the default values without quotes, i.e. APRIL instead "Of APRIL") and then saved.

    Then I stuck my sql query in the data model and when I clicked ok, I entered my string values in the message box with single quotes (i.e. "in APRIL' instead of APRIL)

    After entering the values of string with single quotes in the dialog box, I was able to retrieve the columns in the data model and save.

    In the data tab, is no longer, I had to enter the values in single quotes, but entered values normally instead, and the code worked.

    It seems the box prompted to bind the values of the variables when the SQL text in a data model expects strings to be wrapped in single quotes, but no where else. It's a big headache for me, but I'm glad that I solved it, and I hope this can be of help to other institutions.

    See you soon.

  • Create a table and populate it programmatically

    I create a new VI with an array of strings using VI scripts.  Now, I want to fill this table to an array of constant strings.  What is the best way to achieve this?

    Here is a screenshot of the code I have for now.  I have filled the first element of the array, but I can't understand how to access other components. Any suggestions?

    Thank you

    Emily

    After putting the string in the table (part of the creation), you simply close this reference.  You should be the establishment of the value of the table.

  • Work in Illustrator CS5. Try creating an EPS and get a runtime error.

    Tried to stop and restart, and it does not help. Anyone know a solution to this problem. Never happened to me before.

    Kristine,

    If you have made any changes (for example, upgraded the operating system to Yosemite or other daring acts), the list may be relevant, probably 6) or maybe 4).

    Sometimes, (some) things may fail or stop working for no apparent reason. When (other) possible reasons/remedies do not work, it can be a kind corruption (temporary or permanent) that can be cured with something on the following list. It starts with a few easy suggestions and safe) 1 and 2) for less severe cases and continues with two 3 ways) and 4) preferences of the society (irreversible and reversible), then follows a list 5) various other possibilities, and it ends with a complete reinstallation 6). If no other suggestion doesn't work, or if no other suggestion appears, you can start on the list and decide how far to go.

    The following is a general list of things, try when

    (A) the question is not in a specific file,

    (B) you have a printer installed, connected and turned on if it's a physical printer (you can use Adobe PDF/Acrobat Distiller as a printer by default without the need to have a printer on, of course you will need to specify when you really need print on paper), and

    (C) It is not caused by problems with opening a file from external media (see below).

    You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible), for CS3 - CC you can find the file here:

    https://helpx.Adobe.com/Illustrator/KB/preference-file-location-Illustrator.html

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) (check the box to delete the preferences), run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) to uninstall and reinstall. It is important to use this step three way: otherwise, things may persist.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Get the error invalid identifier in the left outer join

    I wrote a query and get the invalid identifier error during execution:
    the exact error is: ORA-00904: "D". "" ACCT_NO ": invalid identifier
    This query is not able to access the parent table alias in the subquery of the left outer join.

    This is the query:
    SELECT D.PROD_DESC_TX, BASE. ASSET_NUM, BASE. PROD_ID, BASE.NAME
    OF TABLE1 D
    LEFT OUTER JOIN
    (
    SELECT ASSET_NUM, PROD_ID, B.SID
    FROM TABLE2 E
    JOIN IN-HOUSE TABLE3 HAS IT E.PROD_ID = A.ROW_ID
    JOIN INTERNAL TABLE 4 C ON A.PAR_PROD_INT_ID = C.ROW_ID
    INTERNAL TABLE5 JOIN B ON C.ROW_ID = B.PAR_ROW_ID
    AND B.TYPE = 'VALUE '.
    AND B.NAME = 'VALUE '.
    WHERE E.ASSET_NUM = ((CASE WHEN LTRIM (RTRIM (D.BANK_NO)) = '021 ' THEN '021' ELSE ' 020' END) |) LTRIM (RTRIM (D.APPL_CD)). LTRIM (RTRIM (D.ACCT_NO)))
    ) BASE ON ((CASE WHEN LTRIM (RTRIM (D.BANK_NO)) = '021 ' THEN '021' ELSE ' 020' END) |) LTRIM (RTRIM (D.APPL_CD)). LTRIM (RTRIM (D.ACCT_NO))) = BASE. ASSET_NUM
    WHERE D.BANK_NO = 'VALUE '.
    AND D.APPL_CD = 'VALUE '.
    AND D.ACCT_NO = 'VALUE '.

    Edited by: user648525 13 Sep, 2011 01:21

    I can easily look at your request at this time (using my iPhone on a train).

    But trying out this line in the WHERE (the one with the invalid reference) clause in the main query.

    Who is... in the view of inline, use only the logic of the join (the clauses).

    Overflow the filtering logic (WHERE clause) to the main request. You may need to select some additional inline view columns to make these references work.

  • Addition of the new Image and text to an existing Page created with Tables

    Work in DW 5.5

    I try to add a new image/link and a small amount of text to an existing web page that was created with tables and centered.  I use AP div tags. One for the image and one for the text.  Everything works fine, but I can't get the new anchor points and to re - center with the rest of the page.  I'm not able to get around the "absolute positioning".  I tried different solutions of various tutorials but I can't make them work with tables.

    Added items are a Facebook button and text.

    Go to: http://www.sugarhollowfarms.NET/index.html See the problem.

    Help, please. I'm not that experienced.

    First, make a back up of the page before you implement the changes below!

    Take the bit of code below to

    and insert it directly after the opening tag div FWTableContainer and before your opening table tag (see location below):

    Then add - position: relative; -to the css of FWTableContainer (as shown below):

    {#FWTableContainer209091602}

    / * The div master to make sure that our contextual menus get properly aligned.  Be careful when you play with this one. */

    position: relative;

    margin: auto;

    Width: 800px;

    height: 600px;

    text-align: left;

    top: 20px;

    background-image: url(images/homepage_new3.jpg);

    border: medium solid #336600;

    position: relative;

    }

    Edit the css for FBlogo to as below:

    {#FBlogo}

    position: absolute;

    left: 700px;

    top: 380px;

    Width: 91px;

    z-index: 1;

    text-align: center;

    }

    Edit the css for bodytext as below:

    {.bodytext}

    do-family: Verdana, Arial, Helvetica, without serif.

    do-size: 11px;

    line-height: 13px;

    margin: 0;

    padding: 0;

    }

Maybe you are looking for