Pl-sql composite datatype-record problem!!

Hello
I am using hr schema tables and I intend to display first_name,last_name and hire date of President.
When I am doing join I am facing errors
following is my code
/* Formatted on 2009/11/23 15:19 (Formatter Plus v4.8.8) */
DECLARE
e1 hr.employees%ROWTYPE;
BEGIN
SELECT *
INTO e1
FROM hr.employees, hr.jobs
WHERE hr.employees.job_id = hr.jobs.job_id
AND hr.jobs.job_title = 'President';
DBMS_OUTPUT.put_line (e1.first_name);
DBMS_OUTPUT.put_line (e1.last_name);
DBMS_OUTPUT.put_line (e1.hire_date);
END;
and following are the errors
ORA-06550: line 7, column 6:
PL/SQL: ORA-00947: not enough values
ORA-06550: line 5, column 4:
PL/SQL: SQL Statement ignored
Please help
Thank You

Hello,
Instead of using
SELECT *you need to select the right columns that HR.EMPLOYEES consist of if you want to use the rowtype or declare 3 variables.
And always use proper aliases.
Another 'dirty' way, without any declarations at all:
hoek&XE> begin
  2    for e1 in ( select e.*
  3                from   hr.employees e
  4                ,      hr.jobs j
  5                where  e.job_id = j.job_id
  6                and    j.job_title = 'President'
  7              )
  8    loop
  9      dbms_output.put_line (e1.first_name);
10      dbms_output.put_line (e1.last_name);
11      dbms_output.put_line (e1.hire_date);
12    end loop; 
13  end;
14  /
Steven
King
17-06-1987 00:00:00

Similar Messages

  • Returning composite datatype(record) to an SQL Query

    I have a function called get_customer_address() that takes customer id and returns the customer address as a record type.
    TYPE cust_address_type IS RECORD
    (address1 VARCHAR2(25),
    address2 VARCHAR2(25),
    city VARCHAR2(25),
    zipcode VARCHAR(10),
    STATE VARCHAR(10));
    cust_address cust_address_type;
    My function is returning cust_address.
    I want to modify below exising query and call this function from the query to get address.
    select cust_id, address1, address2, city, zipcode from customer_table;
    Instead of using address1, address2, city, zipcode if I want to the record type variable cust_id returned from the function, can I use it in my query? How do I modify the above query to call the function get_customer_address and get the same values as in the above query?

    To add to Elic's comment - PL/SQL record structures can be defined as SQL objects, as long as SQL data types are used and not non-supported PL/SQL types like boolean.
    E.g. create or replace type TCustAddress is object
    (  address1 VARCHAR2(25),
       address2 VARCHAR2(25),
       city     VARCHAR2(25),
       zipcode  VARCHAR2(10),
       state    VARCHAR2(10)
    );This provides a lot more flexibility than using PL/SQL record types. This is essentially an object class definition - and you can add constructors and methods to it.
    It works seamlessly across both SQL and PL/SQL.

  • REPORT ON PL/SQL TABLE OF RECORDS  on 6i & 9i

    HELLO ALL,
    I Want to know if it is posible to build a report on pl/sql
    table of records in developer 6i, or in 9i.
    thanks

    This should not happen. If you are not sure that your stored procedure is bug-free, you could generate and use stored procedures using my SQLPlusPlus and give it a try.
    You can email me directly if your problem still not gets solved.
    regards,
    M. Armaghan Saqib
    +---------------------------------------------------------------
    | 1. SQL PlusPlus => Add power to SQL Plus command line
    | 2. SQL Link for XL => Integrate Oracle with XL
    | 3. Oracle CBT with sample GL Accounting System
    | Download free: http://www.geocities.com/armaghan/
    +---------------------------------------------------------------
    null

  • Recording problem on my Xi-Fi Fatality?

    'Recording problem on my Xi-Fi Fatality?d So I have a Xi-Fi Fatality, and I would like to be able to record directly from my computer so that it's own output is also the input. For example, if I'm on ventrillo or something and I want to play a funny mp3 to show my friends I'd like to be able for the audio to come directly from the output.
    Anyways, my microphone seems to work fine, and that's where the trouble begins.
    I go to the sound control panel and click on the recording tab. ? It has microphone as the default device and it says "working."
    There are also options for "Auxillary" "Line-In" "Digital-In" and "What U Hear"
    However, under each of them it says "currently unavailable"
    I am unable to get any of them to function even when I set them to the default device.
    Is this normal?

    + It's funny you should post this because I came here right now to post the exact same thing. I would have posted earlier but I forgot my account information and had to wait to get a reply email.
    So... same here (yes I know this was no help).
    Actually this is kind of weird. Every now and then my "Aux 2" will become available and my mic is not. I have to restart my computer 4 or 5 times for my mic to become available.

  • ADO and function that returns PL/SQL boolean datatype

    How to get PL/SQL boolean datatype using ADO?
    DBMS_SESSION.IS_SESSION_ALIVE function returns boolean.
    This code raises error with very strange description:
    Dim cmd As New ADODB.Command
    str = "{? = call DBMS_SESSION.IS_SESSION_ALIVE(""000011112222"" )}"
    With cmd
    Set .ActiveConnection = objDB.Connection
    .CommandText = str
    .CommandType = adCmdText
    .Parameters.Append .CreateParameter("Return", adBoolean, adParamOutput)
    End With
    cmd.Execute
    ? err.Source
    OraOLEDB
    ? err.Number
    -2147467259
    ? err.Description
    4ûC
    Thanks for any help.

    Mikhail,
    OraOLEDB does not support PL/SQL boolean type.
    Sinclair

  • SQL Server 2012 installation problem (error server didn't respond in timely fashion ....)

    Hi everyone,
    I am new to SQL server....I am learning C# programming using visual studio 2013 . And I want to learn SQL database language to create and practice C# database project....My computer meets all the hardware requirement for SQL installation (i.e. My computer
    has window 7 OS , 80 GB freen HD  and 6 GB RAM. ) Therefore I  download Microsoft SQL server express 2012 try to install it in my computer (which already has visual studio).
    But during installation of SQL server  I have problem ...it says
    the server doesn't respond in timely fashion. When I research about it everyone were saying uninstall sql and reinstall again. I uninstall and re install but still having same problem...
    The database engine  also not installed displaying same error.
    I don't know how can i install sql server 2012 to use with visual studio in same computer.
    Can somebody please help with SQL installation please ?
    It will be great help.
    Many thanks in advance 
    regards
    rash

    Hi 
    my summary file is :
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2146232832
      Start time:                    2015-04-06 11:34:18
      End time:                      2015-04-06 19:04:46
      Requested action:              Install
    Setup completed with required actions for features.
    Troubleshooting information for those features:
      Next step for SQLEngine:       Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for DQ:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for FullText:        Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for Replication:     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for IS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for RS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for AS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
    Machine Properties:
      Machine name:                  RASHA-VAIO
      Machine processor count:       4
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
      SQL Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             Database Engine Services                 1033      
              Express Edition      10.1.2531.0     No        
      SQL Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             SQL Server Replication                   1033      
              Express Edition      10.1.2531.0     No        
    Package properties:
      Description:                   Microsoft SQL Server 2012 Service Pack 1
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      SPLevel:                       0
      Installation location:         E:\x64\setup\
      Installation edition:          Enterprise
    Product Update Status:
      None discovered.
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      false
      AGTSVCACCOUNT:                 NT Service\SQLSERVERAGENT
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Manual
      ASBACKUPDIR:                   C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Config
      ASDATADIR:                     C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data
      ASLOGDIR:                      C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
      ASPROVIDERMSOLAP:              1
      ASSERVERMODE:                  TABULAR
      ASSVCACCOUNT:                  NT Service\MSSQLServerOLAPService
      ASSVCPASSWORD:                 <empty>
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            RASHA-VAIO\RASHA
      ASTEMPDIR:                     C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CLTCTLRNAME:                   MAIN
      CLTRESULTDIR:                  C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
      CLTSTARTUPTYPE:                Manual
      CLTSVCACCOUNT:                 NT Service\SQL Server Distributed Replay Client
      CLTSVCPASSWORD:                <empty>
      CLTWORKINGDIR:                 C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
      CTLRSTARTUPTYPE:               Manual
      CTLRSVCACCOUNT:                NT Service\SQL Server Distributed Replay Controller
      CTLRSVCPASSWORD:               <empty>
      CTLRUSERS:                     RASHA-VAIO\RASHA
      ENABLERANU:                    false
      ENU:                           true
      ERRORREPORTING:                false
      FEATURES:                      SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  false
      INDICATEPROGRESS:              false
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    MSSQLSERVER
      INSTANCENAME:                  MSSQLSERVER
      ISSVCACCOUNT:                  NT Service\MsDtsServer110
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      ROLE:                          <empty>
      RSINSTALLMODE:                 FilesOnlyMode
      RSSHPINSTALLMODE:              SharePointFilesOnlyMode
      RSSVCACCOUNT:                  NT Service\ReportServer
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  Latin1_General_CI_AS
      SQLSVCACCOUNT:                 NT Service\MSSQLSERVER
      SQLSVCPASSWORD:                <empty>
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           RASHA-VAIO\RASHA
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      TCPENABLED:                    1
      UIMODE:                        Normal
      UpdateEnabled:                 true
      UpdateSource:                  MU
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\ConfigurationFile.ini
    Detailed results:
      Feature:                       Management Tools - Complete
      Status:                        Passed
      Feature:                       Client Tools Connectivity
      Status:                        Passed
      Feature:                       Client Tools SDK
      Status:                        Passed
      Feature:                       Client Tools Backwards Compatibility
      Status:                        Passed
      Feature:                       Management Tools - Basic
      Status:                        Passed
      Feature:                       SQL Server Data Tools
      Status:                        Passed
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x80004005
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       Data Quality Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x80004005
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       Full-Text and Semantic Extractions for Search
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x80004005
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x80004005
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       Master Data Services
      Status:                        Passed
      Feature:                       Distributed Replay Client
      Status:                        Passed
      Feature:                       Distributed Replay Controller
      Status:                        Passed
      Feature:                       Integration Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Integration Services
      Component error code:          0x84BB0001
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       Data Quality Client
      Status:                        Passed
      Feature:                       Reporting Services - Native
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Reporting Services
      Component error code:          0x84BB0001
      Error description:             The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC112D1C%400xDC80C325&EvtType=0xDC112D1C%400xDC80C325
      Feature:                       Analysis Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Analysis Services
      Component error code:          0x80131600
      Error description:             The service could not be started. Reason:  The service did not respond to the start or control request in a timely fashion.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x88A466B0%400x857354B0&EvtType=0x88A466B0%400x857354B0
      Feature:                       Reporting Services - SharePoint
      Status:                        Passed
      Feature:                       Reporting Services Add-in for SharePoint Products
      Status:                        Passed
      Feature:                       SQL Browser
      Status:                        Passed
      Feature:                       Documentation Components
      Status:                        Passed
      Feature:                       SQL Writer
      Status:                        Passed
      Feature:                       SQL Client Connectivity
      Status:                        Passed
      Feature:                       SQL Client Connectivity SDK
      Status:                        Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20150406_112342\SystemConfigurationCheck_Report.htm
    I hope it will help you to figure out ...i dont know how to solve this issue ..i have un install and re install more than 5 times.
    thank you

  • SQL+-MULTI TABLE QUERY PROBLEM

    HAI ALL,
    ANY SUGGESTION PLEASE?
    SUB: SQL+-MULTI TABLE QUERY PROBLEM
    SQL+ QUERY GIVEN:
    SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
    HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
    DLC_POLYMORPHS_NORMAL_VALUE FROM PATIENTS_MASTER1, HAEMATOLOGY1,
    DIFFERENTIAL_LEUCOCYTE_COUNT1
    WHERE PATIENT_NUM = HMTLY_PATIENT_NUM AND PATIENT_NUM = DLC_PATIENT_NUM AND PATIENT_NUM
    = &PATIENT_NUM;
    RESULT GOT:
    &PATIENT_NUM =1
    no rows selected
    &PATIENT_NUM=2
    no rows selected
    &PATIENT_NUM=3
    PATIENT_NUM 3
    PATIENT_NAME KKKK
    HMTLY_TEST_NAME HAEMATOLOGY
    HMTLY_RBC_VALUE 4
    HMTLY_RBC_NORMAL 4.6-6.0
    DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
    DLC_POLYMORPHS_VALUE     60
    DLC_POLYMORPHS_NORMAL_VALUE     40-65
    ACTUAL WILL BE:
    &PATIENT_NUM=1
    PATIENT_NUM 1
    PATIENT_NAME BBBB
    HMTLY_TEST_NAME HAEMATOLOGY
    HMTLY_RBC_VALUE 5
    HMTLY_RBC_NORMAL 4.6-6.0
    &PATIENT_NUM=2
    PATIENT_NUM 2
    PATIENT_NAME GGGG
    DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
    DLC_POLYMORPHS_VALUE     42
    DLC_POLYMORPHS_NORMAL_VALUE     40-65
    &PATIENT_NUM=3
    PATIENT_NUM 3
    PATIENT_NAME KKKK
    HMTLY_TEST_NAME HAEMATOLOGY
    HMTLY_RBC_VALUE 4
    HMTLY_RBC_NORMAL 4.6-6.0
    DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
    DLC_POLYMORPHS_VALUE     60
    DLC_POLYMORPHS_NORMAL_VALUE     40-65
    4 TABLES FOR CLINICAL LAB FOR INPUT DATA AND GET REPORT ONLY FOR TESTS MADE FOR PARTICULAR
    PATIENT.
    TABLE1:PATIENTS_MASTER1
    COLUMNS:PATIENT_NUM, PATIENT_NAME,
    VALUES:
    PATIENT_NUM
    1
    2
    3
    4
    PATIENT_NAME
    BBBB
    GGGG
    KKKK
    PPPP
    TABLE2:TESTS_MASTER1
    COLUMNS:TEST_NUM, TEST_NAME
    VALUES:
    TEST_NUM
    1
    2
    TEST_NAME
    HAEMATOLOGY
    DIFFERENTIAL LEUCOCYTE COUNT
    TABLE3:HAEMATOLOGY1
    COLUMNS:
    HMTLY_NUM,HMTLY_PATIENT_NUM,HMTLY_TEST_NAME,HMTLY_RBC_VALUE,HMTLY_RBC_NORMAL_VALUE     
    VALUES:
    HMTLY_NUM
    1
    2
    HMTLY_PATIENT_NUM
    1
    3
    MTLY_TEST_NAME
    HAEMATOLOGY
    HAEMATOLOGY
    HMTLY_RBC_VALUE
    5
    4
    HMTLY_RBC_NORMAL_VALUE
    4.6-6.0
    4.6-6.0
    TABLE4:DIFFERENTIAL_LEUCOCYTE_COUNT1
    COLUMNS:DLC_NUM,DLC_PATIENT_NUM,DLC_TEST_NAME,DLC_POLYMORPHS_VALUE,DLC_POLYMORPHS_
    NORMAL_VALUE,
    VALUES:
    DLC_NUM
    1
    2
    DLC_PATIENT_NUM
    2
    3
    DLC_TEST_NAME
    DIFFERENTIAL LEUCOCYTE COUNT
    DIFFERENTIAL LEUCOCYTE COUNT
    DLC_POLYMORPHS_VALUE
    42
    60
    DLC_POLYMORPHS_NORMAL_VALUE
    40-65
    40-65
    THANKS
    RCS
    E-MAIL:[email protected]
    --------

    I think you want an OUTER JOIN
    SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
    HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
    DLC_POLYMORPHS_NORMAL_VALUE
    FROM PATIENTS_MASTER1, HAEMATOLOGY1,  DIFFERENTIAL_LEUCOCYTE_COUNT1
    WHERE PATIENT_NUM = HMTLY_PATIENT_NUM (+)
    AND PATIENT_NUM = DLC_PATIENT_NUM (+)
    AND PATIENT_NUM = &PATIENT_NUM;Edited by: shoblock on Nov 5, 2008 12:17 PM
    outer join marks became stupid emoticons or something. attempting to fix

  • Record Store only reads one record problem

    I have a problem where I can read and write a record to a records store, but i can not do this for multiple records as i am trying with below code. Any help is very welcomes thank you, I am very new to J2ME.
    I have a J2ME midlet that calls the startRecordStore() method which create a record 1.
    It uses a static int records and it increments it every time a new recordstore is created, well I am not entirely sure if i need to do this. Because I want to go through all the records created.
    public void startRecordStore() {
         // Incremenets records count
         // Temporary example for this workshop only
         records+=1;
         try { rs = RecordStore.openRecordStore("StudentStore"+records+"", true);
         catch (Exception err) {
              Alert alr = new Alert("Error Creating", err.toString(), null, AlertType.WARNING);
              alr.setTimeout(Alert.FOREVER);
              display.setCurrent(alr);
    }Then it calls the readData() method which reads the data from the 3 fields, something like this
    for(int i=0;i<count;i++) {
              ods.writeUTF(ReadDataString);
              ods.writeUTF(ReadDataString[i+1]);
              ods.writeInt(ReadDataInt[i]);
              ods.flush();
              // Put the whole write stream to a byte
              ReadDataByte = os.toByteArray();
              // finally add the fetchDataType to to a record store
              rs.addRecord(ReadDataByte, 0, ReadDataByte.length);
         os.reset();
         os.close();
         ods.close();
    Then the WriteData() method is called displaying the records
    PROBLEM it only displays the last record, instead of more then one record.
    eg. StudentStore1, StudentStore2 etc etc ..
    // create record enumerator referrence to the instance
         re = rs.enumerateRecords(null,null,false);
         // go through each records using enumerator
         while(re.hasNextElement()) {
              rs.getRecord(re.nextRecordId(), ReadInputData, 0);
              buffer.append(ids.readUTF());
              buffer.append("\n");
              buffer.append(ids.readUTF());
              buffer.append("\n");
              buffer.append(ids.readInt());
              buffer.append("\n");
              Alert alr = new Alert("Currently Reading", buffer.toString(), null, AlertType.WARNING);
              alr.setTimeout(Alert.FOREVER);
              display.setCurrent(alr);
         // CLOSE INPUT STREAM
         is.close();Any idea thanks guys

    public void startRecordStore() {
        records+=1;
        try {
            rs = RecordStore.openRecordStore("StudentStore"+records+"", true);
        }Are you sure this is what you want to do?
    I don't know where you're calling startRecordStore(), but you're creating a new record store for each "records".
    Shouldn't you be just opening the record store "StudentStore", and them adding records to that store?
    jc

  • Audio recording problem in Cap 5

    I have used earlier Captivate editions a great deal and never had audio recording problems.  I am getting a weak scratchy audio recording.  I have tried in Vista, Win 7 and with multiple microphones.  What can be the problem?

    Joe,
    Unfortunately, you have posted to the Premiere forum. This was the precursor to PrPro. The MOD's will probably move this out to the PrPro forum, so more folk will see it and can respond.
    Now, did you use a USB mic? Many have had issues with those.
    Also, going back about a year, there was a similar thread, and the description was about the same - "chipmunk." I do not recall the flow of that thread, or the resolution, but will try to find it. I just hope that it was not before the forum changeover, as it is likely gone forever.
    Good luck,
    Hunt
    [Edit] OK, I think that this is the THREAD.
    Message was edited by: Bill Hunt - Added Edit and link

  • Audio Recording Problem - distorted

    Hey all,
    I got an audio recording problem here...
    When I try to record audio onto my project, the sounds is very poor and distorted. Plus, there is a pretty ugly delay. But when I use garageband, the sound is great and how it should be. So this makes me think that Logic has some sort of problem with my driver (Firebox) or somethin'.
    Here's my Setup
    -imac G5
    -Logic Pro 7.2 (Bought just a few days ago)
    -Presonus Firebox (audio interface)
    -Condensor Mic
    Cheers!

    Hi,
    It is possible that your FireBox is not the audio card set up in Logic, and that you are accidentally recording the built-in mic.
    If Garageband is seeing your FireBox corrctly, then it is the setup in Logic, and nothing else, that you should be looking at.
    Check your audio hardware and drivers.
    Cheers

  • Re: Recording Problems - Programmes Recoding but B...

    Posts: 1
    Registered: 24-02-2011
    0
    Re: Recording Problems - Programmes Recoding but Blank Screen
    Options
    Edit Reply
    Mark as New
    Bookmark
    Subscribe
    Subscribe to this message's RSS Feed
    Highlight this Message
    Print
    Email this Message to a Friend
    Report Inappropriate Content
    on 24-02-2011 21h35
    Need help please I'm new to this forum... I have been having a few problems with my recordings like others I try to play back programme I have recorded and get nothing and also trying to delete a programme I'm getting a message to say I can't delete as the programme may be running on another box!!! I only have 1 box!!! I have tried all the rebooting fixes but no joy... I have an old white style hh... Is this or the box tired and in need of replacing??? I've also checked the settings and I'm online and have space on my disk!!! Help

    We have had the same problem, which is really frustrating!!
    The box appears to be recording but when the programme is played back, it stops during the programme and goes to the resume play on the menu or sometimes the channel isn't there, its just a black screen, I'm thinking of going to Sky if it carries on, getting really fed up now!!!
    davearliss wrote:
    Posts: 1
    Registered: 24-02-2011
    0
    Re: Recording Problems - Programmes Recoding but Blank Screen
    Options
    Edit Reply
    Mark as New
    Bookmark
    Subscribe
    Subscribe to this message's RSS Feed
    Highlight this Message
    Print
    Email this Message to a Friend
    Report Inappropriate Content
    on 24-02-2011 21h35
    Need help please I'm new to this forum... I have been having a few problems with my recordings like others I try to play back programme I have recorded and get nothing and also trying to delete a programme I'm getting a message to say I can't delete as the programme may be running on another box!!! I only have 1 box!!! I have tried all the rebooting fixes but no joy... I have an old white style hh... Is this or the box tired and in need of replacing??? I've also checked the settings and I'm online and have space on my disk!!! Help

  • PL/SQL Compositions/Network

    I'm trying to find a way to document calling hierarchy and dependances of subprograms (functions, procedures, ..). I understand that PL/SQL Composition can list components of a package. I don't understand how to define a network of sub-program calling sequence, with parameters passed between them, and documented in a diagram. I used this capability in earlier version of Designer (7.xx). Is this capability still there and how is it done? Any documentation?

    I think the easiest way of getting some of this functionality would be to write a PL/SQL wrapper to a Java Stored Procedure that implements calls to the Java InetAddress class. It doesn't haven't the full set of operators but I'm not sure what 'less than' actually means in the context of an IP address . If you really need them you could always extend the InetAddress class to implement such tests.
    Cheers, APC

  • SQL* Loader - Multi-line record problem

    Hi all,
    I've been given a ver dirty source file. One that has records of more than 1 line. The only record terminator that is available is that the first columns should always be in number in 7 digits (0000000-9999999). Is it possible to create a control file that checks if the current record is actually a new record or if it is just a continuation of the previous record?
    I've been checking on some parameters like the CONTINUEIF and the "str terminator_string".
    I tried both but neither fully satisfies the requirements.
    I tried using CONTINUEIF by adding CONTINUEIF THIS (1) = '0' to check if it only creates records that has a column value starting with '0'. Unfortunately it still adds those that doesn't start with '0'.
    Also tried the INFILE 'mydata.dat' "str '\r\n0'". This works for those who starts with 0 only but unfortunately it trims out the first zero (0) from that column.
    Can someone suggest any other approach?
    Thanks.
    Allen

    hi,
    thanks for the suggestion. i did try it. it works ok but i also found a way to use sql loader since this is better performance wise. i used
    CONTINUEIF NEXT PRESERVE (8) <> X'09'.
    basically, what this does is check if the character on the 8th position is a tab. if it is, then it's a new line. i used this since the first column in my text file uses a 7 digit number. it's not perfect but loads fast. although i'm still looking for some other ways and means.
    thanks again.

  • SQL Developer Import Excel problem

    I just recently installed SQL Developer (1.1.3).
    I created a table with 4-columns all char datatype.
    I tried to import an excel file into this table. Checked Header Row )1st excel record is header) and move all Available columns into Selectedcolumns. All my excel records are shown on the data preview. But when I click on [Insert], it gave me a message: No columns selected for insert.
    When I viewed the DML: insert into TBLCLOSETIMETABLE (Choose Data Type,Choose Data Type,Choose Data Type,Choose Data Type) VALUES('January','Thursday, February 01, 2007','Payroll','1st Wk');
    Any help will be greatly appreciated.

    I was able to "successfully" import excel files. I did not know I had to edit/map on the Data Types tab.
    Now I have a different problem where I have my date in excel as 01-Feb-07 and the
    Data Preview pane shows 39,114.
    I was not able to successfully import this column.
    Again, any help will be greatly appreciated.

  • Duplicate records problem

    Hi everyone,
    I'm having a a little difficulty resolving a problem with a repeating field causing duplication of data in a report I'm working on, and was hoping someone on here can suggest something to help!
    My report is designed to detail library issues during a particular period, categorised by the language of the item issued. My problem is that on the sql database that out library management system uses, it is possible for an item to have more than one language listed against it (some books will be in more than one language). When I list the loan records excluding the language data field, I get a list of distinct loan records. Bringing the language data into the report causes the loan record to repeat for each language associated with it, so if a book is both in English and French, it will cause the loan record to appear like this:
    LOAN RECORD NO.     LANGUAGE CODE
      123456                             ENG
      123456                             FRE
    So, although the loan only occurred once I have two instances of it in my report.
    I am only interested in the language that appears first and I can exclude duplicated records from the report page. I can also count only the distinct records to get an accurate overall total. My problem is that when I group the loan records by language code (I really need to do this as there are millions of loan records held in the database) the distinct count stops being a solution, as when placed at this group level it only excludes duplicates in the respective group level it's placed in. So my report would display something like this:
    ENG     1
    FRE      1
    A distinct count of the whole report would give the correct total of 1, but a cumulative total of the figures calculated at the language code group level would total 2, and be incorrect. I've encountered similar results when using Running Totals evaluating on a formula that excludes repeated loan record no.s from the count, but again when I group on the language code this goes out of the window.
    I need to find a way of grouping the loan records by language with a total count of loan records alongside each grouping that accurately reflects how many loans of that language took place.
    Is this possible using a calculation formula when there are repeating fields, or do I need to find a way of merging the repeating language fields into one field so that the report would appear like:
    LOAN RECORD     LANGUAGE CODE
      123456                      ENG, FRE
    Any suggestions would be greatly appreciated, as aside from this repeating language data there are quite a few other repeating database fields on the system that it would be nice to report on!
    Thanks!

    if you create a group by loan
    then create a group by language
    place the values in the group(loan id in the loan header)
    you should only see the loan id 1x.
    place the language in the language group you should only see that one time
    a group header returns the 1st value of a unique id....
    then in order to calculate avoiding the duplicates
    use manual running totals
    create a set for each summary you want- make sure each set has a different variable name
    MANUAL RUNNING TOTALS
    RESET
    The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
    whileprintingrecords;
    Numbervar  X := 0;
    CALCULATION
    The calculation is placed adjacent to the field or formula that is being calculated.
    (if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
    whileprintingrecords;
    Numbervar  X := x + ; ( or formula)
    DISPLAY
    The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
    whileprintingrecords;
    Numbervar  X;
    X

Maybe you are looking for

  • Print in Character Mode on Dot Matrix Printer

    Dear All, When we print any reports from SAP to Dox Matrix printers it comes in graphic mode. So it will take too much time to print and  print is also not readable. Same I want to print in Character mode (Simole reports where graphics are not involv

  • A bug in the photo app ?

    Hi, the 'send photo' icon doesn't appear when you start the 'camera photo'app from the lockcreen. Illustration in the picture here : Can anyone help ?

  • Mount USB drive

    I am trying to mount a USB drive, using this command: mount -t usbfs /dev/sdb1  /usb When I list the contents of /usb it says:   001   002  devices What am I doing wrong?

  • Sample Content Management Plan Doc

    Hi, Does anyone has sample Content Management Plan docs. I do remember that, in BO online e learning courses, they provide these sample docs as part of their exercises. I lost those docs. Now I don't have access to those courses too. If anyone has th

  • Control key lock some time please help

    my control key is creating problem for me some time when idle its not working properly its pressed automatically please send here some guy as already i am in waranty period thanks' Anil 09717721961 India