Can I filter based on new column created

Can I add a where clause based on the new column r_text.
I only need to output the records when count of the query in the select is 0. Thus do I need to add in the where clause eg where r_text <> ''. The problem is r_text is not a valid coulumn in the database.
select
distinct a.style_id, b.sty, b.season, a.cust, a.ad_d, b.code,
(case when b.code = 'MAKE' then
(select min(t.value) from sn.age r, sn.text t
where r.t_id = '18' and r.name = 'MTGNSL'
and r.t_id = t.t_id
and r.name = t.name and r.text_id = t.text_id
and r.id_1 = a.id
) end) r_text,
(case when b.code is null then 'Blank Code'end) err

1) I'm not seeing a FROM clause in your inner query
2) I'm pretty sure that you don't want the clause WHERE <> ''. Oracle treats '' as NULL and nothing is ever equal to or unequal to NULL.
SELECT *
  FROM (<<any query>>)
WHERE <<any column>> <> ''will never return a row. I'm guessing that you want to say
WHERE r_text IS NOT NULLJustin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • TS1702 why can I not access a new document created yesterday in "pages"?

    why can I not access a new document created yesterday in "pages"?

    Hi,
    Based on my understanding, your issue is you cannot create folder in Windows 7, right?
    Did you fix it?
    This issue might be caused by corrupted system file.
    If I am right and you haven't resolve your issue, we could try the following method:
    Run System File Checker Tool to repair your system file:
    Use the System File Checker tool to repair missing or corrupted system files
    http://support.microsoft.com/kb/929833/en-us
    In addition, please refer to this helpful thread:
    http://social.technet.microsoft.com/Forums/windows/en-US/97de8a2a-12f2-4381-a409-a78f4ae551cf/cannot-create-new-folder-in-windows-7?forum=w7itprogeneral
    Karen Hu
    TechNet Community Support

  • How can I filter based on the IPTC core information?

    How can I filter based on the IPTC core information? (CS6)

    "Substitution Variables" can do what you are asking for.

  • After inserting a DVD of numerous 8mm movies, what are the steps to move them into iDVD so titles can be added and a new DVD created?

    I have a DVD containing numerous 8mm movies and I would like to insert titles before each movie and then create a new DVD.  When I insert the DVD, it's icon appears on my desktop and I can play the movies on my monitor by double cliking the icon. When I bring up iDVD it indicates I should simply drag movies or pictures into iDVD, review them and then burn a new DVD.  When I attempt to drag the DVD icon into iDVD nothing happens.  I must be missing some steps. How can I make this happen?

    Try posating in the iDVD forum
    https://discussions.apple.com/community/ilife/idvd

  • In an Analyzer report how can I filter based on the last member of a dimension?

    Using Analyzer 6.2.1What I'm trying to do is to create a report that shows always the last month available on the cube.I'd rather like to avoid having to add UDA or Alias or whatever in my outline.Is there a way to retrieve the last member of a dimension directly in Analyzer?

    "Substitution Variables" can do what you are asking for.

  • How to create a Filter based on 2 or more columns

    Hi Folks,
    We have a requirement to filter based on 1 column, 2 columns and 3 columns values to an analysis with measures.
    So my question is whether we can acheive this in OBIEE, If so then what would be the best way to implement it.
    Thanks,
    Vj

    Hi Vj,
    This we can leverage using BINS,But i have never tried that.
    Check this
    http://www.onyxtraining.com/blog/bid/92181/Multiple-Conditions-and-Filtering-in-OBIEE
    Mark if helps.
    Thanks,

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Create new column in BI Admin Tool being HFM the OBIEE data source.

    Hi all,
    I am developing a BI project using OBIEE 11g 11.1.6.4 and HFM 11.1.2.1. HFM is the data source for OBIEE.
    Having the metadata imported in the physical and in the BMM layers, what I want to do is create a new column that will contain a float value. This float value depends on Account dimension, that is, if account name is 'XYZ', in a join of all dimensions, this new column´s value should be the same for all the other accounts in the same join.
    I have reached a point that the new column created shows the same number (value) as the logical column 'value' of the fact table, but I don´t know how or where specify which value (the one of the account name 'XYZ') should be for the rest of the new column (where account name is not equal to 'XYZ').
    I hope it is understandable, if something is not clear, please ask me.
    Thanks in advance.
    Best regards,
    Borja

    Hi,
    yeah when i put * in the set online filter i am able to see the users which i have created in weblogic. After all the users appear then i select Action-> close. Now again when i try to cross check it once again i again clicked on manage->indentity->now i dont see the users. what could be the issue?
    Thanks,
    RM

  • Add New Column to a ViewObject?

    I'm experimenting with 10.1.3. I've created a view object, and dropped a table on a jsp with it (using ADF faces). Now, I have added a column to the query in the view object, but it isn't automatically getting added to the attribute list.
    For example, the original query was:
    select last_name||', '||first_name Name from employees
    and it was changed to:
    select last_name||', '||first_name Name, email from employees
    The only way I can see to get the new column is to add it by using the 'New' button, and then manually setting the name and data type. It seems like it should be automatically picked up, or refreshed somehow, since I can't imagine queries being that stable over time as underlying tables and user needs change, and anytime you invoke a manual process you are A) introducing more opportunities for bugs and B) wasting time anyway.
    Am I missing something?

    Interesting behavior. When I go to the jsp that has the grid, I can just drag the new column into the grid. What I had been doing was adding it into the SQL tab on the view window, testing the query, and then expecting it to be available as an attribute right then and there, so I could change the hint, label, etc. and THEN go drop it on the page. I hadn't even looked to see if it were available at the page level since it wasn't there on the viewobject yet.
    My recommendation would be that the view object attributes be refreshed first, otherwise you've added another step to go through, but of course, I'm just lazy. :)

  • New user created in oracle 11g (release 2) is not connecting (ORA-01017)

    Hi All,
    Kindly help me out regarding this.
    I have created a new user using "ORACLE Enterprise Manager 11g" and used the same credentials in SQL developer for a new connection and it throw "ORA-01017: invalid username/password; logon denied" message.
    Kindly note that have followed the following steps in creating user:
    On the Users page, click Create.
    In the Name field, enter NICK.
    In the Profile list, accept the value DEFAULT.
    This setting assigns the default password policy to user Nick.
    In the Enter Password and Confirm Password fields, enter a password that is secure.
    Create a password that is secure. See Oracle Database Security Guide for more information.
    Do not select Expire password now. If the account status is set to expired, then the user or the database administrator must change the password before the user can log in to the database.
    (Optional) Next to the Default Tablespace field, click the flashlight icon, select the USERS tablespace, and then click Select.
    All schema objects that Nick creates will then be created in the USERS tablespace unless he specifies otherwise. If you leave the Default Tablespace field blank, Nick is assigned the default tablespace for the database, which is USERS in a newly installed database. For more information about the USERS tablespace, see "About Tablespaces".
    (Optional) Next to the Temporary Tablespace field, click the flashlight icon, select the TEMP tablespace, and then click Select.
    For the Status option, accept the default selection of Unlocked.
    You can later lock the user account to prevent users from logging in with it. To temporarily deny access to a user account, locking the user account is preferable to deleting it, because deleting it also deletes all schema objects owned by the user.
    Grant roles, system privileges, and object privileges to the user, as described in "Example: Granting Privileges and Roles to a User Account".
    Note: Do not click OK in Step 13 of "Example: Granting Privileges and Roles to a User Account". Instead, skip that step and continue with Step 12 in this procedure.
    Assign a 10 MB quota on the USERS tablespace, as described in "Example: Assigning a Tablespace Quota to a User Account".
    If you did not click OK while assigning the tablespace quota (previous step), click OK now to create the user.Kindly note that I have log in as SYSTEM user and created this new user.
    Could any one help me regarding this ?

    After connecting with sqlplus, as user SYSTEM and when tried the below, I could see that the new user created by me does not exist..
    select '--' || username || '--'
    from dba_users
    order by username;
    But when tried with GUI "ORACLE Enterprise Manager 11g" I can very well see the new user created by me..
    How is this possible mate??
    Is the user not properly created through GUI (than from where it is showing the new user)
    Some more information i want to share;
    i have used schema "HR"
    And have used table space "USERS"
    And tep tablespace "TEMP"
    Edited by: 828569 on Jan 16, 2011 9:01 PM
    Edited by: 828569 on Jan 16, 2011 9:03 PM

  • List of New reports created during a partcular period

    Dear All,
    Is there some way in form of tables in BW which can provide information about teh new reports created during a particular period of time- date of creation, user who created etc.
    Regards,
    Saurabh Diwakar

    HI......
    Regarding reports u will get all the details in Metadata Repository........
    RSA1 >> Metadata Repository >> Select Queries>> From there u can find.......
    Here r some useful tables for reporting......
    Queries
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    Workbooks
    RSRWBINDEX List of binary large objects (Excel workbooks)
    RSRWBINDEXT Titles of binary objects (Excel workbooks)
    RSRWBSTORE Storage for binary large objects (Excel workbooks)
    RSRWBTEMPLATE Assignment of Excel workbooks as personal templates
    RSRWORKBOOK 'Where-used list' for reports in workbooks
    Web templates
    RSZWOBJ Storage of the Web Objects
    RSZWOBJTXT Texts for Templates/Items/Views
    RSZWOBJXREF Structure of the BW Objects in a Template
    RSZWTEMPLATE Header Table for BW HTML Templates
    Moreover .......u can also check the table DD02L.........this table will give u list of all tables.......
    Regards,
    Debjnai......

  • HTML Dataset - how to filter based on data values within columns

    I have had success with using the XML dataset and filtering based on user input (see javascript example below)
    <script type="text/javascript">     
    var ds2 = new Spry.Data.XMLDataSet("disciplinary_actions3.xml", "doh/disciplinary_actions2[type='<? echo($type) ?>'][name>='<? echo($name) ?>']");
    ds2.setColumnType("date-of-sanction", "date");
    </script>
    The XML dataset filters the results based on the type and name values within the XML dataset columns.
    I need to accomplish this type of filtering with an HTML table.  All that I have  been able to accomplish with the use of the in the rowselector (see example below)
    <script type="text/javascript">
    <!--  the setRowSelector filters by the class attribute on the row in the html table
    var ds4 = new Spry.Data.HTMLDataSet("disciplinary_physicians_htmldataset.php", "physician-list");
    ds4.setRowSelector("tr.<? echo($type) ?>");
    ds4.loadData();
    //-->
    </script>
    How can I filter the HTML dataset based on the data VALUES within the table columns and NOT the class or id or span or div,,,etc?
    Although my advanced dataselector within Dreamweaver CS4 has a column selector... I can't under or get it to work.
    Any assistance or direction is greatly appreciated.

    Hi Ron,
    According to your description, you want to pass the Terminal number that user logon to where clause without needing to create a userid table, right?
    As per my understanding, you need to add an additional table to store the user and corresponding terminal, so that you can filter the data to show the rows based on the user and corresponding terminal. Here are some blogs which describe dynamic security
    on tabular model, please see:
    http://blogs.msdn.com/b/himanshu1/archive/2013/03/02/implementing-dynamic-security-in-tabular-models.aspx
    http://www.bidn.com/blogs/ChrisSchmidt/ssas/4332/dynamic-security-in-tabular
    If this is not what you want, there is no other approach to pass the Terminal number that user logon to where clause without needing to create a userid table. Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to create LDAP filter-based rule to check Group membership in OAM

    Hi folks,
    I'm having hard time creating an authorization rule to verify ldap group membership. I've followed "Configure User Authorization" article from Oracle website (http://download.oracle.com/docs/cd/E10761_01/doc/oam.1014/b32420/v2authz.htm#BABHBFEJI) and created an Authorization scheme w ldap_attribute_name as User Parameter and ruleExpression as Required Parameter. Then, inside my policy I created an Authorization Rule based on my Authz scheme w Allow Access attrib filter-based Rule which looks like this:
    ldap://ldap_server:port/ou=People,o=Company,c=US??sub?(ldap_attribute_name=ldap_attribute_value)
    This works fine.
    Now, I've added another filter-based rule under the same Authz Rule/Allow Access:
    ldap://ldap_server:port/ou=Groups,o=Company,c=US?uniqueMember?sub?(&(objectClass=groupOfUniqueNames)(cn=ldap_group_name))
    While query looks somewhat correct and works as a command-line argument (slightly modified format), it does not work in OAM (meaning people w out req-d group membership can still login).
    Can someone steer me to the right direction as to what do I need to do:
    1. Change/fix the ldap query
    2. Create new Authz scheme with uniqueMember userParameter; create new Authz rule based on new authz scheme; create new Allow Access filter rule with the ldap query I have
    3. Do smth else
    Any help is greatly appreciated.
    Thank you, Roman

    You can create two authorization rules
    First for user with attribute
    and second for group
    and then in authorization expression you can have AND of these two.
    Regarding your query...
    First ... If your requirement is to give access to all the members of a particular group then you don't require any ldap filters
    All you have to do is in the authorization rule -> Allow access -> Select People (here you have to select group so click on the group tab, its little hard to see but its there in light blue color on dark blue tab) -> select the group you want to give access
    Second.. If your requirement is such that you want to give access to a member of a group which has certain attribute lets say group with status active ( In this case you are not aware of the name of the group because user can be a member of any group but you want to give access only to the group with specific attribute.) then you have to write custom authorization plugin.
    If the option is second let me know i can give you a solution which will work for a single domain without any effort of developing a major plugin.
    Hope this helps,
    Sagar

  • How to create an new column from ordered pairs

    Hi,
    Wondering if anyone can help this problem. I am analyzing network traffic between a PC and a Server. I can easily get a count of packets in each direction, PC1 to Server1 and the return path, Server 1 to PC1. But want I really want is a count
    of PC1 to OR from Server1, basically a count of packets by IP conversation.
    Each row is a packet with fields like: Time, Source, Destination.
    For example
    2:01:01, PC1, Server1
    2:01:01, Server1,  PC1 
    I would like to create a new column that represents a conversation. So new have columns: Time, Source, Destination, Conv. To get something like this:
    2:01:01, PC1, Server1, Conv1
    2:01:01, Server1,  PC1, Conv1
    2:01:01, PC2, Server1, Conv2
    2:01:01, Server1,  PC2, Conv2
    Thanks,
    Wes

    Wes, I just got around to revisiting your problem. The solution I came up with is twofold. The first part is the creation of a custom function that generates a conversation ID in the form PC1_Server1, PC2_Server1 etc. The second part uses a lookup table
    for each unique combination of PC and server to return a conversation number (Conv1, Conv2...).
    First of all, the "NetTraffic" table (your original table) generates the following script
    let
        Source = Excel.CurrentWorkbook(){[Name="Table8"]}[Content],
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Time", type time}}),
    in
        #"Changed Type"
    In the above, the type of the timestamp column is changed to time, but you can alternatively fix it as text.
    I've called the custom function "ConversationIdentifier." It takes four parameters, as described by the parameter names.
    (sourceList as list, sourceValue as text, destinationList as list, destinationValue as text) as text=>
    let
        SourceConversationList = List.Sort(List.Select(sourceList,each (_ = sourceValue or _ = destinationValue))),
        DestinationConversationList = List.Sort(List.Select(destinationList,each (_ = sourceValue or _ = destinationValue)),Order.Descending),
        ConversationID = SourceConversationList{0}&"_"&DestinationConversationList{0}
    in
        ConversationID
    Usage:
    As an added custom column in Power Query, the formula, based on the "NetTraffic" table would be:
    =ConversationIdentifier(#"Changed Type"[Source],[Source],#"Changed Type"[Destination],[Destination])
    As previously mentioned, the custom function generates combinations of PC and server, such that each combination represents a conversation.
    Next, I created a two-column "ConversationLookup" table in a worksheet, with entries like PC1_Server1|Conv1, PC2_Server1|Conv2, and so on.
    In the NetTraffic table, I did a merge with the ConversationLookup table, ensuring that the "Only Include Matching Rows" option is left unchecked (left join).
    Finally, I removed unwanted columns. Note: You don't need to use the lookup step if PC1_Server1, PC2_Server1 etc. serves your need for identifying a conversation.

  • How to Filter Key Figures in Columns Based on a Selection

    Hello,
    I am trying to get my columns to dynamically filter based on some selection and would like to know what is the easiest way to make this happen.  My scenario involves displaying 12 months of data for an actual / budget view.  So we may need 8 months of actuals and 4 months of plan, 9 months of actuals and 3 months of plan, 10 months of actuals and 2 months of plan, etc.  The row is cost element and my columns are restricted key figures.  I want the user to be able to easily select an 8/4 look and the dynamically remove the unnecessary columns.  Same with a 9/3 or a 10/2.  Besides these 12 months of Act / Bud, I have 12 months of plan, 12 months of actuals for other years, so I have lots of key figures.  Just doing the basic filter can be too cumbersome.
    Thanks,
    Cherie

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

Maybe you are looking for

  • Linux or Java? :Cannot display non english characters

    hi, i am trying to implement a GUI that supports both turkish and english. user can switch between them on the fly. public class SampleGUI { JButton trTranslate = new JButton(); /* Button, to translate into turkish */ /* Label text will be translated

  • In Browser .PDF forms wont' work

    I am so frustrated right now. Can someone please guide me on how to open, fill out, and submit .PDF forms using ANY broswer (I don't care which one)  on the MAC? I've tried extensions, plug ins, Adobe reader itself, Adobe Pro, reading for 2 days and

  • After adding one column in a table can't get the header line

    hi all, i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TAB

  • Diff between oracle 8i sql Engine and oracle 9i sql Engine

    hi, 1)Can anyone tell me difference between oracle8i sql engine and 9i sql engine. 2)Does oracle 9i uses the index defaultly if any primary key is there in table Thanks Rama

  • Paths won't close!

    I'm just about ready to punch the portion of the screen displaying the pen tool. Having used it in Photoshop for so long, I imagine it would function similarly in Flash. All I want to do is draw a closed path with five anchor points. Simple, eh? Well