Columns in the SQL get repeated.

Hi,
Given below is the select portion of the SQL generated by OBIEE.
Can anybody tell me, why the columns in bold getting repeated. I have used them only once in the report.
(We are using OBIEE 10.1.3.4.1)
select distinct D1.c7 as c1,
D1.c8 as c2,
D1.c9 as c3,
D1.c6 as c4,
D1.c5 as c5,
D1.c4 / nullif( 1000000, 0) as c6,
D1.c3 / nullif( 1000000, 0) as c7,
D1.c2 / nullif( 1000000, 0) as c8,
D1.c1 / nullif( 1000000, 0) as c9,
D1.c6 as c10,
D1.c5 as c11,
D1.c4 / nullif( 1000000, 0) as c12,
D1.c3 / nullif( 1000000, 0) as c13,
D1.c2 / nullif( 1000000, 0) as c14,
D1.c1 / nullif( 1000000, 0) as c15,
D1.c6 as c16,
D1.c5 as c17,
D1.c4 / nullif( 1000000, 0) as c18,
D1.c3 / nullif( 1000000, 0) as c19,
D1.c2 / nullif( 1000000, 0) as c20,
D1.c1 / nullif( 1000000, 0) as c21,
D1.c6 as c22,
D1.c5 as c23,
D1.c4 / nullif( 1000000, 0) as c24,
D1.c3 / nullif( 1000000, 0) as c25,
D1.c2 / nullif( 1000000, 0) as c26,
D1.c1 / nullif( 1000000, 0) as c27,
D1.c6 as c28,
D1.c5 as c29,
D1.c4 / nullif( 1000000, 0) as c30,
D1.c3 / nullif( 1000000, 0) as c31,
D1.c2 / nullif( 1000000, 0) as c32,
D1.c1 / nullif( 1000000, 0) as c33
from

Hi GRK,
Thanks for the reply.
Following are the columns being used on the report.
D1.c8 as c2,
D1.c9 as c3,
D1.c6 as c4,
D1.c5 as c5,
D1.c4 / nullif( 1000000, 0) as c6,
D1.c3 / nullif( 1000000, 0) as c7,
D1.c2 / nullif( 1000000, 0) as c8,
D1.c1 / nullif( 1000000, 0) as c9,
This is a physical query which is same even after restarting the OBIEE services.

Similar Messages

  • Cannot get Universe column in the sql server ?

    Hi,
    I able to get some of columns using below query , but I cannot get some of the columns from universe to SQL Server.
    If I try through SSIS also the columns are missing which are unable to get using openquery.
    If I add "Microsoft ODBC Data Source (ODBC)" for Universe U2 also then some of the columns are missing .
    For Example : Unable to get "Description" Column.
    How can I check what is the problem  ? Please help me on this..
    select * FROM OPENQUERY(ulive, 'select Description
    FROM TABLENAME WHERE Z_ID=''020324.doc''')
    Msg 7321, Level 16, State 2, Line 1
    An error occurred while preparing the query for execution against OLE DB provider "MSDASQL" for linked server "ulive".
    Thank you..

    What is Universe U2  server? Is it SQL Server or Oracle or perhaps MySQL?
    select Description FROM ULIVE.DBNAME.DBO.TABLENAME WHERE Z_ID='020324.doc'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Chart not getting columns from the SQL Query with InlineTransform(xsl)

    Hi All,
    I am using MII 12.0 . I tried to use the mii standard xsl for converting rows into columns by  Inline Transform in a SQL Query.
    while executing the Query it is giving me the correct output but i tried to load the same Query in a IChart there it is not showing me the available columns that i can able to see in simple executiion and chart is also not plotting it keeps on loading.
    Thanks in Advance.

    Hi LinoVaz,
    Some things to try for testing purposes -
    1. Don't do any Data Mapping of the query columns
    2. If a SQL Query, you may need to change the Server Scaling to use Global AutoScale.
    I found that when I mapped the inline-transformed query into a bar chart display template, and hit the Refresh button, only the first column name show in the Column Names area.  If I mapped it, I got only that column.  If I didn't map any columns, I got them all.
    Let me know if you find similar results.  I think this is likely a bug, so you may consider using a Business Logic Transaction and an XacuteQuery to accomplish the same result.
    Kind Regards,
    Diana Hoppe
    Edited by: Diana Hoppe on Mar 25, 2011 11:46 AM

  • Import flv - why the video get repeated on live?

    Captivate 5.5
    am using import flv option to insert flvs, flv size vary from 11 MB to 20 MB. the delivery method is progressive download.
    i have uploaded SWF and Flvs on Amazon, slide content is playing well but am facing A/V repeating problem in flvs, unfortunately its happening on strong bandwidth also - 2mbps, at any random time it occurs.
    my client facing same problem and am really not able to locate it.
    PLEASE HELP.... its urgent...

    Hi
    In Project window. Click on a video-clip and down left in this You see a coggwheel looking symbol.
    Click on this and bottom of the unfolding menu select - Adjust Crop Ken-Burns
    Now in viewer window click on top left most option (adjust) so that the full picture is shown.
    Yours Bengt W

  • How do I turn off Skype highlighting, so it doesn't automatically do it when I put a phone number on our website through Plone? The code gets repeated so it says "Skype highlighting" all across the page, and it's a pain to have to delete them all.

    See question above. Our website hosts think it's something to do with Firefox since it doesn't happen for them. When I go into a web page to update information, if it has a phone number, after I make an update, the words "Skype highlighting" extend all across the page. It's frustrating.

    Do you have the Skype extension for Firefox installed?
    That probably opens happens for users who have the Skype extension installed.
    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Question about setting column width in SQL*Plus using info retrieved w SQL

    Good morning,
    Is there a way to tell SQL*Plus to set the width of a column to the greatest width of the elements found in the column ? (as opposed to the default which is the width declared in the DDL)
    In other words, I'd like to do something functionally equivalent to this:
    COL <columname> format a[select max(length(<columnname>)) from <thetablethatcontainscolumname>]
    I'm doing the above manually in two steps
    1. select max(length(columnname)) from .....
    2. col columnname format a[resultofstep1]
    Is there a way of doing it in one step ?
    Thank you for your help,
    John.

    Hi Munky,
    >
    you should consider whther you are using the correct tool for the job, SQLplus isn't exactly ideal for doing presentation layer stuff
    >
    I'm not really doing presentation stuff, I asked because it would be very convenient for everyday stuff. I commonly query the tables that I am going to deal withm just to have a look at the column names and a few values, something like:
    select * from EMP where rownum <= 10; -- just to have a look at the table and some values
    when the table contains a wide column then the display gets all messed up. It would be nice to have an option or a mechanism to tell SQL*Plus to automatically use the width of the widest value, instead of having to determine the value and then manually set the column.
    thank you for your help, it's good to know that I didn't miss some trivial setting in the documentation that would do it ;)
    John.

  • Error loading data into Essbase from the SQL Server

    Hello experts!
    I've got another urgent and confusing issue. I am loading data from an SQL Server view into Essbase (which is reversed with multiple data columns) using ODI 11.1.1.5 and I get the following error at +"3-Loading -SrcSet0-Load Data"+ step:
    ODI-1227: Task SrcSet0 (Loading) fails on the source MICROSOFT_SQL_SERVER connection.
    +Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'View'+
    where "View" is the name of the dimension (non-data) column in the SQL view.
    Please help me with any hints! Thank you so much!

    John, thank you so much!
    Your answer is exactly correct!
    "View" is an object name in SQL Server so this word cannot be used as a column name in SQL Server tables. Once the name of the colunm changed from "View" to another, the interface runs without errors!

  • How can i reorder the columns in the do not display section of the interactive report.

    Hi,
    My interactive report contains 185 columns, and the user requieres to build his customized reports with some columns, but the he gets lost between this amount of columns, this would be easier if the columns in the do not display section of the interactive report would be sorted automaticaly, Is this possible?
    Thanks a lot,

    Hi Eva,
    One solution would be to order the column names alphabetically. You can create a JavaScript dynamic action to handle the sorting.
    The shuttle of the IR attribute "Select Columns" have the ID's "apexir_SHUTTLE_LEFT" or the Hidden colums and "apexir_SHUTTLE_RIGHT" for the displayed columns.
    The function you'd need to create would look like:
    var options = $('select#apexir_SHUTTLE_LEFT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    var options = $('select#apexir_SHUTTLE_RIGHT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    You'd need to find the propper timing for the dynamic action to run, I guess click of the button "Select Columns" would do the trick.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Excluding one or some columns in output of Get-process cmdlet doesn't work

    hello
    in PS 4.0 i need a command so that the output includes all columns except for, one or two columns ? 
    for example  get-process cmdlet shows seven columns. i need a cmdlet to show all columns except for handles & cpu columns.
    ( instead of running Get-process | select -object NPM,PM,WS,VM,CPU,ID )
    note: i tested the following command but it still shows handles & cpu columns in the output
    ( Get-process | select -excludeproperty  handles,cpu )
    thanks in advanced

    Bill should have also pointed out that you can change the "Types" files to adjust output permanently.  I am sure that this would save you much typing.
    PowerShell is very flexible. We can select properties with wild cards...
    get-process|select s*,c* -first 3|ft -auto
    You can adjust this as needed.
    ¯\_(ツ)_/¯
    hi jrv
    i didn't understand you first post at all:
     "have a better and more permanent solution.
    Print out put to very large wide E or F size plotter in landscape mode.... 
    Take scissors and cut out columns not needed.  Tape bits together.  NOw you have the results you like."
    but i undrestood your 2nd post, that nice. 
    thank you very much,
    i also found this workaround:
    Get-Process | Select-Object -Property * -ExcludeProperty cpu,handles | format-table -Autosize
    regards

  • SelectOneChoice values get repeated

    I have some dependant drop down lists. This works pretty much fine (after several workarounds for other problems), except that I get strange behaviour where the data in the LOV gets repeated sometimes. It's reproducible but not by following any particular sequence of events that I can see.
    Say I had a SelectOneChoice with:
    1. Oracle
    2. Microsoft
    3. Sun
    Then, if I play with it for a bit, just selecting different values all over the place, eventually the list will contain:
    1. Oracle
    2. Microsoft
    3. Sun
    1. Oracle
    2. Microsoft
    3. Sun
    And sometimes that will go on and on, repeated many times.
    Now, is this a glitch with ADF, or should I be refreshing the iterator, and where/when should I do that?
    many thanks
    ~R

    Frank,
    Haven't had a chance to do that, but I know how to reproduce it now. Please see post:
    Page Def - where is the data coming from?

  • Why do I get a class conflict between the Prepare SQL.vi and the Get Column Name.vi with the SQL Toolkit compatibility vis from the Database Connectivity Toolkit?

    I have done extensive programming with the SQL Toolkit with LabVIEW versions through 6.1. My customer now wants to upgrade to Windows 7, so I am trying to upgrade to LabVIEW 2009 (my latest purchased version) using the Database Connectivity Toolkit, and the SQL Toolkit Compatibility vis. Everything seemed to be going okay with the higher level SQL operations, but I ran into trouble with the Get Column Name.vi. 
    The pictures below show the problem. The original SQL Toolkit connected the Prepare SQL.vi with the Get Column Name.vi with a cluster of two references, one for connection, and one for sql. The new compatibility vis have a class conflict in the wire because the Prepare SQL.vi contains a cluster with connection, and command references, but the Get Column Name.vi expects a cluster with connection and recordset references. 
    How do I resolve this conflict?
    Thank You.
    Dan

    I've never worked with the old version of the toolkit, so I don't know how it did things, but looking inside the SQL prep VI, it only generates a command, and the the column name VI wants a recordset. I'm not super familiar with all the internals of ADO, but my understanding is that is standard - you only have the columns after you execute the command and get the recordset back. What you can apparently do here is insert the Execute Prepared SQL VI in the middle and that will return what you need.
    I'm not sure why it worked before. Maybe the execute was hidden inside the prep VI or maybe you can get the column names out of the command object before execution. In general, I would recommend considering switching to the newer VIs.
    Try to take over the world!

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • SQL Query - The number of columns specified in "SQL Query" does not match t

    I am creating new UDM for tablespace alert, below is my query,however its failing with error
    SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
    I selected Metric type is number
    SQL Query Format : Two columns
    Query:
    SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
    used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    Any clues why i am getting error.

    SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
    2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    TABLESPACE_NAME USED_PCT
    MGMT_TABLESPACE .82
    SYSAUX 1.52
    UNDOTBS1 .32
    RMAN .02
    CORRUPT_TS 10.63
    USERS 0
    SYSTEM 2.26
    MGMT_ECM_DEPOT_TS .04
    MGMT_AD4J_TS 0

  • How to get the SQL queries based on SQL_ID.

    Hi Experts,
    I want to get the SQL queries based on SQL_ID.
    I have tried the following query,but I am not getting full query.
    [code]SET linesize 132 pagesize 999
    column sql_fulltext format a60 word_wrap
    break on sql_text skip 1
    SELECT   REPLACE (TRANSLATE (sql_text, '0123456789', '999999999'), '9', ''),sql_id
    FROM   dba_hist_sqltext s
    WHERE   s.sql_id = '7tvurftg8zryb';[/code]
    One of my friend said use grid to get full query text.
    Can you please help me how to use grid ,else any other method to get the full query based on SQL_ID.
    Please help me.
    Thanks in advance.

    You have these many options to set, if sql_text is really huge. But better use a tool(TOAD) as it's really helpful and easy to use instead! (See my previous comment).
    column sql_text format A10000
    set echo off
    set head off
    set feed off
    set verify off
    set termout off
    set lines 10000
    set long 1000000
    set trimspool on
    set pages 0
    Thanks!

  • How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"

    How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
    I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
    Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
    I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
    use msdb
    SELECT [JobName] = JOB.name,
    [Step] = HIST.step_id,
    [StepName] = HIST.step_name,
    [Message] = HIST.message,
    [Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
    WHEN HIST.run_status = 1 THEN 'Succeeded'
    WHEN HIST.run_status = 2 THEN 'Retry'
    WHEN HIST.run_status = 3 THEN 'Canceled'
    END,
    [RunDate] = HIST.run_date,
    [RunTime] = HIST.run_time,
    [Duration] = HIST.run_duration,
    [Retries] = HIST.retries_attempted
    FROM sysjobs JOB
    INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
    -- CHANGE THIS
    -- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
    ORDER BY HIST.run_date, HIST.run_time

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

Maybe you are looking for

  • Prblm in create_text or save_text

    Hi Folks, Iam uploading long text using  a call transaction program. case1:  selection screen                  version : N0                   fiscal year : 2007 in coding tried both FM (save_text or create_text). result if check the tcode 'kp06' the

  • Non-Domain joined clients connect to server initially but cannot connect via Launchpad

    Running SBS 2011 Essentials in a small office. Running XP/Vista/7 clients. All working fine until we swapped routers. Old router died, new router was installed.  Now all domain-joined PC's connect as normal, but all NON-Domain-Joined PC's cannot acce

  • Problems with L8

    Hi All, I have L8 autoloader with 8 tape media- 8th is a cleaning tape. In the first try I have set up jukebox and was able to backup the server where I have Sun Storedge Enterprise BackUp Software 7.2 is installed and another XP client. But I notice

  • Import template for the intrastat in 2007a

    Is there an import template for the intrastat in 2007 for items and B.Ps - have seen the intrastat wizard option - but is there not a DTW option?

  • J2EE stack 01

    Hi, I am installing EP60 NetWeaver 04 on a W2K platform and have run into a snag. The first step of installing the J2EE engine went ok and now I have a 630 J2EE engine running. The next step calls for upgrading the J2EE engine from SP3 to SP4 followi