HELP !  is it transpose, pivot, decode, case or connect by- haven't a clue!

I'm almost embarrassed about asking this but my sql skills just haven't kept up since 8i !!
I know i could write a procedure and put the data into a temp table , but i really should get with the program and learn some new functions !!
using select wo_num, g_start,g_end from batch
I have a row returned from a table like so
WO_NUM G_START G_END
1000000 100 105
Using a select statement I would like to turn it into
WO_NUM G
1000000 100
1000000 101
1000000 102
1000000 103
1000000 104
1000000 105

Hi,
You're asking about a counter table, that is, a result set (that you can use like a table) that has all possible values in a range: in this case, all the integers between g_start and g_end.
In Oracle 9 (and up) you can generate such a counter table using CONNECT BY.
The query below does what you want for all rows in table_x:
WITH     cntr     AS
     SELECT     LEVEL - 1     AS n
     FROM     dual
     CONNECT BY     LEVEL <= 1 + (
                                     SELECT  MAX (g_end - g_start)
                              FROM    table_x
SELECT    x.wo_num
,       g_start + c.n     AS g
FROM       table_x     x
JOIN       cntr          c     ON  x.g_end >= x.g_start + c.n
ORDER BY  x.wo_num
,            g;But you don't want to do this for every row in table_x: you want to do it for every row in the result set of your original query. (It doesn't matter if there's only one row or not.)
So add your original query as another sub-query, and use that instead of table_x:
WITH       original_results  AS
     SELECT     wo_num
     ,     g_start
     ,     g_end
     FROM     table_x
     WHERE     column_1     < column_2
,     cntr     AS
     SELECT     LEVEL - 1     AS n
     FROM     dual
     CONNECT BY     LEVEL <= 1 + (
                                     SELECT  MAX (g_end - g_start)
                              FROM    original_results
SELECT    x.wo_num
,       g_start + c.n     AS g
FROM       original_results     x
JOIN       cntr               c     ON  x.g_end >= x.g_start + c.n
ORDER BY  x.wo_num
,            g;The original query in this example is pretty simple, but you can use any query, involving joins and sub-queries.

Similar Messages

  • Help with Decode/Case

    Hello All,
    Can I use decode/case function within a decode function?
    {code}
    SELECT TO_CHAR (
              EDMS_STRAGG_WC (
                 DISTINCT DECODE (
                             eqs.attrib_code,
                             'PRODUCT_AUTHORIZATION',    'Authorization: '
                                                      || CASE eqs.qual_value
                                                            WHEN 'LIST'
                                                            THEN
                                                               (SELECT lookup_desc
                                                                  FROM edmsadm.edms_lookup
                                                                 WHERE     lookup_type =
                                                                              'PARTNER_AUTHORIZATION'
                                                                       AND lookup_code =
                                                                              eqls.list_value)
                                                            ELSE
                                                               (SELECT lookup_desc
                                                                  FROM edmsadm.edms_lookup
                                                                 WHERE     lookup_type =
                                                                              'PARTNER_AUTHORIZATION'
                                                                       AND lookup_code =
                                                                              eqs.qual_value)
                                                         END,
                             'PRODUCT_CERTIFICATION',    'Certification: '
                                                      || CASE eqs.qual_value
                                                            WHEN 'LIST'
                                                            THEN
                                                               eqls.list_value
                                                            ELSE
                                                               eqs.qual_value
                                                         END,
                             'PRODUCT_SPECIALIZATION',    'Specialization: '
                                                       || (SELECT lookup_desc
                                                             FROM edmsadm.edms_lookup
                                                            WHERE     lookup_type =
                                                                         'PARTNER_SPECIALIZATION'
                                                                  AND lookup_code =
                                                                         CASE eqs.qual_value
                                                                            WHEN 'LIST'
                                                                            THEN
                                                                               eqls.list_value
                                                                            ELSE
                                                                               eqs.qual_value
                                                                         END))))
              program_value
      FROM edms_qual_stg eqs, edms_qual_list_stg eqls
    WHERE     1 = 1
           AND eqs.qual_id = eqls.qual_id(+)
           AND eqs.req_id = 192647
           AND eqs.disc_line_id = 598631
           AND eqs.attrib_code IN
                  ('PRODUCT_CERTIFICATION',
                   'PRODUCT_AUTHORIZATION',
                   'PRODUCT_SPECIALIZATION');
    {code}
    Edms_qual_stg:
    AND_OR_CONDITION
    ATTRIBUTE_SOURCE
    ATTRIB_CODE
    CREATED_BY
    CREATED_DT
    DISC_LINE_ID
    END_DT
    EXCLUDE_INCLUDE
    GROUP_AND_OR_CONDITION
    GROUP_CODE
    MAX_VALUE
    MIN_VALUE
    MODIFIED_BY
    MODIFIED_DT
    QUAL_APPL_PRECEDENCE
    QUAL_ID
    QUAL_OPERATOR
    QUAL_TYPE
    QUAL_VALUE
    REQ_ID
    START_DT
    Edms_qual_list_stg:
    ATTRIBUTE_SOURCE
    ATTRIB_CODE
    CREATED_BY
    CREATED_DT
    END_DT
    INCLUDE_AFFILIATES
    INCLUDE_EXCLUDE
    LIST_VALUE
    MODIFIED_BY
    MODIFIED_DT
    PRIMARY_PARTY
    QUAL_ID
    QUAL_LIST_ID
    REFERENCE_ID
    START_DT
    Edms_lookup:
    CREATED_BY
    CREATED_DT
    DISPLAY_SEQ
    EDMS_LOOKUP_ID
    END_DATE
    LOOKUP_CODE
    LOOKUP_DESC
    LOOKUP_REFERENCE
    LOOKUP_TYPE
    MODIFIED_BY
    MODIFIED_DT
    START_DATE
    SELECT eqs.qual_id, eqs.disc_line_id, eqs.req_id, eqs.attrib_code, eqs.qual_value, eqls.list_value
      FROM edms_qual_stg eqs, edms_qual_list_stg eqls
    WHERE     1 = 1
           AND eqs.qual_id = eqls.qual_id(+)
           AND disc_line_id = 598631
           AND req_id = 192647
           AND eqs.attrib_code IN
                  ('PRODUCT_CERTIFICATION',
                   'PRODUCT_AUTHORIZATION',
                   'PRODUCT_SPECIALIZATION');
    7509575    598631    192647    PRODUCT_CERTIFICATION    LIST    GOLD
    7509575    598631    192647    PRODUCT_CERTIFICATION    LIST    SILVER
    7509576    598631    192647    PRODUCT_AUTHORIZATION    LIST    ATP - JOULEX PROVIDER ESCO
    7509576    598631    192647    PRODUCT_AUTHORIZATION    LIST    ATP - JOULEX PROVIDER IDENTIFY
    7509577    598631    192647    PRODUCT_SPECIALIZATION    LIST    ADVANCED SECURITY
    7509577    598631    192647    PRODUCT_SPECIALIZATION    LIST    EXPRESS FOUNDATION
    Required Output:
    Certification: GOLD, SILVER, Authorization: ATP - JOULEX PROVIDER ESCO, ATP - JOULEX PROVIDER IDENTIFY,  SPECIALIZATION: ADVANCED SECURITY, EXPRESS FOUNDATION.
    Thx
    Shank.

    Hi,
    Sure; a DECODE or CASE expression that returns a NUMBER can be used any place a NUMBER is expected, including within another DECODE or CASE expression.  A DECODE or CASE expression that returns a DATE can be used any place a DATE is expected, including within another DECODE or CASE expression.  A DECODE or CASE expression that returns a VARCHAR2 can be used almost any place a VARCHAR2 is expected.  (There a  couple of special situations where a string literal is absolutely required.)
    There are not many situations where you really need to do that, though.  It's usually simpler and more efficient to use a single CASE expression; nesting is rarely needed.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Simplify the problem as much as possible, so that it contains only enough to show the part you don't already know how to do.
    If you really need a user-defined function to show the problem, then include a CREATE FUNCTION statement, and explain what the function does.  Again, simplify: if the function isn't what you don't understand, post a problem that doesn't use the function.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Decode/Case in Where clause

    Hello,
    We are experiencing an issue with a Select statement that uses Decode in the Where clause. Specifically, it seems to be ignoring a nested Decode and just returning the default value. We have another nested decode that works fine, though.
    A member of our team mentioned that he believed there was an issue with using Decode and Case statements inside of a where clause within HTML DB...Is this correct? If it is, is there a workaround? Since the nested Decode works elsewhere in this statement, that doesn't seem right.
    My select statement looks like:
    SELECT
       SUBSTR(OBOB.OBOB_CNAME, 0, 30) d,
       OBOB.OBOB_UID r
    FROM
       ISR_OBOB_OBJECT OBOB,
       ISR_OBAF_OBJECT_AFFILIATION OBAF,
       ISR.ISR_OBSD_SDR OBSD
    WHERE
       OBOB.OBOB_UID = OBSD.OBOB_UID AND
       OBOB.OBOB_UID = OBAF.OBOB_B_UID AND
    /*If Personal radio button is selected, displays all SDRs associated with user.
      If All is selected, displays all SDRs associated with IS group selected from drop down list
          or every SDR.
       OBAF.OBOB_A_UID = DECODE(:P1_DISPLAY_ALL,
                                       'Personal', :F101_APP_USER_UID,
    /*This is the decode statement that it seems to ignore. If ALL is selected, the query should see if a group has
        has been selected from a drop down list that appears when the ALL button is chosen. If a group is selected
        (the item isn't 0), only SDRs for that group should be shown. Otherwise, all SDRs for every group should display.
                                       'ALL', DECODE(:P1_SEARCH_IS_SUPPORT_GROUP, 0, OBAF.OBOB_A_UID, :P1_SEARCH_IS_SUPPORT_GROUP),
                                       OBAF.OBOB_A_UID) AND
    /*If Personal radio button is selected, display SDRs where user is the Primary assignee.
       OBAF.OBAT_UID = DECODE(:P1_DISPLAY_ALL, 'Personal', (select OBAT_UID from ISR_OBAT_OBJ_AFFIL_TYPE WHERE OBAT_APP_REF = 'SDR_PRIMARY'), OBAF.OBAT_UID) AND
    /*If a SDR Status (open, completed, on hold, not started...) is selected, only display the SDRs with that status.
       OBSD.KTTR_STATUS_UID = DECODE(:P1_ISR_STATUS_UID, 0, OBSD.KTTR_STATUS_UID, :P1_ISR_STATUS_UID) AND
    /*If SDR_History textbox is Null, or Open, Not Started, or On Hold SDR status has been selected, then all SDRs with
        a create date between today and 99999 months ago will display. Otherwise, only SDRs with a create date between
        today and however many months are in the textbox will display (i.e. Completed SDRs created in the past 6 months.)
       MONTHS_BETWEEN(sysdate, OBSD.OBSD_CREATE_DATE) <= DECODE(:P1_SDR_HISTORY, NULL, 99999, DECODE(:P1_ISR_STATUS_UID,
                                                              (select KTTR_UID from ISR_KTTR_TRANSLATION where KTTR_APP_REF = 'SD_STAT_OPEN'), 99999,
                                                              (select KTTR_UID from ISR_KTTR_TRANSLATION where KTTR_APP_REF = 'SD_STAT_NOT_STA'), 99999,
                                                              (select KTTR_UID from ISR_KTTR_TRANSLATION where KTTR_APP_REF = 'SD_STAT_HOLD'), 99999,
                                                              :P1_SDR_HISTORY))
    /*Alphabetical order
    Order by
       dWe originally wrote this as a PL/SQL statement that returned a query string since most of the where clause is dependent on items the user may or may not select, but we have moved the query into a multiselect list, which only seems to allow SQL Queries.
    Any help or advice would be appreciated.
    Thanks,
    Scott

    Scott: Did you try running that SQL statement in SQL Workshop in Apex? You can run it as it is, it will popup a window asking you to enter values for the bind variables.
    JAC73: I don't think an IN clause doesn't work that way, you need a actual SQL sub-query, not an expression from a DECODE/CASE statement. Search this site for str2tbl and see Tom's excellent discussion at
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:110612348061

  • Help with oracle 11g pivot operator

    i need some help with oracle 11g pivot operator. is it possible to use multiple columns in the FOR clause and then compare it against multiple set of values.
    here is the sql to create some sample data
    create table pivot_data ( country_code number , dept number, job varchar2(20), sal number );
    insert into pivot_data values (1,30 , 'SALESMAN', 5000);
    insert into pivot_data values (1,301, 'SALESMAN', 5500);
    insert into pivot_data values (1,30 , 'MANAGER', 10000);     
    insert into pivot_data values (1,301, 'MANAGER', 10500);
    insert into pivot_data values (1,30 , 'CLERK', 4000);
    insert into pivot_data values (1,302, 'CLERK',4500);
    insert into pivot_data values (2,30 , 'SALESMAN', 6000);
    insert into pivot_data values (2,301, 'SALESMAN', 6500);
    insert into pivot_data values (2,30 , 'MANAGER', 11000);     
    insert into pivot_data values (2,301, 'MANAGER', 11500);
    insert into pivot_data values (2,30 , 'CLERK', 3000);
    insert into pivot_data values (2,302, 'CLERK',3500);
    using case when I can write something like this and get the output i want
    select country_code
    ,avg(case when (( dept = 30 and job = 'SALESMAN' ) or ( dept = 301 and job = 'SALESMAN' ) ) then sal end ) as d30_sls
    ,avg(case when (( dept = 30 and job = 'MANAGER' ) or ( dept = 301 and job = 'MANAGER' ) ) then sal end ) as d30_mgr
    ,avg(case when (( dept = 30 and job = 'CLERK' ) or ( dept = 302 and job = 'CLERK' ) ) then sal end ) as d30_clrk
    from pivot_data group by country_code;
    output
    country_code          D30_SLS               D30_MGR               D30_CLRK
    1      5250      10250      4250
    2      6250      11250      3250
    what I tried with pivot is like this I get what I want if I have only one ( dept,job) for one alias name. I want to call (30 , 'SALESMAN') or (301 , 'SALESMAN') AS d30_sls. any help how can I do this
    SELECT *
    FROM pivot_data
    PIVOT (SUM(sal) AS sum
    FOR (dept,job) IN ( (30 , 'SALESMAN') AS d30_sls,
              (30 , 'MANAGER') AS d30_mgr,               
    (30 , 'CLERK') AS d30_clk
    this is a simple example .... my real life scenario is compliated with more fields and more combinations .... So something like using substr(dept,1,2) won't work in my real case .
    any suggestions get the result similar to what i get in the case when example is really appreciated.

    Hi,
    Sorry, I don't think there's any way to get exactly what you requested. The values you give in the PIVOT ... IN clause are exact values, not alternatives.
    You could do something like this to map all alternatives to a common value:
    WITH     got_dept_grp     AS
         SELECT     country_code, job, sal
         ,     CASE
                  WHEN  job IN ('SALESMAN', 'MANAGER') AND dept = 301 THEN 30
                  WHEN  job IN ('CLERK')               AND dept = 302 THEN 30
                                                                     ELSE dept
              END     AS dept_grp
         FROM     pivot_data
    SELECT     *
    FROM     got_dept_grp
    PIVOT     (     AVG (sal)
         FOR     (job, dept_grp)
         IN     ( ('SALESMAN', 30)
              , ('MANAGER' , 30)
              , ('CLERK'   , 30)
    ;In your sample data (and perhaps in your real data), it's about as easy to explicitly define the pivoted groups individually, like this:
    WITH     got_pivot_key     AS
         SELECT     country_code, sal
         ,     CASE
                  WHEN  job = 'SALESMAN' AND dept IN (30, 301) THEN 'd30_sls'
                  WHEN  job = 'MANAGER'  AND dept IN (30, 301) THEN 'd30_mgr'
                  WHEN  job = 'CLERK'    AND dept IN (30, 302) THEN 'd30_clrk'
              END     AS pivot_key
         FROM    pivot_data
    SELECT     *
    FROM     got_pivot_key
    PIVOT     (     AVG (sal)
         FOR     pivot_key
         IN     ( 'd30_sls'
              , 'd30_mgr'
              , 'd30_clrk'
    ;Thanks for posting the CREATE TABLE and INSERT statements; that really helps!

  • What is the difference betwee decode & case function

    Hi
    What is the difference betwee decode & case function
    1.decode can't used in pl/sql 1) case can be user
    2.in decode we can't use (>,<,>=) 2) we can use
    any other do u have....
    thanks in advance....

    DECODE works with expressions which are scalar values.
    CASE can work with predicates and subqueries in searchable form.
    There is one more Important difference between CASE and DECODE
    DECODE can be used Only inside SQL statement....
    But CASE can be used any where even as a parameter of a function/procedure
    Eg:-
    SQL> create or replace procedure pro_01(n number) is
      2  begin
      3  dbms_output.put_line(' The number  = '||n);
      4  End;
      5  /
    Procedure created.
    SQL> set serverout on
    SQL> var a varchar2(5);
    SQL> Begin
      2  :a := 'ONE';
      3  End;
      4  /
    PL/SQL procedure successfully completed.
    SQL> Begin
      2   pro_01(Decode(:a,'ONE',1,0));
      3  End;
      4  /
    pro_01(Decode(:a,'ONE',1,0));
    ERROR at line 2:
    ORA-06550: line 2, column 9:
    PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
    statement only
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    SQL> Begin
      2    pro_01(case :a when 'ONE' then 1 else 0 end);
      3  End;
      4  /
    The number  = 1
    PL/SQL procedure successfully completed.Message was edited by:
    Avi
    Message was edited by:
    Avi

  • Using DECODE, CASE

    Hi All,
    The Transformation Guide of OWB mentions that DECODE, CASE can be used. But I am unable to find either of these functions in the Expression Builder. Can you please tell me wher should I search for these functions, or if you could tell me if there is any other way of implementing IF THEN ELSE logic.
    -Arnab

    Hello Arnab,
    Just type your CASE ... END expression directly in the expr. builder window.
    Always press the Validate button for syntax verification when you have changed your expression.
    Regards, Hans Henrik

  • Which is Faster among DECODE & CASE Statment.

    Can you please explain me the reason behind the fastest among DECODE & CASE statement?

    user13483989 wrote:
    Decode is have better performance.Because it is Oracle Inbuilt Function.So no neet to Specify Paraameters,It already contain Parameter.
    So Performance is good With decode.Please prove it with evidence, rather than just making supposed factual statements.
    From my tests, there's no clear difference one way or the other...
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    v_dummy      number;
      3    v_timestamp  timestamp;
      4    v_timestamp2 timestamp;
      5  begin
      6    v_timestamp := CURRENT_TIMESTAMP;
      7    dbms_output.put_line(v_timestamp);
      8    -- Test DECODE
      9    select count(*)
    10    into   v_dummy
    11    from   (select rownum rn from dual connect by rownum <= 1000000)
    12    where  decode(mod(rn,19),0,1,0) = 1;
    13    v_timestamp2 := CURRENT_TIMESTAMP;
    14    dbms_output.put_line(v_timestamp2);
    15    dbms_output.put_line('Decode Time Taken: '||(v_timestamp2 - v_timestamp) DAY TO SECOND);
    16    v_timestamp := CURRENT_TIMESTAMP;
    17    dbms_output.put_line(v_timestamp);
    18    -- Test CASE
    19    select count(*)
    20    into   v_dummy
    21    from   (select rownum rn from dual connect by rownum <= 1000000)
    22    where  case when mod(rn,19) = 0 then 1 else 0 end = 1;
    23    v_timestamp2 := CURRENT_TIMESTAMP;
    24    dbms_output.put_line(v_timestamp2);
    25    dbms_output.put_line('Case Time Taken:   '||(v_timestamp2 - v_timestamp) DAY TO SECOND);
    26* end;
    SQL> /
    18-JAN-11 12.01.58.856000
    18-JAN-11 12.02.00.653000
    Decode Time Taken: +000000000 00:00:01.797000000
    18-JAN-11 12.02.00.653000
    18-JAN-11 12.02.02.309000
    Case Time Taken:   +000000000 00:00:01.656000000
    PL/SQL procedure successfully completed.
    SQL> /
    18-JAN-11 12.02.03.668000
    18-JAN-11 12.02.05.403000
    Decode Time Taken: +000000000 00:00:01.735000000
    18-JAN-11 12.02.05.403000
    18-JAN-11 12.02.07.152000
    Case Time Taken:   +000000000 00:00:01.749000000
    PL/SQL procedure successfully completed.
    SQL> /
    18-JAN-11 12.02.07.871000
    18-JAN-11 12.02.09.777000
    Decode Time Taken: +000000000 00:00:01.906000000
    18-JAN-11 12.02.09.777000
    18-JAN-11 12.02.11.684000
    Case Time Taken:   +000000000 00:00:01.907000000
    PL/SQL procedure successfully completed.
    SQL> /
    18-JAN-11 12.02.15.324000
    18-JAN-11 12.02.17.090000
    Decode Time Taken: +000000000 00:00:01.766000000
    18-JAN-11 12.02.17.090000
    18-JAN-11 12.02.18.855000
    Case Time Taken:   +000000000 00:00:01.765000000
    PL/SQL procedure successfully completed.
    SQL>

  • Why do I see: iTunes Help is unavailable because your computer isn't connected to the Internet.  IE9 works fine but iTunes does not connect to the store.

    I have tried 4 days to get iTunes 10.4 working on my Win7 x64 machine.  I purchased a new iPhone4 and after syncing it the first time, I can't connect to the iTunes store.
    When I try to run iTunes Help, I get this message "iTunes Help is unavailable because your computer isn’t connected to the Internet."  However IE9 and Google Chrome run as always...... no connection problems.
    I have already uninstalled IE9 x64 and iTunes 10.4 x64 and reinstalled but still the same.  I followed all the instructions I could find about firewalls, ports, SSL etc.
    Diagnostice gives me this information:
    Secure link to iTunes Store failed -----
    Microsoft Windows 7 x64 Ultimate Edition Service Pack 1 (Build 7601)
    DELL Inc. Studio XPS 435T
    iTunes 10.4.1.10
    QuickTime 7.7
    FairPlay 1.12.20
    Apple Application Support 2.0.1
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.4.1.2
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.2 (333.2)
    Gracenote SDK 1.9.1.485
    Gracenote MusicID 1.9.1.102
    Gracenote Submit 1.9.1.133
    Gracenote DSP 1.9.1.43
    iTunes Serial Number 00CCABA00E06CFD0
    Current user is an administrator.
    The current local date and time is 2011-09-08 09:53:57.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    ATI Technologies Inc., ATI Radeon HD 4800 Series
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 226dfd82342c16c01da33b35a257182c
    iPodService 10.4.1.10 (x64) is currently running.
    iTunesHelper 10.4.1.10 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name: {DA96EEE0-050D-4F34-86AF-08A8499F6D4A}
    Description: TAP-Win32 Adapter V9
    IP Address: 0.0.0.0
    Subnet Mask: 0.0.0.0
    Default Gateway: 0.0.0.0
    DHCP Enabled: Yes
    DHCP Server:
    Lease Obtained: Thu Jan 01 08:00:00 1970
    Lease Expires: Thu Jan 01 08:00:00 1970
    DNS Servers:
    Adapter Name: {B28305D7-F1F3-471E-8E55-AA9DC8E1058D}
    Description: Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
    IP Address: 10.0.1.8
    Subnet Mask: 255.255.255.0
    Default Gateway: 10.0.1.1
    DHCP Enabled: Yes
    DHCP Server: 10.0.1.1
    Lease Obtained: Thu Sep 08 07:46:11 2011
    Lease Expires: Fri Sep 09 07:46:11 2011
    DNS Servers: 10.0.1.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-09-08 09:24:52.
     This means everything was successful except connecting to the firmware update server.. why can't I connect to iTunes store??????

    Only fixed this in the last day or two . . .with this!
    https://discussions.apple.com/thread/3588501?start=0&tstart=0

  • How can I use my Apple TV at a friends house ?? Is it not just a case of connecting to wifi then log on with my apple ID ?!

    How can I use my Apple TV at a friends house ?? Is it not just a case of connecting to wifi then log on with my apple ID ?!

    Thanks, I'll try it again. Was coming up on the screen saying something about cant work until the clock / time is configured or something ???

  • If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!

    All my Windows operating Systems are set to use the UI Culture: German
    With Update-Help or Save-Help you can download PowerShell help in different (any) language by use of the –UICulture parameter.
    Update-Help –UICulture en-US
    Because my Windows OS is set to use the German UI Culture and the Cmdlet Get-Help depends on it, I cannot access PowerShell help in a different Language (English) with Get-Help.
    There is still no translated German PowerShell help and even if I have installed the en-US verbose Help files I cannot use it (easily)!
    I made a suggestion on Microsoft Connect to add the –UICulture Parameter to the Get-Help Cmdlet, to make it possible to call Help in a different language then the Windows Ui Culture.
    As a workaround until then you can use the  .NET Class [System.Threading.Thread]::CurrentThread.CurrentUICulture to set the UI Culture and get Help in a different language.
    Function Get-HelpUICulture {
    param (
    [String]$HelpSearchString,
    [String]$UICulture
    # remember the UICulture
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    trap
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # set thread to given UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $UICulture
    # call powershell help in given language
    Get-Help $HelpSearchString -Full
    # reset UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # Example: call PowerShell en-US help in verbose English:
    Get-HelpUICulture -HelpSearchString Get-Command -UICulture ‘en-US’
    If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!
    https://connect.microsoft.com/PowerShell/feedback/details/767899/please-add-uiculture-to-get-help
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

    Hello JosKW
    Thank you for your suggestions!
    In my 3 Part Blog Series about the new 3.0 PowerShell,  I offer a full blown Proxy Function for the Get-Help cmdlet to solve this better.
    For now I have the first two Articles Published at my Blog, the Third Part will follow soon:
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help Basics
    http://www.admin-source.de/BlogDeu/497/powershell-3-0-updateable-help-update-help-save-help-und-get-help-grundlagen
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help using
    http://www.admin-source.de/BlogDeu/523/powershell-3-0-updateable-help-update-help-save-help-und-get-help-anwenden
    The Articles are written in German. I think you as a Dutchman can read this.
    Or you can use the Translate Button on my Page, to use Google Translate Service to read this in the Language of your choice. ;-))
    Cheers Peter
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

  • HELP I have a wireless Linksys router WRT54G connected th...

    HELP I have a wireless Linksys router WRT54G connected through my cable company broadband modem on a Mac. I have another computer to which I installed wireless capability because it didn't come with it. This required attching some piece of equipment to the back of the PC which enabled it to get on the internet without another cable modem. My question is this. If I get an iphone or a laptop(with built in wireless ability) will I automatically be able to go on the web because of the router on the Mac.

    yes certainly... if you get any wireless device in network that would certainly connects to a wireless n/w of router...

  • Hi! Haven't a clue so can anyone help me! My computer crashed recently and when it was up and running I reinstalled itunes. By mistake I think I gave my ipod a different name. How do I rectify this?

    Hi! Haven't a clue and need help! My computer recently crashed, when it was up and running I reinstalled itunes. I must have given my ipod classic another name how do I delete this name and restate the original name?
    Thanks

    Click on the name on the left in iTunes until it highlights, then you'll be free to name it whatever you like.

  • TS1398 help!!!  i am unable to connect to a wifi network and ive tried everything but nothing seems to work!!! can someone help pls

    help!!!  i am unable to connect to a wifi network and ive tried everything but nothing seems to work!!! can someone help pls

    try connecting to another wifi network to isolate the issue. at this point it's impossible to tell if it's your phone or your network

  • Please Help me in Labview and MS Access Database Connective

    Please Help me in LabVIEW and MS Access Database Connective through an example . I am new to LabVIEW .I need simple example that take a data from a table and display it on front panel .
    thanks in advance .

    duplicate post

  • TS2634 Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...

    Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...how can I do it?

    Place the iPod in Recovery mode and then restore.

Maybe you are looking for

  • Returning phone question?!

    About three weeks ago I got the blackberry classic. After ten days of using the device I decided it wasn't for me and returned it within the 14 day return period and went ahead and got the Note Edge after paying the $35 restocking fee. I'm not comple

  • How to restore photos with all albums and metadata to later version of iPhoto?

    Hi everyone I recently had a hard drive crash on my "vintage" 2006 intel iMac. Got the HD replaced but the support service I used was unable to retrieve any of my data off it. Luckily I had all files backed up in a cloud service. The support service

  • Struts-faces nightly build, RI Beta

    Hi, I'm using struts-faces and am trying (desperately) to upgrade to the Beta RI of JSF. I got last night's build but I'm getting this error: 2004-01-13 17:19:35 Exception sending context initialized event to listener inst ance of class com.sun.faces

  • Not getting openinig balance in excel format

    hi,           sir we r not getting  column of opening balance of dutin excel sheet.               helpful answer will be awarded.

  • Drive setup

    Ok, what I want to do, is add 2 WD 120g SATA drives to my system.  I need to transfer the entire contents of my current drive over to one of these, unless we can set it up to keep the 200g drive as IDE as well.  As of now, I can't even get the comput