Request help minor please... in a query

Hi all

Here's my query, time I exceute, external select clause I am error msg 'column ambiguously defined ".

Without external select clause, it's fine. Please guide me, what I'm missing here.

Also would appreciate it, if someone suggest me to write this query in a better way or optimized. Thank you

SELECT MAX (A.START_FX_TRAN_ID)

MAX (A.end_fx_tran_id)

A.entered_dt_ts

A.USER_NAME

A.trade_dt

A.deal_number

A.fx_deal_type

A.orientation_buysell

A.base_ccy

A.base_ccy_amt

A.secondary_ccy

A.secondary_ccy_amt

A.MATURITY_DT

A.TRADE_RT

A.FORWARD_PTS

A.CORPORATE_PIPS

A.DEAL_OWNER_INITIALS

A.CORPORATE_DEALER

A.PROFIT_CENTER_CD

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

A.counterparty_nm

A.counterparty_number

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

, NULL of

(SELECT

start_tx.fx_tran_id START_FX_TRAN_ID

end_tx.fx_tran_id end_fx_tran_id

start_tx.entered_dt_ts

THE USER USER_NAME

start_tx.trade_dt

start_tx.deal_number

start_tx.fx_deal_type

start_tx.orientation_buysell

start_tx.base_ccy

start_tx.base_ccy_amt

start_tx.secondary_ccy

start_tx.secondary_ccy_amt

start_tx. MATURITY_DT

start_tx. TRADE_RT

start_tx. FORWARD_PTS

start_tx. CORPORATE_PIPS

start_tx. DEAL_OWNER_INITIALS

start_tx. CORPORATE_DEALER

start_tx. PROFIT_CENTER_CD

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

start_tx.counterparty_nm

start_tx.counterparty_number

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

Of

(SELECT * FROM fx_transactions WHERE gmt_conv_entered_dt_ts > = TO_DATE('20-Nov-2013 4:00:23 AM','DD-Mon-YYYY HH:MI:SS AM')) start_tx

, (SELECT * FROM fx_transactions WHERE the gmt_conv_entered_dt_ts < = TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM')) end_tx WHERE

NVL (start_tx.corporate_dealer, 'nullX') = NVL (end_tx.corporate_dealer, 'nullX') AND

start_tx. COUNTERPARTY_NM = end_tx. COUNTERPARTY_NM AND

start_tx. COUNTERPARTY_NUMBER = end_tx. COUNTERPARTY_NUMBER AND

start_tx.fx_deal_type = end_tx.fx_deal_type AND

start_tx. BASE_CCY = end_tx. BASE_CCY AND

start_tx. SECONDARY_CCY = end_tx. SECONDARY_CCY AND

start_tx. ORIENTATION_BUYSELL! = end_tx. ORIENTATION_BUYSELL

AND start_tx.fx_tran_id = 1855303

) AT

LEFT OUTER JOIN

(SELECT

start_tx.fx_tran_id START_FX_TRAN_ID

end_tx.fx_tran_id end_fx_tran_id

start_tx.entered_dt_ts

USER

start_tx.trade_dt

start_tx.deal_number

start_tx.fx_deal_type

start_tx.orientation_buysell

start_tx.base_ccy

start_tx.base_ccy_amt

start_tx.secondary_ccy

start_tx.secondary_ccy_amt

start_tx. MATURITY_DT

start_tx. TRADE_RT

start_tx. FORWARD_PTS

start_tx. CORPORATE_PIPS

start_tx. DEAL_OWNER_INITIALS

start_tx. CORPORATE_DEALER

start_tx. PROFIT_CENTER_CD

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

start_tx.counterparty_nm

start_tx.counterparty_number

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

Of

(SELECT * FROM fx_transactions WHERE gmt_conv_entered_dt_ts > = TO_DATE('20-Nov-2013 4:00:23 AM','DD-Mon-YYYY HH:MI:SS AM')) start_tx

, (SELECT * FROM fx_transactions WHERE the gmt_conv_entered_dt_ts < = TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM')) end_tx

WHERE

NVL (start_tx.corporate_dealer, 'nullX') = NVL (end_tx.corporate_dealer, 'nullX') AND

start_tx. COUNTERPARTY_NM = end_tx. COUNTERPARTY_NM AND

start_tx. COUNTERPARTY_NUMBER = end_tx. COUNTERPARTY_NUMBER AND

start_tx.fx_deal_type = end_tx.fx_deal_type AND

start_tx. BASE_CCY = end_tx. BASE_CCY AND

start_tx. SECONDARY_CCY = end_tx. SECONDARY_CCY AND

start_tx. ORIENTATION_BUYSELL! = end_tx. ORIENTATION_BUYSELL

AND

(start_tx.base_ccy_amt = end_tx.base_ccy_amt

OR

start_tx.secondary_ccy_amt = end_tx.secondary_ccy_amt)

AND start_tx.fx_tran_id = 1855303

) B

(A.START_FX_TRAN_ID = B.START_FX_TRAN_ID AND A.END_FX_TRAN_ID = B.END_FX_TRAN_ID)

LEFT OUTER JOIN

(SELECT

start_tx.fx_tran_id START_FX_TRAN_ID

end_tx.fx_tran_id end_fx_tran_id

start_tx.entered_dt_ts

USER

start_tx.trade_dt

start_tx.deal_number

start_tx.fx_deal_type

start_tx.orientation_buysell

start_tx.base_ccy

start_tx.base_ccy_amt

start_tx.secondary_ccy

start_tx.secondary_ccy_amt

start_tx. MATURITY_DT

start_tx. TRADE_RT

start_tx. FORWARD_PTS

start_tx. CORPORATE_PIPS

start_tx. DEAL_OWNER_INITIALS

start_tx. CORPORATE_DEALER

start_tx. PROFIT_CENTER_CD

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

start_tx.counterparty_nm

start_tx.counterparty_number

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

NULL

Of

(SELECT * FROM fx_transactions WHERE gmt_conv_entered_dt_ts > = TO_DATE('20-Nov-2013 4:00:23 AM','DD-Mon-YYYY HH:MI:SS AM')) start_tx

, (SELECT * FROM fx_transactions WHERE the gmt_conv_entered_dt_ts < = TO_DATE('20-Nov-2013 4:59:59 PM','DD-Mon-YYYY HH:MI:SS AM')) end_tx

WHERE

NVL (start_tx.corporate_dealer, 'nullX') = NVL (end_tx.corporate_dealer, 'nullX') AND

start_tx. COUNTERPARTY_NM = end_tx. COUNTERPARTY_NM AND

start_tx. COUNTERPARTY_NUMBER = end_tx. COUNTERPARTY_NUMBER AND

start_tx.fx_deal_type = end_tx.fx_deal_type AND

start_tx. BASE_CCY = end_tx. BASE_CCY AND

start_tx. SECONDARY_CCY = end_tx. SECONDARY_CCY AND

start_tx. ORIENTATION_BUYSELL! = end_tx. ORIENTATION_BUYSELL

AND

(

end_tx.base_ccy_amt BETWEEN (start_tx.base_ccy_amt - (start_tx.base_ccy_amt *: perc_dev/100)) AND (start_tx.base_ccy_amt + (start_tx.base_ccy_amt *: perc_dev/100))

OR

end_tx.secondary_ccy_amt BETWEEN (start_tx.secondary_ccy_amt - (start_tx.secondary_ccy_amt*:perc_dev/100)) AND (start_tx.secondary_ccy_amt + (start_tx.secondary_ccy_amt *: perc_dev / 100))))

)

AND start_tx.fx_tran_id = 1855303

) C

(A.START_FX_TRAN_ID = C.START_FX_TRAN_ID AND A.END_FX_TRAN_ID = C.END_FX_TRAN_ID)

GROUP BY

A.entered_dt_ts

USER

A.trade_dt

A.deal_number

A.fx_deal_type

A.orientation_buysell

A.base_ccy

A.base_ccy_amt

A.secondary_ccy

A.secondary_ccy_amt

A.MATURITY_DT

A.TRADE_RT

A.FORWARD_PTS

A.CORPORATE_PIPS

A.DEAL_OWNER_INITIALS

A.CORPORATE_DEALER

A.PROFIT_CENTER_CD

A.counterparty_nm

A.counterparty_number


Sanjeev, thank you for your valuable time.

It works now but a.user did not work well, I gave an alias name for the user in a view online and then used alias name group and select clause.

Tags: Database

Similar Questions

  • Dear experts. Help me please with this request.

    I'm generating a report in dev6i.
    the following query does not work correctly. and also fetch data with (+) outer join.

    Select i.itemcode, sum (gs.approved) - sum (iss.issuedqty)
    ims_itemcode i, ims_issues iss, ims_grns gs
    where i.itemcode = gs.itemcode and gs.itemcode = iss.itemcode (+) of the i.itemcode group.


    but I have to join two tables over (ims_issuem, ims_grnm)
    After the addition of these two tables, the query will be

    Select i.itemcode, sum (gs.approved) - sum (iss.issuedqty)
    ims_itemcode i, ims_issues iss, gs ims_grns, im ims_issuem, gm ims_grnm
    where i.itemcode = gs.itemcode and gs.itemcode = iss.itemcode (+) and gm.grnmserial = gs.grnsserial and
    Group im.issuemserial = Iss.issuesserial by i.itemcode;

    now the query works, but isn't going to pick up the results with outer (+) join. It takes only the results that correspond to the tables, but I want the results as well as the outer (+) join.
    What is the problem in the second request help please.

    You must add more join.

    Try this...

    select i.itemcode,sum(gs.approved)-sum(iss.issuedqty)
    from ims_itemcode i,ims_issues iss, ims_grns gs, ims_issuem im, ims_grnm gm
    where i.itemcode=gs.itemcode (+)
    and gs.itemcode=iss.itemcode(+)
    and gm.grnmserial(+)=gs.grnsserial
     and im.issuemserial(+)=iss.issuesserial
    group by i.itemcode;
    

    If not work, try something. After your first request. Add a table and check if need to add outer join.

    Hope this helps

    Hamid

  • Please help me with this SQL query

    I'm practicing of SQL queries and met one involving the extraction of data from 3 different tables.

    The three paintings are as below

    < pre >
    Country
    Location_id country
    LOC1 Spain
    loc2 England
    LOC3 Spain
    loc4 USA
    loc5 Italy
    loc6 USA
    loc7 USA
    < / pre >
    < pre >


    User
    user_id location_id
    loc1 U1
    loc1 U2
    loc2 U3
    loc2 U4
    loc1 U5
    U6 loc3
    < / pre >
    < pre >


    Publish
    user_id post_id
    P1 u1
    P2 u1
    U2 P3
    P4 u3
    P5 u1
    P6 u2
    < / pre >

    I am trying to write a SQL query - for each country of the users, showing the average number of positions

    I understand the logic behind all this that we must first consolidate all locations, and then the users in one country and then find the way to their positions.
    But, I'm having a difficulty to this format SQL. Could someone help me please with this request.

    Thank you.

    Select
    Country.Country,
    Count (*) Totalpostspercountry,
    Count (distinct post.user_id) Totaldistincuserspercountry,
    count (*) / count (distinct post.user_id) Avgpostsperuserbycountry
    Of
    countries, have, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    Country.country group

    The output is like this for your sample data - hope that's what you're looking for :)

    COUNTRY, TOTALPOSTSPERCOUNTRY, TOTALDISTINCUSERSPERCOUNTRY, AVGPOSTSPERUSERBYCOUNTRY
    In England, 1, 1, 1.
    Spain, 5, 2, 2.5.

  • I get an Error Message When you try to send emails. "some errors occurred while processing the requested tasks. Please see the list of errors below for more details". __

    I get an Error Message When you try to send emails. "some errors occurred while processing the requested tasks. Please see the list of errors below for more details".

    But it sends the message anyway... multiple copies, and she also is put in the "Outbox" in Outlook Express as if it is not sent.

    To stop the email to be sent repeatedly to the recipient, I erase it from the "Outbox" but a) you don't know if they really got it) b it is embarrassing for the receiver c) is this a bug I can fix it?

    Thanks for any help.

    You have a corruption of dbx file easily corrected.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • help me out with a query with an output that has own text.

    help me out with a query with an output that has own text.

    For example select name from tbl_name

    Ben "is my name"-> should be the output

    Hello

    3cc59f7b-B8C1-4EFA-8385-e0d8720a689c wrote:

    help me out with a query with an output that has own text.

    For example select name from tbl_name

    Ben "is my name"---> should be the output

    Sorry, it is not clear what you want.

    If the table contains only "Ben", then you can get the output above using a query like this:

    SELECT name. '' my name is' ' AS name_plus

    FROM tbl_name;

    I hope that answers your question.

    If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Its took me 3 days to buy Presenter, finally I got it after work again now, I talked to 3 people online support, no one can help her looks like a joke at this stage can someone help me please its asking me for the serial numbers but I buy p

    Its me took 3 days to the presenter bought, I finally got it

    After that there's now work I talked to 3 people online support person can help

    It sounds like a joke at this stage

    Can someone help me please

    His request than me for the serial numbers, but I buy per month

    Hello

    This could be due to a host file incorrectly configured as hosts of operating system files map the hostnames to IP addresses. A misconfigured hosts file can affect the ability of your computer to connect to the Adobe activation servers.

    Follow these steps to see if there is a problem with your hosts file and if necessary

    Please follow the steps below:

    1. Click Start > run, type % systemroot % \system32\drivers\etcand press enter.
    2. Right-click on the hosts file, and then select Open. Select the application Notepad open the hosts file.
    3. Save the hosts file: choose file > record under, save the file as hosts.backup, and then click OK.
    4. Look for the hosts file for entries that refer to adobe (for example, 127.0.0.1 activate.adobe.com, or 127.0.0.1 lm.licensing.adobe.com) and delete these entries.
    5. Save and close the file.
    6. Restart your computer and try to turn it on again.

    Kind regards

    Sharad

  • Help me please close my subscription

    Help me please close my subscription

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • Need help to write the SQL query

    Hello
    Please help me to write a query. My requirement is as below.

    Hello
    I have a table say XYZ in the following format.

    product_id local min_order_quntity
    ========================================
    1 en 10
    1 ch 10
    2 en 20
    2 ch 20
    3 en 30
    3 ch 30
    4 en 40
    4 NC 10

    Now I want to find the product_id where min_order_quantity is different for cn and locale

    now I want the result of the following

    product_id local min_order_quantity
    =============================================
    4          en          40
    4 ch 10

    This is different for local in and cn for product_id 4 min_order_quantity

    min_order_quantity should be the same for both the locale(en,ch) for any product_id.

    I want to find the product_id where min_order_quantity is different for ch and fr local

    Thank you..

    Hello

    This query should do the job

    select * from xyz t1
    where exists ( select 1 from xyz t2 where t2.product_id = t1.product_id and
                   t2.locale != t1.locale and t2.min_order_quantity != t1.min_order_quantity );
    

    See you soon

  • Help of the complex select query (Group by)

    Hello
    I am in need of your help to create a unique select query for the data in the table below and whose output requies. I use oracle 10g on RHEL 5 version.

    create table bustour (number of bussno (4), start_date date, number (2)) passenger;
    ALTER session set nls_date_format = "dd-mm-yyyy";
    insert into bustour values (4123, April 10, 2009 ", 20);
    insert into bustour values (4123, may 10, 2009 ", 25);
    insert into bustour values (4123, may 10, 2009 ', 18);
    insert into bustour values (4123, June 10, 2009 ', 15);

    insert into bustour values (6138, March 10, 2009 ', 16);
    insert into bustour values (' 6138, March 10, 2009 ", 19);
    insert into bustour values (6138, April 10, 2009 ', 22);
    insert into bustour values (' 6138, April 10, 2009 ", 13);

    insert into bustour values ("4123, July 10, 2009 ', 23);
    insert into bustour values (4123, August 10, 2009 ", 27);
    insert into bustour values (4123, November 10, 2009 ', 15);

    insert into bustour values (6138, may 10, 2009 ', 16);
    insert into bustour values (6138, may 10, 2009 ', 13);
    insert into bustour values (6138, may 10, 2009 ', 18);
    insert into bustour values (' 6138, may 10, 2009 ", 24);
    insert into bustour values (6138, July 10, 2009 ", 20);
    insert into bustour values (6138, August 10, 2009 ", 18);
    SQL> select * from bustour;
    
        BUSSNO START_DATE PASSENGERS
    ---------- ---------- ----------
          4123 04-10-2009         20
          4123 05-10-2009         25
          4123 05-10-2009         18
          4123 06-10-2009         15
          6138 03-10-2009         16
          6138 03-10-2009         19
          6138 04-10-2009         22
          6138 04-10-2009         13
          4123 07-10-2009         23
          4123 08-10-2009         27
          4123 11-10-2009         15
    
        BUSSNO START_DATE PASSENGERS
    ---------- ---------- ----------
          6138 05-10-2009         16
          6138 05-10-2009         13
          6138 05-10-2009         18
          6138 05-10-2009         24
          6138 07-10-2009         20
          6138 08-10-2009         18
    
    17 rows selected.
    
    I want query output as below :
    
    Bussno  start_date      end_Date   totalpassengers   maxpessenger  maxpassdate
    4123    04-10-09        06-10-09          78              25         05-10-09
    6138    03-10-09        04-10-09          70              22         04-10-09 
    4123    07-10-09        11-10-09          65              27         08-10-09
    6138    05-10-09        08-10-09         109              24         05-10-09
    So that we can know on what particular travel calendar, we have obtained maximum passengers and the date. (For calculating % of bonus driver)

    Please help me to write the query.

    Best regards
    Nisha

    OK, something like this:

    with my_tab as (select 1 id, 4123 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 20 passengers from dual union all
                    select 2 id, 4123 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 25 passengers from dual union all
                    select 3 id, 4123 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual union all
                    select 4 id, 4123 busno, to_date('06/10/2009', 'dd/mm/yyyy') start_date, 15 passengers from dual union all
                    select 5 id, 6138 busno, to_date('03/10/2009', 'dd/mm/yyyy') start_date, 16 passengers from dual union all
                    select 6 id, 6138 busno, to_date('03/10/2009', 'dd/mm/yyyy') start_date, 19 passengers from dual union all
                    select 7 id, 6138 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 22 passengers from dual union all
                    select 8 id, 6138 busno, to_date('04/10/2009', 'dd/mm/yyyy') start_date, 13 passengers from dual union all
                    select 9 id, 4123 busno, to_date('07/10/2009', 'dd/mm/yyyy') start_date, 23 passengers from dual union all
                    select 10 id, 4123 busno, to_date('08/10/2009', 'dd/mm/yyyy') start_date, 27 passengers from dual union all
                    select 11 id, 4123 busno, to_date('11/10/2009', 'dd/mm/yyyy') start_date, 15 passengers from dual union all
                    select 12 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 16 passengers from dual union all
                    select 13 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 13 passengers from dual union all
                    select 14 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual union all
                    select 15 id, 6138 busno, to_date('05/10/2009', 'dd/mm/yyyy') start_date, 24 passengers from dual union all
                    select 16 id, 6138 busno, to_date('07/10/2009', 'dd/mm/yyyy') start_date, 20 passengers from dual union all
                    select 17 id, 6138 busno, to_date('08/10/2009', 'dd/mm/yyyy') start_date, 18 passengers from dual)
    -- end of mimicking your data; use SQL below:
    select busno,
           min(start_date) start_date,
           max(start_date) end_date,
           sum(passengers) total_passengers,
           max(passengers) max_passengers,
           max_pass_date
    from   (select id,
                   start_date,
                   busno,
                   passengers,
                   distance,
                   max(start_date) keep (dense_rank first order by passengers desc) over (partition by distance, busno) max_pass_date
            from   (select id,
                           start_date,
                           busno,
                           passengers,
                           -- using tabibitosan method, borrowed from Aketi Jyuuzou
                           dense_rank() over (order by id) -
                              row_number() over (partition by busno order by id) distance
                    from   my_tab))
    group by busno, distance, max_pass_date
    order by min(id)
    
         BUSNO START_DATE END_DATE   TOTAL_PASSENGERS MAX_PASSENGERS MAX_PASS_DATE
    ---------- ---------- ---------- ---------------- -------------- -------------
          4123 04/10/2009 06/10/2009               78             25 05/10/2009
          6138 03/10/2009 04/10/2009               70             22 04/10/2009
          4123 07/10/2009 11/10/2009               65             27 08/10/2009
          6138 05/10/2009 08/10/2009              109             24 05/10/2009   
    
  • A toolbar to work is now not checked in Firefox and I can't use it. Can you help me please?

    I used Nectar as my homepage and a toolbar added for many years. I always that it is simple and easy to use (a big plus for aging technophone!) and it is especially useful for letting me know what stores I could shop with through Nectar to increase my Nectar points. Points were also earned to complete the 'research', another useful feature.

    In the past months, I have struggled with this up to the point where I contacted the persistent Nectar. They have kindly added 'free' points to my account to compensate for the fact that I had been unable to use the toolbar or to the shop via the Nectar. They suggested uninstalling and reinstalling the improved version of their toolbar. I tried to do several times, but have failed to be able to access online stores through Nectar and also to add to my total points using the Nectar search tool.

    After trying again, in vain, to reload the toolbar, I now have to find a message from Firefox saying "Nectar Toolbar could not be verified for use in Firefox. Proceed with caution.

    Can you please check this product so that I can continue its use? I don't know how else more to come this problem and would like to make things as simple as they were until this issue has been raised.

    I hope someone can help - but please keep in mind of my state of technophobia and explain things in a way very simple for me (IE without using jargon 'computer' and technical writing!).

    Thank you and hoping that you can help.

    Firefox 40 verification is only a warning message, the new 'signature' feature add-on will keep an extension to work in Firefox 40.

    If this Nectar toolbar simply stop working in Firefox 40, I can only imagine that this is due to a deprecated API that uses the extension or another issued compatibility. Add-on developers who are registered with the official website of modules was warned about this, API removed from Firefox 9 to 12 months to give developers time to fix their add-on before Mozilla removed the corresponding code for this API.

    Bottom line is the Nectar needs to fix their extension to get it working again, AND they need to submit it to Mozilla Add - ons for the signature.

    In 41 Firefox Add - ons that are not "signed" will be disabled, but the user can substitute for it. In Firefox 42 that replace the missing aura of the Beta and Release versions - signature is required for Firefox 42 and subsequently.

  • I have my 5 factory reset iPhone, now I can't set up my iPhone because it must be enabled, and I don't have a sim card. Can someone help me please?

    I have my 5 factory reset iPhone, now I can't set up my iPhone because it must be enabled, and I don't have a sim card to make. Is there a way I can install and use my iPhone without needing to be activated? Can someone help me please?

    To skip the activation of sim card, you can use iTunes if you have a CDMA iPhone. However, if you have a GSM model you will need to insert a sim card to activate your iPhone (it can even be used/inactive). Here is an article that will help you determine if your iPhone is GSM or CDMA: http://osxdaily.com/2012/11/15/determine-iphone-gsm-or-cdma/

  • the sidebar is twice as wide as necessary and I can only do broader, not narrowed down to about 30-35 mm. helps refine please

    the sidebar is twice as wide as necessary and I can only do broader, not narrowed down to about 30-35 mm. helps refine please

    Try Firefox SafeMode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the Firefox 4, 5, 6, 7 SafeMode pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox SafeMode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • I need to uninstall the iTunes 12.2.0.145 in Windows 7-32 bit, but I don't have the installation of this version files. Can someone help me, please?

    I need to uninstall the iTunes 12.2.0.145 in Windows 7-32 bit, but I don't have the installation of this version files. Can someone help me, please?

    The problem lies in a PC with Windows 7 32 bit

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    TT2

  • I downloaded 4 FF and now 5 and nor with my screen looks nothing like it says on the page of FF. For example, I don't have the orange FF tab in the upper left corner, I have no "PIN as app" option, nor do I view. Can someone help me please?

    I downloaded 4 FF and now 5 and nor with my screen looks nothing like it says on the page of FF. For example, I don't have the orange FF tab in the upper left corner, I have no "PIN as app" option, nor do I view. Can someone help me please?

    To get the orange FF tab, go to view > toolbars > menu bar. This should uncheck the menu bar giving you the orange button.

    Panorama is a box made of 4 gray rectangles which should be on the far right, if not once you activate the orange FF tab, right click anywhere on a toolbar that doesn't has nothing to this topic, and you should get a menu with a list of your toolbars that you can check and uncheck the box. Come on down to personalize everything down and it will open a window with all your buttons. Find groups of panorama/tab button and drag it to the toolbar of your choice.

    to pin a tab as an app, right-click on it; It is an option in the context menu.

  • Hello someone can help me please? I received a call from the CTIC Tech and they gave me Anti Malver software. I would like to ask you about it?

    Hello

    can someone help me please? I received a call from the CTIC Tech and they offered me an Anti Malver software which I paid 179 euros. I would like to ask you about it?

    These phone calls, e-mails or popup messages will ALWAYS be a scam.

    You have been scammed.

    Based on your other posts, you aapear have called these criminals. You allow to access your computer?

    Note: Please stop rather create several threads with the same question, answer in one of the many other threads.

Maybe you are looking for

  • Mac pro can works without hhd?

    I took out the hard drive. Now my mac without hhd and my mac do not. Is no lights, nothing! Help, please!

  • CD/DVD is not working properly on the Satellite A200-1AI

    I have a Satellite A200-1AI but it can't find the CD/DVD. The operating system is Vista Home premium. The control panel highlights the problem that"Windows cannot start this hardware device because its information of configuration (in the registry) i

  • wmpkc32.exe and 0xC00D1199 error code when I start Windows Media Player

    Original title: wmpkc32.exe I run Windows XP.and my PC shows 0xC00D1199 and wmpkc.exe at different times or places. Are these interdependent? This happens when I want to launch Windows Media Player.

  • Windows HP 8.1

    my laptop is new so I was addin some videos in it and she brought me a notification saying 14 minutes remaining shutdown. BT, I continued to use it so closed it to the low during the night and fell asleep bt in the morning, I used en some dry and he

  • Try to install Windows Vista Service Pack 1 and receive the error 800736CC

    -What should I do about this - I have Vista Home Premium - does make a difference I need to install MS Office Home & Student - I get a reply I need SP 1 for Vista - but trying to install SP1 (KB936330) - I get error 800736CC - suggestions.