Frequency SQL and report

on 10G

I have a question that goes something like this (all are VARCHAR, no field number here).
Create Table dnd_freq_dist As
SELECT
       CREDIT_CARD,        COUNT(CREDIT_CARD)   OVER (PARTITION BY CREDIT_CARD) as CREDIT_CARDfreq,
       LOYALTY,            COUNT(LOYALTY)       OVER (PARTITION BY LOYALTY)           as LOYALTYfreq,
       CHANNEL,            COUNT(CHANNEL)       OVER (PARTITION BY CHANNEL)            as CHANNELfreq,
       LFTSPEND,           COUNT(LFTSPEND)      OVER (PARTITION BY LFTSPEND)          as LFTSPENDfreq
       
FROM Table;
So if I had 10 000 000 folders and there were 4 mill no and mill 6 Yes to credit card, is to show the CREDIT_CARDfreq for all ranks, that the distribution.

What works and gives me the info, but now I wanted to calculate the percentages of distinct values of each COLUMN_freq to the total number of rows in the table.

CREDIT card has 2, it's easy, but FIDELITY could have up to 5, CHANNEL 9 and thus SPEND up to 15 values (values no. dollars here, a few labels of prior cases between 0 ~ 100 then somevalue...)

in any case, so I tried to do something like this:
select 

CREDIT_CARD, CREDIT_CARDFREQ, ROUND(RATIO_TO_REPORT(CREDIT_CARDFREQ) over (),2) as CREDIT_CARD_RATIO

from

(select distinct CREDIT_CARD,CREDIT_CARDFREQ

from dnd_freq_dist);
It works perfectly, the data that I get back is:
CREDIT_CARD     CREDIT_CARDFREQ     CREDIT_CARD_RATIO
"N"                       7085607                              0.81
"Y"                       1715914                              0.19
but then when I add more columns, for others, it is when things are better, because there are too many rows/columns, so do not know how to do better?

Although this query works, the final results make no sense.
select 

CREDIT_CARD, CREDIT_CARDFREQ, ROUND(RATIO_TO_REPORT(CREDIT_CARDFREQ) over (),2) as CREDIT_CARD_RATIO,
LOYALTY, LOYHALTYFREQ,        ROUND(RATIO_TO_REPORT(LOYALTYFREQ) over (),2) as LOYALTY_RATIO,
CHANNEL, CHANNELFREQ,         ROUND(RATIO_TO_REPORT(CHANNELFREQ) over (),2) as CHANNEL_RATIO,
LFTSPEND, LFTSPENDFREQ,       ROUND(RATIO_TO_REPORT(LFTSPENDFREQ) over (),2) as LFTSPEND_RATIO

from

(select distinct CREDIT_CARD,CREDIT_CARDFREQ,LOYALTY,LOYALTYFREQ,CHANNEL,CHANNELFREQ,LFTSPEND,LFTSPENDFREQ

from dnd_freq_dist);
What is the best way to address the issue, make this right?

Maybe NOT TESTED!

select category_group,category,freqency,
       round(ratio_to_report(frequency) over (partition by category_group order by frequency desc),2) frequency_ratio
  from (select 'credit_card' category_group,credit_card category,count(*) frequency
          from dnd_freq_dist
         group by credit_card
        union all
        select 'loyalty',loyalty,count(*) frequency
          from dnd_freq_dist
         group by loyalty
        union all
        select 'channel',channel,count(*) frequency
          from dnd_freq_dist
         group by channel
        union all
        select 'lftspend',lftspend,count(*) frequency
          from dnd_freq_dist
         group by lftspend
       )
 order by category_group,frequency desc

Concerning

Etbin

Tags: Database

Similar Questions

  • Master-detail functionality between the regions of PL/SQL and IR possible?

    4.2.1

    THM 2

    Hi all

    We have two regions in a page. The upper region is a region of PL/SQL that lists the 5 best wages by Dept. This was not done using traditional reports because management wanted a "dashboard" as the look and feel that is already existing and what is happening in that it is a pl/sql block that has the sliders and the necessary HTML, CSS in there.

    Below that is an IR when the user clicks on the dept of region of PL/SQL, it will refresh the IR below to display all employees in this Department

    Top of the page shows region of PL/SQL

    EMP name Dept wage

    Emp1 10 10000

    EMP2 10 950

    Emp3 20 800

    The Dept field is a hyperlink.

    When we click on Dept on this region of PL/SQL

    The lower IR should be updated (without submit page)

    Output

    Emp1 10 10000

    EMP2 10 950

    It is a kind of master-detail relationship between PL/SQL and Report (Detail) (Master) area Interactive

    We can hyperlink in the SQL in pl/sql area, but you wonder how trap line and pass the dept id to the IR and get this region to refresh account?

    All suggestions from the experts?

    Thank you

    Ryan

    It is a way to pass the info in connection

    Perform the dynamic Action of the link column report

    The dynamic action can submit the session state value, and then refresh the IR.

    On either by the way, you must create dynamic PL/SQL region to solve this problem, see this

    APEX reports: layout custom with a column named (model line)

  • APEX5, workspace of monitoring reports - sql and growing period?

    APEX5 activity monitor has good relationships

    (1.) where is the SQL for reports of monitor?

    (2.) what is the SQL for the connection attempts with results of authentication?

    2.) also where I can increase the time interval for the storage of the parameters of the monitor?

    rgrds Paavo

    Paavo wrote:

    APEX5 activity monitor has good relationships

    (1.) where is the SQL for reports of monitor?

    In the workspace APEX Oracle Administration app (4350 ID). You can check this (and the other applications in the App Builder) by importing them into your workspace in the folder/apex/builder in the ZIP for installation.

    (2.) what is the SQL for the connection attempts with results of authentication?

    select /* APEX4350P4a */
      l.attempts,
      l.login_name,
      l.application,
      l.owner,
      l.authentication_method,
      l.access_date,
      l.ip_address,
      decode(nvl(l.authentication_result,0),
        0,m.AUTH_SUCCESS,
        1,m.AUTH_UNKNOWN_USER,
        2,m.AUTH_ACCOUNT_LOCKED,
        3,m.AUTH_ACCOUNT_EXPIRED,
        4,m.AUTH_PASSWORD_INCORRECT,
        5,m.AUTH_PASSWORD_FIRST_USE,
        6,m.AUTH_ATTEMPTS_EXCEEDED,
        7,m.AUTH_INTERNAL_ERROR,
        l.authentication_result) authentication_result,
        l.authentication_result authentication_result_code
    from
    (
    select
      count(*) attempts,
      count(distinct upper(login_name)) login_name,
      count(distinct application) application,
      count(distinct owner) owner,
      count (distinct authentication_method) authentication_method,
      count( distinct to_char(access_date,'YYYY.MM.DD')) access_date,
      count( distinct ip_address) ip_address,
      nvl(authentication_result,0) authentication_result
    from  wwv_flow_user_access_log_v l
    where  security_group_id = :flow_security_group_id
    and access_date >= sysdate - nvl(:p4_time,1)
    and ( :P4_APPLICATION is null or application like '%'||:P4_APPLICATION||'%')
    and (:P4_USER is null or lower(login_name) like '%'||lower(:P4_USER)||'%')
    group by nvl(authentication_result,0)
    ) l,
    (select
    wwv_flow_lang.system_message('AUTH_SUCCESS') auth_success,
    wwv_flow_lang.system_message('AUTH_UNKNOWN_USER') auth_unknown_user,
    wwv_flow_lang.system_message('AUTH_ACCOUNT_LOCKED') auth_account_locked,
    wwv_flow_lang.system_message('AUTH_ACCOUNT_EXPIRED') auth_account_expired,
    wwv_flow_lang.system_message('AUTH_PASSWORD_INCORRECT') auth_password_incorrect,
    wwv_flow_lang.system_message('AUTH_PASSWORD_FIRST_USE') auth_password_first_use,
    wwv_flow_lang.system_message('AUTH_ATTEMPTS_EXCEEDED') auth_attempts_exceeded,
    wwv_flow_lang.system_message('AUTH_INTERNAL_ERROR') auth_internal_error
    from dual) m
    

    Note that it is using undocumented objects that may not be available in your workspace. Create your own version of the report by using the published views APEX.

    2.) also where I can increase the time interval for the storage of the parameters of the monitor?

    I've never seen anything to indicate that these periods are configurable. You should capture the required information in the views in your own tables APEX custom on a daily basis, using a scheduled task. Then, you have a complete control on the retention periods and worried when and what APEX.

  • learning SQL and pssql, xml, forms and report

    I learned sql and plsql I donot Xml and forms and reports learn by own by easy method

    by sql and psql we learned basic on the rise, things of time ranging from online book (another way to practice and understand the concepts)

    repo, xml, sql, forms and pssql of learning javascript:; rt learning SQL and pssql, xml, forms and reportfor beginners

  • Tutorials Oracle Forms and reports

    Hi all

    I recently started a new job in collaboration with Oracle forms and reports using PL/SQL. I have little or no experience with either, I'm looking for some tutorials online. I found the following on Udemy me begin with PL/SQL - <-moderator removed link as we do to the business side--> but I find it difficult to find some tutorials on Oracle forms and reports. Can anyone suggest where I might find some good tutorials?

    Thank you

    -Action Moderator: removed link to a commercial side. The user don't please add links to commercial messages to any forum OTN in side. -----

    Tutorial Oracle...

    Although the first two of the following links are for older versions of forms, the concepts are still valid for all versions of forms.

    A tutorial on Oracle9i forms and reports

    http://www.holowczak.com/Oracle/dev9i/ iSelfSchooling - Introduction to forms Oracle Forms

    10g: demos, tips, and Techniques

    http://SheikYerbouti.developpez.com/index_en/

    http://www.SlideShare.NET/magupta26/Oracle-Forms-tutorial

    http://www2.cs.uh.edu/~ceick/3480/Customized_Oracle_Forms.pdf - create custom Oracle Forms

    http://www.youtube.com/watch?v=0BBiHvHzPYE - video

    Tutorial for Oracle reports...

    Here's some link...

    1. http://docs.oracle.com/html/B14364_01/title.htm

    2. http://www.scribd.com/doc/3960412/Basic2-Oracle-Reports-10g-Tutorials

    3. http://report10gsanamqa.blogspot.com/2010/08/triggers-in-reports-types-of-triggers.html

    Video tutorial

    http://www.YouTube.com/watch?v=Fum3MJm5yKU

    Hope this helps,

    Hamid

  • Need to reply and report interview question and Oracle Forms 10 G

    Hi gurus

    Soon, I expect my interview for Oracle Forms and Reports 10 G, I'd appreciate it if someone provides me with assistance to find the answers and the related question. Thank you

    Concerning

    Shu


    Hello

    Google is your friend

    http://www.coolinterview.com/type.asp?iType=64

    http://asset-9.soup.IO/asset/10511/3383_9441.PDF

    http://javarevisited.blogspot.com/2012/12/top-10-Oracle-interview-questions-and-answers-database-SQL.html

    Amatu Allah

  • EUL5. SQL and other administrative issues

    I am responsible for creating reports for an application based on Oracle.

    As part of the purchase, the supplier of the application supplied discoverer.  The seller installed discoverer.  The provider support is not very well on their own request, so I don't even try to get help from their share of issues of discoverer.

    Some of the users of the application build reports using discoverer; I, personally, hate it.

    I am, by nature of my post, considered the Discoverer administrator, however.  I don't know anything about the software, but have recently found how I can get the end-user reports shared for me (for purposes of, then, sharing to others) through SQL (I know, I know - is not supposed to do it this way - but to get my end users to track the requests on the part is like pulling teeth).

    In read so, however, it became clear that I had no EUL functions installed for END user license holder.

    I tried to run eul5.sql, and I get "insufficient permissions", if!

    What owner eul permission would be missing, and how I give you that?  (I have access level of the Oracle database sys taking the NLY).

    Thank you!

    Start with the following privs to the eul_owner:

    CREATE SESSION

    CREATE TABLE

    CREATE VIEW

    CREATE SEQUENCES

    CREATE PROCEDURE

    CREATE SESSION

    CREATING USER

    GRANT A PRIVILEGE

    ALTER USER

  • How to connect Forms 6i and reports 6i with oracle 10g R2?

    Hey everybody,

    I need your help in linking the two Forms 6i and reports 6i with Oracle 10 g Release 2 db, MS Access(2003, 2007) and SQL database (Microsoft Visual Studio 2008). I am a newbie. I installed all the on my laptop HP with Windows 7 installed Ultimate(32 bit OS). I want to generate reports and forms by accessing data from databases mentioned above. Please provide me with the configuration steps.

    Thanks in advance...!

    Being new to the forum, I encourage you to consider the following before you post much more:

    http://blogs.Oracle.com/Shay/entry/10_commandments_for_the_otn_fo

    As for your question, I hope that you read my posts.

    As I mentioned, form/reports 6 is very old and operating systems, you suggested that you will use are very new. This version of F/R is obsolete and expected that it works on a new operating system is not realistic. Why are spending you time with such an old version? Even if you're just trying to learn the product, learning with an old version is probably not a good idea.

    The tnsnames.ora file, you need to update is this: c:\orant\net80\admin

    If you want to learn how to use the product in detail, you probably won't be able to do it in a forum. It is not as if we were trying to learn MS Notepad. Forms/States (and all Oracle products) are enterprise-level products. All products Oracle would require that you spend time to review documentation and in many cases attend some courses to always be effective using them. You can find documents and training in countless places, including within the site of the Oracle. I recommend that you consider that your place of departure.

    Here are some examples:

    Forms of technical documents for most of the versions:
    http://www.Oracle.com/technetwork/Developer-Tools/Forms/Overview/index.html

    11.1.2 of Documentation Forms Library:
    http://docs.Oracle.com/CD/E24269_01/index.htm

    Archived forms documentation:
    http://www.Oracle.com/technetwork/documentation/dev-arch-093406.html

    Oracle Forms - Oracle Education
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=501

    The forms and the report generator online help is also a good place for more information that in some cases, the sample code is provided.

  • Problem link DB between active Data Guard and reports application database

    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Fazlul Kabir Mahfuz wrote:
    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Check this statement that applies to your environment

    * ORA-01555 on Active Data Guard Standby Database [1273808.1 ID] *.

    also

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8908307196113

  • Foglight v5.5.8: Enterprise SQL Server reports

    Hello

    I'm trying to produce some of the SQL Enterprise reports that are out-of-box (in paticular the Enterprise SQL Server Performance Summary) and I cannot get them to produce a report.  I have a report from 1 to 4 reports back.  The installation of SQL Server Enterprise will work, but the others not ever produce a report (the "Generating.  Please wait... ("message turns).  I checked the Knowledge Base, but don't see anything about it.  What is this someone another light or is - it just me?  Where can I check the logs for these reports?

    I'm under v5.5.8:

    Basket SQL. V5.5.8.529

    Thank you.

    Paul

    Here's the BugID/Quest DEFAULT ID FGLUI-10169 for the generation of reports on Foglight version 5.5.8 who is supposedly fixed in release of Foglight 5.6.3 (knock wood) = P

    What you can do is re - run the report with the smallest amount of time. In the meantime, when you click the button to generate go to your FMS_Home/bin and run every 5-10 seconds for generating thread dumps fms.exe or fms.sh t. Quest support will ask you for it when you open a case. Unless they find something else, you're stuck pretty well with the same problem as I do.

    Check out SOL87214 as well.

    Hope it will be useful.

    -AJ

  • Autocommit DDL: difference between SQL and SQL Developer * more?

    I asked this in the SQL forum (commit auto DDL: difference between developer SQL and command-line client?), but it has suggested it might be a problem in SQL Developer, so I thought I would ask here.

    I'm trying to understand what exactly happens when an error occurs when a transaction is committed because of a DDL statement. I noticed that with SQL Developer, if the DDL statement CREATE TABLE, the statement is executed, even if the DML statements which I entered before CREATE TABLE violates a deferred constraint, so that the transaction fails. In SQL * Plus, it's not the case: the table is not created. I have no automatic validation. I'm using Oracle 10 g XE.

    That's what happens in SQL * more:
    SQL> create table table1(a number);
    
    Table created.
    
    SQL> alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    
    Table altered.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> create table table2(b number);
    create table table2(b number)
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    
    
    SQL> select * from table2;
    select * from table2
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    If I put the same code in SQL Developer (versions 1.5.5 and 2.1.0.63), the table is created.
    This is my script:
    create table table1(a number);
    alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    insert into table1 values(1);
    commit;
    insert into table1 values(1);
    create table table2(b number);
    select * from table2;
    And this is the output of SQL Developer:
    create table succeeded.
     alter table table1 succeeded.
    1 rows inserted
    commited
    1 rows inserted
    
    Error starting at line 9 in command:
    create table table2(b number)
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    02091. 00000 -  "transaction rolled back"
    *Cause:    Also see error 2092. If the transaction is aborted at a remote
               site then you will only see 2091; if aborted at host then you will
               see 2092 and 2091.
    *Action:   Add rollback segment and retry the transaction.
    B                      
    ---------------------- 
    
    0 rows selected
    As you can see, the table is created in SQL Developer, but not in SQL * more.

    I wonder why it's different.

    Well Yes, it is a slightly different situation, because you issue 1 statement that executes internally 2 statements.
    But the problem is the same: the error handling. Where sqlplus rejects again (implicit) statements, sqldev goes ahead and runs them anyway. Personally, I'd say sqldev is more consistent and sqlplus is not, because run the following instructions (explicit).

    Kind regards
    K.

  • interesting SQL and plsql problem.

    The web application has a function to generate reports based on what the user selects, which includes this as the fields to display in the report, what order to display those selected fields, etc.

    Now, one of the field called suffix field is need removed the drop-down lists SELECT and ORDER BY. Please advise on how to solve the problem when the suffix record is removed from the database, and how we can increase the index [#] of these later OrderByField?

    reportId reportField reportValue
    ====================
    1 orderByField fname [0]
    1 orderByField [1] MI
    1 lname orderBytField [2]
    1 orderByField [3] suffix

    lname orderBytField 2 [0]
    suffix of orderByField 2 [1]
    2 orderByField fname [2]
    2 orderByField [3] MI

    In the example above, delete suffix will not affect reportId 1, but for reportId 2, if we remove the suffix, how do we record like the following?
    lname orderBytField 2 [0]
    2 orderByField fname [1]
    2 orderByField [2] MI

    I am open to any suggestion, using sql and plsql. The database is 9i.

    THX.

    Hello

    You're wright, you need to replace in the order by clause:

    with d as(
    select 1 as reportId, 'orderByField[0]' as reportField, 'fname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[1]' as reportField, 'MI    ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[2]'as reportField,  'lname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[3]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[1]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[2]' as reportField, 'fname2' as reportValue from dual union all
    select 2 as reportId, 'orderByField[0]'as reportField,  'lname0' as reportValue from dual union all
    select 2 as reportId, 'orderByField[6]'as reportField,  'lname6' as reportValue from dual union all
    select 2 as reportId, 'orderByField[12]'as reportField, 'lname12' as reportValue from dual union all
    select 2 as reportId, 'orderByField[4]'as reportField,  'lname4' as reportValue from dual union all
    select 2 as reportId, 'orderByField[5]'as reportField,  'lname5' as reportValue from dual union all
    select 2 as reportId, 'orderByField[8]'as reportField,  'lname8' as reportValue from dual union all
    select 2 as reportId, 'orderByField[10]'as reportField, 'lname10' as reportValue from dual union all
    select 2 as reportId, 'orderByField[11]'as reportField, 'lname11' as reportValue from dual union all
    select 2 as reportId, 'orderByField[9]'as reportField,  'lname9' as reportValue from dual union all
    select 2 as reportId, 'orderByField[7]'as reportField,  'lname7' as reportValue from dual union all
    select 2 as reportId, 'orderByField[3]' as reportField, 'MI    ' as reportValue from dual)
    SELECT a.reportId, 'reportField[' || to_char(DECODE(ROWNUM-min_sno,0,1,rownum+1-min_sno)-1)|| ']' as newReportField, reportValue FROM
    (SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1)) ) a,
    (
    SELECT reportId,MIN(rownum) min_sno FROM
    (
    SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1))
    )
    GROUP BY reportId
    ) b
    WHERE a.reportId = b.reportId;
    

    Kind regards

    Published by: Walter Fernández on January 6, 2009 16:51 - sorry I forgot the version of your database in the first post, I replaced the regular expression...

  • Whenever I open Firefox, I had a small window to appear and reports following error "TypeError; Components.classes['@ [' softage.ru/Skype FeExtensions; 1] is undefined

    Whenever I open Firefox, I had a small window to appear and reports following error "TypeError; Components.classes['@ ['softage.ru/Skype FeExtensions; 1] is undefined

    Remove/disable Skype add-on

    Uninstalling the modules

    Cannot uninstall an add-on

    Check and tell if its working.

  • Accidental block and report as spam

    I accidentally blocked and reported as spam a request from a friend who has used an unfamiliar alias. Since then, I returned and accepted as a contact.

    My question is this - is there the consequences of my having flagged as spam? Was cancelled by my eventually accept them? I was wondering if I should report to Skype or something that I would not have caused a problem for my friend's account.

    Thank you for any help or advice.

    Thanks, glad to hear it.

  • PXI-6133 Pulse frequency output and input with DAQmx

    I am trying to set a pulse meter output frequency task and read this signal with a frequency counter input task input pulses.  I use a 2 PXI-6133, each connected to a BNC-2090 case has.  I want to output a square of a certain frequency with the task frequency meter pulse output and then read the frequency of this signal using a task of cost input frequency.  I don't know how to property set up these tasks, or how to define which device to use for each heap.  I don't know what terminals on the BNC-2090 is the counter of entry/sortient channels correspond to them because that is not displayed in the documentation of the PXI-6133 or documentation of BNC-2090.

    Please see the attached VI for my attempt to put this in place.  Currently, I get two errors:

    (1) error-200452 took place at the property Node DAQmx channel meter Test - referred to as property is not supported by the device or is not applicable to the task.

    2. the error-89136 at DAQmx Start Task - specified route cannot be met because the hardware does not support.

    If I remove two channels of property DAQmx where I try to put the terminals for the counters, while the program is running, but then I know not what terminals on the BNC-2090 meters are connected to!  This causes the DAQmx read for the cost in the tasks of frequency to timeout because it does not detect a signal.

    I would really appreciate the help to properly configure these tasks and determine what terminals on the BNC-2090 case has the task of counter will work on.

    I see a few problems in the code originally:

    1. For your CI task, you type is defined as a counter entry > frequency.  But on the node property of DAQmx channel for this task, you modify the CI. Property of PulseWidth.Term.  It should be CI. Freq.Term. set the entry regardless of the PFI line you do not want the input signal on.  Tip: you don't have to type the name of the device in at all.  Enter "PFI0", it's the same as "DevN/PFI0" since the unit has already been specified in the DAQmx Virtual Channel Create function.  The name of the device, leaving aside will make your code more flexible where you decide later to change the name of the device.

    2. Maps of the S series, such as the 6133, do not have the same flexibility to change the output terminals of tasks of meter you might find with M or X series device.  Page 83 of the S series manual watch what signals can be extracted to PFI lines - Ctr0Out is not one of these.  Instead, Ctr0 out is, by default, pin 2.  Cabling to a BNC-2090 6133 is certainly difficult to understand out (probably because the 2090 was designed to work with the materials of the E and M series), but if you compare the pinout of a PXI-6255 0 with the 6133 pinout connector, you will notice that they are essentially a match 1-1.  Pin 2 is PFI12 on the 6255, so I assume the same for the 6133.  All this to say, Ctr0Out always appears on the pin 2/PFI12 for the 6133 and you therefore cannot change the output terminal that your code is trying to do, having for result error-89136.  Remove this node from the property altogether and the error should disappear.

Maybe you are looking for

  • I want to click on a Word to get a definition of the word

    Up to two weeks, I've had the feature: select (click on, highlight) a Word and its definition would leap upward. Then the feature has mysteriously disappeared and I can't find where to reset.

  • QNX driver for 6024E

    Hello, I ' am trying to work with a PCI card 6024E in a QNX operating system. For this reason, I downloaded the QNX drivres and Eseries examples. I installed the momentics in a Kubuntu OS, and from there I program the code for the QNX target. I creat

  • I have a problem my phone fixed port only and being connected to wireless internet.

    If this is the wrong place to ask this question, pls direct me to the right.Dodo told me that they cannot wear my TPG number, because it passes through Optus.  I thought that happened through Telstra.  Could someone tell me a cheap alternative societ

  • Iconia W510 and Windows 8.1 RTM

    Hi, I tried to install Windows RTM 8.1 x 86 US of the official ISO image of Microsoft on my W510 Iconia (created the bootable flash drive), the installation worked, but the problem is that a lot of missing drivers or not after the initial installatio

  • I received a maintenance update for Xperia Z5 what change?

    Hi.Could you tell me what is the change? https://drive.Google.com/file/d/0B2Tl345q1gNKd1FLLTZJSjZDMXc/view?USP=docslist_api