Need assistance in SQL query (10 years since I did SQL)

Hi Guys,
I've been trying to remove some SQL rust. I haven't done SQL in a while.
Here are the tables (%=int, $ = varcchar)
RESULT
% RESULT_ID----$ RC--------------% YEAR_ID----% PERIOD_ID--% CONTRACT_NO----%Value
20841---------------1439---------------83---------------37---------------010427102---------------1
20842---------------1439---------------83---------------41---------------010427102---------------2
20843---------------1439---------------84---------------37---------------010427102---------------3
20844---------------1439---------------84---------------41---------------010427102---------------4
20845---------------1439---------------83---------------34---------------010427102---------------5
YEARS
YEAR_ID-------YEAR_DESC
83---------------2010 - 2011
84---------------2011 - 2012
PERIOD
PERIOD_ID-----PERIOD_DESC
34---------------14          
37---------------02
41---------------03
What I want is to get the last period of each year in table RESULT. (I'll work the rest of the WHERE Statement myself, because I omitted a lot of info/columns for simplicity reasons)
Note that I cannot rely on the Period ID, because chronological order is not respected.
In the above scenario I should GET
% RESULT_ID----$ RC--------% YEAR_ID-------% PERIOD_ID------% CONTRACT_NO-----%Value
20844---------------1439---------------84---------------41---------------010427102---------------4
20845---------------1439---------------83---------------34---------------010427102---------------5
I have the following but it only returns values if The year Has the last Period !
SELECT DISTINCT RESULT.RESULT_ID, RESULT.RC, RESULT.PERIOD_ID, RESULT.YEAR_ID, RESULT.CONTRACT_NO, YEARS.YEAR_DESC
FROM RESULT, YEARS
WHERE RESULT.YEAR_ID = YEARS.YEAR_ID AND -- This is my problem I want last period for each year.
RESULT.PERIOD_ID = (SELECT PERIOD_ID FROM PERIOD WHERE CAST(PERIOD_DESC AS INT) = (Select MAX(CAST(PERIOD_DESC AS INT)) from period)) ---I think this works fine i'm able to get last period
ORDER BY YEARS.YEAR_DESC;
Edited by: 935079 on May 17, 2012 11:32 AM
formatting add space not tabs
Edited by: 935079 on May 17, 2012 11:35 AM

Hi,
935079 wrote:
When I state "latest" it means the GREATEST PERIOD_DESC For each YEAR_ID.I see. In that case, you need to join the result and period tables in the sub-query.
I should have added that EACH CONTRACT_NO has to have a latest period for each year_id (In the above example I only one distinct contract_no)So you don't want one row of output for each distinct year_id; you want an output row for each distinct combination of contract_no and year_id. So where I originally used year_id (in the PARTITION BY clause) you'll want to both year_id and contract_no.
I think you want something like this:
WITH     got_r_num     AS
     SELECT  r.*          -- or list the columns you want
     ,     ROW_NUMBER () OVER ( PARTITION BY  r.year_id
                               ,                    r.contract_no
                               ORDER BY          p.period_id     DESC     NULLS LAST
                       ) AS r_num
     FROM    result  r
     JOIN     period     p  ON     r.period_id     = p.period_id
SELECT     *     -- or list all columns except r_num
FROM     got_r_num
WHERE     r_num     = 1
;>
There are a lot of things I don't understand in your query I will have to learn
"ROW_NUMBER ()"
"OVER"
"PARTITION BY"
"NULLS LAST"
I have no idea what these do. Thanks, Now I have some reading to do :-)ROW_NUMBER is an analytic function. You can find out more about it in the SQL language manual
http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions156.htm#sthref1471
Analytic functions were new in Oracle 8.1. That version was released more than 10 years ago, but you might not have had the most recent version of Oracle at that time, so it's quite reasonable that ROW_NUMBER is new to you.
Analytic functions are extremely useful, but, I admit, the syntax ("... OVER (analytic_clasue)") is frightening at first. When reading about ROW_NUMBER, make sure you also follow the link to "Analytic Functions"
http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions004.htm#i81407

Similar Messages

  • Need help with SQL Query

    I am trying to build a query that sums up 12 columns depending on some accounting variables.
    example:
    SELECT gbmcu, gbco, gbfy,'',SUM(gban01 gban02 gban03 gban04 gban05+gban06+gban07+gban08+gban09+gban10+gban11+gban12) AS Oil_Volumes
    FROM PRODDTA.F0902
    WHERE GBCO = '00099'
    AND GBFY = 5
    AND GBLT = 'QU' AND GBOBJ = 5015 AND GBSUB = '105'
    GROUP BY gbmcu, gbco, gbfy
    The condition that changes is :AND GBLT = 'QU' AND GBOBJ = 5015 AND GBSUB = '105'
    I need to do this for 17 different conditions - I need to make the query as optimized as possible.
    I tried using a case statement but that takes forever (the table is over 4 million records to scan through).
    Please let me know if anyone has any suggestions on how to create something to perform these calculations.
    thanks,
    Pam

    I think I would tend to write that query as:
    SELECT gbmcu, gbco, gbfy,
           SUM(CASE WHEN gblt = 'QA' AND gbobj = 5015 AND gbsub = '105' THEN
                    gban01+gban02+gban03+gban04+gban05+gban06+gban07+gban08+gban09+gban10+gban11+gban12 END) Oil_Sales
           SUM(CASE WHEN gblt = 'QU' AND gbobj = 5015 AND gbsub = '105' THEN
                    gban01+gban02+gban03+gban04+gban05+gban06+gban07+gban08+gban09+gban10+gban11+gban12 END) Oil_Volumes
    FROM proddta.f0902
    WHERE gbco = '00099' and
          gbfy = 5 and
          gblt IN ('QA', 'QU') and
          gbpbj = 5015 and
          gbsub = '105'
    GROUP BY gbmcu, gbco, gbfySUM the CASE rather than CASE SUM. Also, as written, your query will look at all of the records in f0902 whether or not they meet one of the Case criteria, so I would put the required values in the WHERE clause as well. Your samples only show gblt changing, so you may need to make the gbpbj and gbsub predicates IN lists as well.
    If the query runs in 1.5 hours calculating one value, I would expect it to be about the same calculating 17 values, since I would bet that most of the run time is accessing the table rather than doing the math. It would almost certainly be faster than running essentially the same query 17 times.
    Indexes on some or all of the columns in the WHERE clause may help, depending on how selective the columns are. At a guess, I would suggest that gbco and gbfy would be good candidates.
    Finally, are you sure that gbsub is a character field? The only example we have is a number.
    HTH
    John

  • Need help with SQL Query with Inline View + Group by

    Hello Gurus,
    I would really appreciate your time and effort regarding this query. I have the following data set.
    Reference_No---Check_Number---Check_Date--------Description-------------------------------Invoice_Number----------Invoice_Type---Paid_Amount-----Vendor_Number
    1234567----------11223-------------- 7/5/2008----------paid for cleaning----------------------44345563------------------I-----------------*20.00*-------------19
    1234567----------11223--------------7/5/2008-----------Adjustment for bad quality---------44345563------------------A-----------------10.00------------19
    7654321----------11223--------------7/5/2008-----------Adjustment from last billing cycle-----23543556-------------------A--------------------50.00--------------19
    4653456----------11223--------------7/5/2008-----------paid for cleaning------------------------35654765--------------------I---------------------30.00-------------19
    Please Ignore '----', added it for clarity
    I am trying to write a query to aggregate paid_amount based on Reference_No, Check_Number, Payment_Date, Invoice_Number, Invoice_Type, Vendor_Number and display description with Invoice_type 'I' when there are multiple records with the same Reference_No, Check_Number, Payment_Date, Invoice_Number, Invoice_Type, Vendor_Number. When there are no multiple records I want to display the respective Description.
    The query should return the following data set
    Reference_No---Check_Number---Check_Date--------Description-------------------------------Invoice_Number----------Invoice_Type---Paid_Amount-----Vendor_Number
    1234567----------11223-------------- 7/5/2008----------paid for cleaning----------------------44345563------------------I-----------------*10.00*------------19
    7654321----------11223--------------7/5/2008-----------Adjustment from last billing cycle-----23543556-------------------A--------------------50.00--------------19
    4653456----------11223--------------7/5/2008-----------paid for cleaning------------------------35654765-------------------I---------------------30.00--------------19
    The following is my query. I am kind of lost.
    select B.Description, A.sequence_id,A.check_date, A.check_number, A.invoice_number, A.amount, A.vendor_number
    from (
    select sequence_id,check_date, check_number, invoice_number, sum(paid_amount) amount, vendor_number
    from INVOICE
    group by sequence_id,check_date, check_number, invoice_number, vendor_number
    ) A, INVOICE B
    where A.sequence_id = B.sequence_id
    Thanks,
    Nick

    It looks like it is a duplicate thread - correct me if i'm wrong in this case ->
    Need help with SQL Query with Inline View + Group by
    Regards.
    Satyaki De.

  • Need Oracle Payroll SQL Query

    Hello,
    I need Oracle Payroll SQL Query with result:
    First_name, Last_name, Payment_amount, Pay_date, Payroll_Frequency, Employement_status
    Any Help would be greatful appreciated

    You will need the following tales.
    per_all_people_f, per_all_assignments_f,pay_run_results,pay_run_result_values
    Query would e something like :
    select papf.first_name,
             papf.last_name,
             prrv.*
    From  apps.per_all_people_f papf
             apps.per_all_assignments_f paaf
             apps.pay_run_results prr,
             apps.pay_run_result_values prrv
    Where papf.person_id = paaf.person_id
    and papf.business_group_id = paaf.business_group_id
    and papf.current_employee_flag = 'Y'
    and paaf.primary_flag ='Y'
    and paaf.assignment_type = 'E'
    and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date 
    and prr.assignment_id = paaf.assignment_id

  • Wanna use boot camp and have 19gb free. Assistant tells me I can't since I need to have at least 10gb free. Anyone knows what's happening? tks a lot!

    Wanna use boot camp and have 19gb free. Assistant tells me I can't since I need to have at least 10gb free. Anyone knows what's happening? tks a lot!

    You need to free up disk space before creating a Windows partition. To see how much free space there is on the startup disk, right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you have a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac Guides
    http://manuals.info.apple.com/en/boot_camp_install-setup.pdf
    Boot Camp 3.0, Mac OS X 10.6: Frequently asked questions

  • Need to construct SQL Query

    I have a table, say VEHICLE, which contains MODEL, CITY, SOLD NUMBERS.
    The table may be like this
    MODEL SOLD NUMBERS CITY
    Honda 1200 New York
    Toyota 900 New Jersy
    Honda 1700 California
    Ford 1500 Mexico
    Ford 1600 Delhi
    Toyota 800 Chennai
    Mercedes 1000 New York
    I need to build a query which will return me the model name and the number of items sold.
    The output of the query should be having the number of Honda sold and number of Ford sold, irrespective of the city.
    The rest of the models should be combined and their combined number of items sold should be displayed as single row.
    The output structure may be
    MODEL SOLD NUMBERS
    Honda 2900
    Ford 3100
    OTHERS 2700 (combined toyota and mercedes)
    Please help me out regarding this.

    Although you asked this question in a wrong forum , still I will answer this question
    as I belong to the Pl/SQL forum too.
    Try the following query :
    SELECT MODEL , SUM(SOLD NUMBERS) FROM
    (SELECT DECODE(MODEL,'Honda','Honda','Ford','Ford','OTHERS') MODEL,SOLD NUMBERS FROM VEHICLE) A
    GROUP BY MODEL--------------------------------------------
    Hope this helps.
    Thanks

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • Do we need run catbundle.sql file for new databases.

    dear all,
    i have doubt over execution of catbundle.sql or not?
    scenario:
    i have insatlled 10gr2 on rhel5 and applied patchset 4 (10.2.0.5) and applied Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update
    after this i have create fresh database.
    now,
    in Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update document it has specified in belwo section
    3.4 Post Installation Instructions for Databases Created or Upgraded after Installation of PSU 10.2.0.5.2 in the Oracle Home
    These instructions are for a database that is created or upgraded after the installation of PSU 10.2.0.5.2.
    You must execute the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" for any new database only if it was created by any of the following methods:
    Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    Using a script that was created by DBCA that creates a database from a sample database
    Cloning a database that was created by either of the two preceding methods, and if the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" were not executed after PSU 10.2.0.5.2 was applied
    Upgraded databases do not require any post-installation steps.
    so do we need to run catbundle here or not.
    since i have created fresh database after applying 10.2.0.5 PSU2 why does it required.
    opatch output:
    [oracle@RG615 ~]$ opatch lsinventory
    Invoking OPatch 10.2.0.5.1
    Oracle Interim Patch Installer version 10.2.0.5.1
    Copyright (c) 2010, Oracle Corporation. All rights reserved.
    Oracle Home : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1
    Central Inventory : /prd/crm/swbcrmdb/usr/oracle/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 10.2.0.5.1
    OUI version : 10.2.0.5.0
    OUI location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/oui
    Log file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-05-03_11-41-34AM.log
    Patch history file: /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-03_11-41-34AM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
    There are 2 products installed in this Oracle Home.
    Interim patches (1) :
    Patch 10248542 : applied on Tue May 03 07:32:29 BST 2011
    Unique Patch ID: 13292123
    Created on 25 Dec 2010, 23:11:24 hrs PST8PDT
    Bugs fixed:
    6402302, 9713537, 8350262, 9949948, 8394351, 10327179, 8546356, 9711859
    9714832, 9952230, 10248542, 8544696, 9963497, 9772888, 8664189, 10249537
    7519406, 9952270, 8277300, 9726739
    OPatch succeeded.

    Pl post the output of view DBA_REGISTRY_HISTORY - see MOS Doc 605795.1 (Introduction To Oracle Database catbundle.sql)
    Was the database created using DBCA or manually using scripts ?
    Srini

  • Need help with conditional query

    guys this is just an extension of this post that Frank was helping me with. im reposting because my requirements have changes slightly and im having a hell of a time trying to modify the query.
    here is the previous post.
    need help with query that can look data back please help.
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )data
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');
    I need to find the greatest grant year for the grant by a period parameter.
    once i find the greatest year i need to check the value of period 14 for that grant for the previous year and add it to the budget amount for that grant. however if their is an entry in the greatest year for period 00 then i need to ignore the period 14 of previous year and do this calculation current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    here is the query supplied by frank kulash who gracefully put this together for me.
    WITH     got_greatest_year     AS
         SELECT     fgl.*     -- or whatever columns are needed
         ,     MAX ( CASE
                     WHEN  fgl_period = :given_period
                     THEN  fgl_grnt_year
                    END
                  ) OVER ()     AS greatest_year
         FROM     fgl
    SELECT     SUM (fgl_budget)     AS total_budget     -- or SELECT *
    FROM     got_greatest_year
    WHERE     (     fgl_grnt_year     = greatest_year
         AND     fgl_period     = :given_period
    OR     (     fgl_grnt_year     = greatest_year - 1
         AND     fgl_period     = 14
    ;Miguel

    Hi, Miguel,
    Are you waying that, when the greatest year that has :given_period also has period='00' (or '0', or whatever you want to use), then you want to double the budget from the given_period (as well as subtract the budget from the '00', and not count the pevious year's '14')? If so, add another condition to the CASE statement which decides what you're SUMming:
    WITH     got_greatest_year     AS
         SELECT       TO_NUMBER (fgl_grnt_year)     AS grnt_year
         ,       fgl_period
         ,       TO_NUMBER (fgl_budget)     AS budget
         ,       MAX ( CASE
                       WHEN  fgl_period = :given_period
                       THEN  TO_NUMBER (fgl_grnt_year)
                      END
                    ) OVER ()     AS greatest_year
         FROM       fgl
    ,     got_cnt_00     AS
         SELECT     grnt_year
         ,     fgl_period
         ,     budget
         ,     greatest_year
         ,     COUNT ( CASE
                       WHEN  grnt_year     = greatest_year
                       AND       fgl_period     = '00'
                       THEN  1
                         END
                    ) OVER ()          AS cnt_00
         FROM    got_greatest_year
    SELECT       SUM ( CASE
                        WHEN  grnt_year     = greatest_year                    -- New
                  AND       fgl_period     = :given_period                    -- New
                  AND       cnt_00     > 0            THEN  budget * 2     -- New
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = :given_period       THEN  budget
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = '00'            THEN -budget
                        WHEN  grnt_year     = greatest_year - 1
                  AND       fgl_period     = '14'     
                  AND       cnt_00     = 0            THEN  budget
                    END
               )          AS total_budget
    FROM       got_cnt_00
    ;You'll notice this is the same as the previous query I posted, except for 3 lines maked "New".

  • I need to file a compliant to Corporate since the store is no help!

    First of all I want to say that I am HIGHLY disappointed and upset with the service I received from your Fair Oaks, VA Store. I been going to this location for years and I haven't ever had an issue until I purchased a new phone with your mobile department.
    11/12/14 I went in because my device broke, I wasn't sure weather to buy a new one or send my broken one in. I ended up buying a new LG G3 from Sprint. I am doing to Easy Pay through them so we are talking about $500+ on a phone. I liked the phone very much.
    12/01/14 in the morning the phone just completely died on me. The phone wouldn't charge, I tired taking the battery out and leave it out later I put it back in. I would hold the power button to see if it would turn on but nothing happened. Completely crashed on me. The phone was charged so I knew it wasn't a dead battery.
    12/02/14 I went in to the location and I was helped by a gentlemen at the mobile department. While he was writing on some boxes and trying to help me at the same time (because that shows full, undivided attention to the customer) I had explained my situation to him and asked him if I can get a new device since the phone completely died. His response right of the back "There is nothing I can do because it's out of the 15 days return policy." He also advise I can check with Sprint but I didn't buy the phone with them which I didn't understand how that would help. Since the gentlemen already said there is nothing that can be done for me and I need to submit it to Geek Squad since I have insurance with them. So now I need to pay $500+ on a REFURBISHED phone when it was only few days out of the 15 day mark.
     12/04-05/14 I spoke with the department manager figuring maybe there is something she can do since she is the manager but that was a dead end conversation too. She told me there is nothing she can do and I need to submit it to Geek Squad and there should be no deductible. I also called LG directly and they advised to speak with Best Buy, once again, since I bought the phone there and Geek Squad can only provide refurbished phones. The department manager also loved saying very smart remarks to top everything off.
    I find it very ridiculous that there NOTHING that a big company as Best Buy, can't do anything for their customer since I was given a defective device from that location.
    12/08/14 I submitted a claim since I am not getting any help, I also called them and they told me that they only send out refurbished phones even though it was less then 30 days of my purchase. They also told me that I need to pay and ADDITIONAL $150.00 so I can get the replacement. But that is not what your department manager said, she said I don't have to pay anything since its a manufature issue but I do. So now I have to pay $600+ on a refurbished phone.
    There is always something that can be done its just up to the person weather they want to do it or not. All I wanted was to get provided a new phone. I didn't want to exchange it or get my money back. I was with out a phone for several weeks because of this and I need my phone since its my point of contact. I will not be coming back to that location since the employees are very quick just to push their customers out the door and do not want to do anything to help. Seems that "There is nothing I can do." is a faster of a response then actually trying to do something for your customer. I worked in retail and there is nothing more frustrating and aggravating to get from an employee "There is nothing I can do." That is definitely not customer service. Neither of your employees took their time to help in anyway. I also tried emailing this to the stores contact listed on the website but one email bounced and the other I recevied no word. And sadly I still have the broken phone.

    Hi AReyes42,
    Given you had just purchased this phone 20 days before it became defective, I of course can understand you being upset by the described experience. I honestly wish the representatives you spoke to had been clearer in their advice to you.
    Our return or exchange period for contract based phones is 14 days from the date of purchase. After that timeframe has past any defects or damage would need to be addressed by any coverage on the phone. Your phone has two types of coverage. It has its manufacturer’s warranty and the Geek Squad Protection (GSP) plan.
    The manufacturer’s warranty should cover any defects within the first year of owning the phone; while your GSP would cover beyond that time, and any covered damage within the first year. Since you are claiming the unit is defective it should be covered by LG’s warranty, and you will need to work with them to get the phone repaired or replaced.
    We could request a refurbished replacement under your GSP, but per the terms of your GSP you would be charged a service fee, and for a smartphone the service fee is $150. Since LG should not be charging to repair or replace your phone, under their warranty, I once again highly recommend you work with them towards getting this resolved.
    I have filed a formal complaint on your behalf, and if you do have any questions for me please post back to this thread.
    Thanks for posting,
    Allan|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • Assistance with a query of the HRMS tables

    I need some assistance with a query I am trying to run. Here are the two tables I am trying to join:
    PER_ALL_POSITIONS
    PER_ALL_PEOPLE_F
    What I am trying to accomplish is to obtain the First_Name, Last Name from PERALL_PEOPLE_F table and then join that to the PER_ALL_POSITIONS table to obtain a unique listing of positions. However what I need assistance with is identifying how to join the two tables. I know the primary key on PER_ALL_PEOPLE_F is Person_ID but this value does not appear in PER_ALL_POSITIONS table. Any advice someone could give me would be greatly appreciated. :)

    you need to go from per_all_people_f to per_all_assignments_f, then to per_all_positions.

  • HT5312 im trying to make a purchase on itunes and its asking for my security question and i dont remember them its been years since i made this account how can i reset them

    im trying to make a purchase on itunes and its asking for my security question and i dont remember them its been years since i made this account how can i reset them

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (98991)

  • Need assistance with Windows 2008 R2 server BSOD - ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY (fc)

    Need assistance with Windows 2008 R2 server BSOD - ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY (fc)
    I have a Windows 2008 R2 server which is experiencing random BSOD during the night. This is occurring maybe once or twice a week. I have gathered two Memory crash files. This server is running Citrix XenApp 6.5 but nothing else is reporting an issue except
    for the memory dump. I’m looking for assistance in reading crash file and finding the cause.
    I’ve spent over a week going through articles trying to learn and trouble shoot the BSOD but no closer to understanding the WinDbg 6.3.9600 report.
    This is a production server and I have verified that Windows Updates has updated the server with latest releases. I’m hoping that the crash file will show something before I have to run the Driver Verifier.
    The crash zip file is located -
    https://onedrive.live.com/redir?resid=9644A4E0A26873B1!2359&authkey=!AMS4Svuk-SS3-JA&ithint=file%2czip
    *                        Bugcheck Analysis                                   
    ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY (fc)
    An attempt was made to execute non-executable memory.  The guilty driver
    is on the stack trace (and is typically the current instruction pointer).
    When possible, the guilty driver's name (Unicode string) is printed on
    the bugcheck screen and saved in KiBugCheckDriver.
    Arguments:
    Arg1: fffff880009eff38, Virtual address for the attempted execute.
    Arg2: 8000000002cfe963, PTE contents.
    Arg3: fffff8800da2eea0, (reserved)
    Arg4: 0000000000000002, (reserved)
    Debugging Details:
    DEFAULT_BUCKET_ID:  WIN7_DRIVER_FAULT
    BUGCHECK_STR:  0xFC
    PROCESS_NAME:  powershell.exe
    CURRENT_IRQL:  0
    ANALYSIS_VERSION: 6.3.9600.17237 (debuggers(dbg).140716-0327) amd64fre
    TRAP_FRAME:  fffff8800da2eea0 -- (.trap 0xfffff8800da2eea0)
    NOTE: The trap frame does not contain all registers.
    Some register values may be zeroed or incorrect.
    rax=fffffa80070f3648 rbx=0000000000000000 rcx=fffffa80070f3648
    rdx=fffff8800da2fbf8 rsi=0000000000000000 rdi=0000000000000000
    rip=fffff80001680b80 rsp=fffff8800da2f030 rbp=fffff8800da2fbd0
     r8=fffff8a01804c680  r9=fffff8800da2fc68 r10=fffffffffffffffd
    r11=fffff8800da2fa90 r12=0000000000000000 r13=0000000000000000
    r14=0000000000000000 r15=0000000000000000
    iopl=0         nv up di pl nz na pe nc
    nt!KiPageFault:
    fffff800`01680b80 55              push    rbp
    Resetting default scope
    STACK_COMMAND:  kb
    FOLLOWUP_IP:
    nt! ?? ::FNODOBFM::`string'+44dfc
    fffff800`017008b8 cc              int     3
    SYMBOL_STACK_INDEX:  1
    SYMBOL_NAME:  nt! ?? ::FNODOBFM::`string'+44dfc
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: nt
    IMAGE_NAME:  ntkrnlmp.exe
    DEBUG_FLR_IMAGE_TIMESTAMP:  531590fb
    IMAGE_VERSION:  6.1.7601.18409
    FAILURE_BUCKET_ID:  X64_0xFC_nt!_??_::FNODOBFM::_string_+44dfc
    BUCKET_ID:  X64_0xFC_nt!_??_::FNODOBFM::_string_+44dfc
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:x64_0xfc_nt!_??_::fnodobfm::_string_+44dfc
    FAILURE_ID_HASH:  {aa632d36-b0f7-67cf-89e2-1cec389c0a11}
    Followup: MachineOwner

    Hi Kaysel_GTG,
    Just addition. Regarding to Bug Check 0xFC, please refer to following article and check if can help you.
    Bug Check 0xFC: ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY
    By the way, since it is not effective for us to debug the crash dump file here in the forum. If this issues is a state of emergency for you. Please contact Microsoft Customer
    Service and Support (CSS) via telephone so that a dedicated Support Professional can assist with your request.
    To obtain the phone numbers for specific technology request, please refer to the web site listed below:
    http://support.microsoft.com/default.aspx?scid=fh;EN-US;OfferProPhone#faq607
    if any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Need assistance to update Photoshop cs6 and Lightroom to version 2014. Please help!

    Need assistance to update Photoshop cs6 and Lightroom  to version 2014.
    I have a Mac. I am not a member in Creative Cloud, invested big and bought CS6 and LR in the beginning of last year.
    Please help!

    These are not updates (just as CS6 was not an update to CS5), but upGRADES. They are available to CC (Creative Cloud) subscribers. While in the past you might have been able to pay for an upgrade (e.g. CS5 to CS6) you now have to subscribe. Once you are a subscriber you can upgrade to each new version as it comes along.
    As well as the full CC subscription there is a $10/mo plan with only Photoshop and Lightroom. Creative Cloud Photography plan | Adobe Creative Cloud

  • Need Supply and Demand Query

    Hi All,
    I need Supply and Demand Query in a single SQL. I have a requirement to put the Supply and Demand in a single reporting structure for a particular org/item/product line. I have the supply and Demand Queries seperately, but iam not able to join them to look like the below
    Item Prod_line Org Demand_Type Demand_qty Supply_type supply_qty
    when I try to do it by joining msc_supplies and msc_demands table, i am getting duplicates and junk data. can some one help me out in this?
    Thanks,
    Brightraj

    Edited by: user12086827 on Oct 20, 2009 6:04 AM

Maybe you are looking for