Using an alias

Hi,
we have a composite key on a few of our tables. I was wondering what would be the best approach to see if a record from the one table exists in the other, and I wanted to use an alias:
select col1||''|col2||''||col3||''||col4 as id
from table1
where id in (select col1||''|col2||''||col3||''||col4)
from table2
I realize the above is not correct, and I can use a join statement as: where table1.col1 = table2.col1
but I was wondering if we could use an alias, and how/if we could do that?
appreciate it
Message was edited by:
user577001

You can check the performance of a join vs;
SQL> create table table1 as (
   select 1 col1, 2 col2, 3 col3, 4 col4, 10 some_val from dual union all
   select 1 col1, 2 col2, 3 col3, 4 col4, 20 some_val from dual union all
   select 0,0,0,0,30 from dual)
Table created.
SQL> create table table2 as (
   select 1 col1, 2 col2, 3 col3, 4 col4 from dual)
Table created.
SQL> select some_val
from table1
where (col1, col2, col3, col4) in (
          select col1, col2, col3, col4
          from table2)
  SOME_VAL
        20
        10

Similar Messages

  • I use a yahoo email as my Apple ID. How can I use an alias with no one knowing

    How do I know if my daughter is using an alias for her iCloud/Apple id.

    Any apple id has ability to create up to three aliases that nobody would know. Purpose of creating more then one alias is to give people different email addresses. Example would be if I had automotive business and computer business, so emails addressed to [email protected] and [email protected] would go to my mail box.
    Downside - they all go to the same mail account - which is your first account alias. So if you were to go to icloud.com website and sign in with your [email protected] or [email protected] - you will still see all of those icloud.com emails (not the yahoo ones).
    Close enough?

  • Can I use an alias to trick an application about the location of a support folder?

    OS X Server makes extensive use of alias files and folders, which evidently allows the storage of library folders and data on a drive other than the OS X drive.
    I would like to store the data for a similar program, Daylite Sever (also evidently using PostgreSQL), on a drive other than my OS X drive. To this end, I've tried creating an alias folder in the location where Daylite Server stores its "database" file, /Library/Application Data, but Daylite Server was not fooled. So, I was able to accurately reproduce the ACLs using chown and chmod. Daylite Server was still not fooled into following the alias to another volume. Note that the ACLs listed "_dayliteserver" as the owner, and I was unable to add this user through the "Get Info" GUI. I simply typed it into terminal using the chown command, and OS X seemed to accept it.
    Is it that some applciations just do not tolerate aliases? Must an application be preped to accept an alias instead of the folder it is looking for? Is there something other than the ACLs that I need to change to convince Daylite to follow the alias to a separate volume?
    Thanks for any help you may be able to provide!

    Using the symlink almost worked. After creating the symlink, the app not longer fails on launch. Now, it simply hangs. The error I'm getting is "com.marketcircle.daylite.accessd caused server to be off with error: (null)". So, I think it is now a permissions issue.
    I know that I can change ACLs, and I've tried to do that on the symlink file I created using chmod and chown. I think I have the ACLs correctly, but I think there is another kind of permissions or access controls I need to adjust. Does any know what they are and how to adjust them?

  • How to use directory alias in Java stored procedure ?

    hi everyone !
    I want use Directory alias in Java strored procedure
    I 'hv created dir alias as
    Create Directory BFILE_DIR AS 'C:\MyImages'
    my java statements -
    myfile="C:\MyImages\myPH01.jpg"
    File binaryFile = new File(myFile);
    instead of giving absolute path I want give directory alias BFILE_DIR
    myfile= BFILE_DIR + "myPH01.jpg"
    File binaryFile = new File(myFile);
    can anyone pl suugest how should I write this in Java procedure
    thanks
    SPD

    hi everyone !
    I want use Directory alias in Java strored procedure
    I 'hv created dir alias as
    Create Directory BFILE_DIR AS 'C:\MyImages'
    my java statements -
    myfile="C:\MyImages\myPH01.jpg"
    File binaryFile = new File(myFile);
    instead of giving absolute path I want give directory alias BFILE_DIR
    myfile= BFILE_DIR + "myPH01.jpg"
    File binaryFile = new File(myFile);
    can anyone pl suugest how should I write this in Java procedure
    thanks
    SPD

  • Using .Mac alias in Mail

    I have created a .mac alias on the .mac website. I then created a .mac account using this alias in Mail. (In additon to my orginal .mac account) However, I am unable to send mail using it. It asks for a password. I'm assuming you use the orginial .mac account password. Any help with this would be greatly appreciated! Thank you, Sue

    You don't create a .Mac account alias as a separate account with Mail.
    All messages sent to a .Mac account alias are deposited in your .Mac account's Inbox mailbox. To send messages from a .Mac account alias, you select the alias email address from the Account selection located under the message header when composing a message.

  • Using an alias email address in Mail for iPhone

    My iPhone 4S shows no interest in using my alias email address as the default choice for sending and receiving email, even though I"ve changed the settings in iCloud. Mail persists in using my Apple ID as the default sending email address. It's a minor nuisance as my name shows up either way, but I'd like the correct email address to show. Can anyone help with this?
    Thanks.

    You would think that would fix it, but it doesn't. I've set my default sending email address as the one I want to [email protected], but despite iCloud showing this as my chosen setting, emails continue to go out with my AppleID as the sending email address. I think this problem is like the case of Facetime, where people can't activate Facetime with anything but their AppleID. It's just something we'll have to wait for Apple to fix.

  • Can I use an alias for personal fundraising?

    I want to use PayPal for personal fundraising.  I live in a VERY small town and would prefer to use an alias, but I do not have a "Doing Business As" registered in the alias.  I am financially in need because I became unemployed (but I am seeking work!).  I want a way I can solicit donations online through a weblog.  My problem is I would prefer to use a pseudonym because I live in an extremely small town and do not want local people defaming me and my family.Is there a way I can legally use an alias on PayPal without having a "Doing Business As" registered with the pseudonym and Tax ID?

    OBVIOUSLY, I did not understand the nature of your "PayPal".  Years ago I had friends who used stage names to raise money for their band with PayPal.  OBVIOUSLY, It is connected to my bank account!  I tried to e-mail AND call the toll-free number, but I did not understand how to send a SPECIFIC type-written message to answer my question.YOU did not have to give me such a snarky message back.  OBVIOUSLY you are having a bad day, too!I want nothing to do with PayPal and I am deleting my account.I have heard a lot of bad things about PayPal since I began asking questions.  A lot of unhappy customers.**bleep** this!

  • Yosemite Server: Apache shm errors with proxy_balancer | SASL errors using user alias

    Dear OSX Server Ninjas,
    I recently upgraded my 10.9.5 Mac mini running Server 3.2.2 to Yosemite + Server v4, directly to v4.0.3. The box serves the whole Mail/Cal/Contacts/VPN palette as well as some websites, Git repos and some custom software. See below for network setup.
    After battling the most blatant issues (some easy to fix but hard to find, others hard on both), I'm almost back to a working server setup … but some things keep bugging me even after days of log-reading and OD tricks. In the last days, I have read countless discussions here as well as on stackoverflow/serverfault/apple.stackexchange and blogs, so I'll try to be as thorough and precise as possible to show what I have tried so far – sorry in advance for the long post
    … and since you might not read to the bottom: Thanks in advance for any help, especially with the Apache problem!
    My setup
    OSX Server v4.0.3 running on Yosemite 10.10.1 ➞ both latest official releases
    host + DNS
    Hostname configured for public domain mydomain.net, web traffic on selected ports comes in through router NAT
    Server has a static IP on the local subnet 192.168.178.0/24
    Server running local DNS and performing lookups for all clients in the local subnet, forwarding to the router at 192.168.178.1
    Primary zone for mydomain.net with records (A, NS, MX) pointing to said static IP
    changeip -checkhostname is successful
    Public IP is currently configured at the domain registrar through his name servers
    SSL
    Trusted third-party certificate installed for host.mydomain.net (Common Name + SAN for two subdomains)
    Used to secure all services
    Qualys SSL Test Grade B (capped due to OSX's openssl 0.9.x not being capable of TLS1.2 and Intermediate CA SHA-1 )
    TLS working both inbound and outbound according to CheckTLS.com
    OpenDirectory
    Recreated after upgrade (probably not necessary, since issue persists), re-imported groups + users from WGM backup files
    Only the server itself is bound to the directory, other devices just access services through network accounts (CRAM-MD5, MD5-Digest)
    Problems
    Apache shm errors: Apache fails to create slot memory when proxy module is enabled
    As soon as I start a service which requires the Apache proxy_balancer module (e.g. Cal/Contacts, ProfileManager), this starts filling up my Apache's error log:
    [Mon Jan 12 01:41:17.979882 2015] [proxy_balancer:emerg] [pid 2949] (28)No space left on device: AH01179: balancer slotmem_create failed for p26d9e669--1011640492
    [Mon Jan 12 01:41:17.979894 2015] [:emerg] [pid 2949] AH00020: Configuration Failed, exiting
    [Mon Jan 12 01:41:28.297127 2015] [slotmem_shm:error] [pid 3026] (28)No space left on device: AH02611: create: apr_shm_create(/private/var/run/slotmem-shm-p26d9e669--1001322955.shm) failed
    [Mon Jan 12 01:41:28.297347 2015] [proxy_balancer:emerg] [pid 3026] (28)No space left on device: AH01179: balancer slotmem_create failed for p26d9e669--1001322955
    [Mon Jan 12 01:41:28.297355 2015] [:emerg] [pid 3026] AH00020: Configuration Failed, exiting
    When I increase the Apache LogLevel to trace1, I get this as well:
    [Mon Jan 12 02:11:43.190303 2015] [slotmem_shm:debug] [pid 5501] mod_slotmem_shm.c(367): AH02602: create didn't find /private/var/run/slotmem-shm-p26d9e669-813569972.shm in global list
    This causes the Apache to crash constantly, which is … unnerving. After googling around for a while, I tried the following steps:
    Stop Services that use the Apache (Web, *DAV, ProfileManager)
    sudo apachectl stop
    Remove all orphan cache/slot files (.shm, ssl-cache, proxy.*) from /private/var/run
    Reboot the server
    Start up the Services again
    Curiously enough, this worked for a while! But I was getting several log messages about dropped proxy connections, and sometimes the ProfileManager page would time out. Then, the issue started to reappear and does not seem to be fixed again with the steps above. I looked through the Apache config files and config plists for the Services in question, as well as the default config files. The only thing I have so far is that as long as there are no active proxy connections, the Apache runs smoothly – but all goes awry when slotmem files are created (a lot of them). Sometimes, I am able to turn on the Calendar service, but switching on Contacts produces the error … one time, I even got Calendar + Contacts running, and all went well until I enabled Profile Manager.
    I found several error reports with similar or identical errors from other Apache 2.4.x users, but most of those were developer talk on mailing lists, or suggested steps that did not work for me (or were inapplicable on the OS X Server Apache environment).
    SASL errors using user alias for WebDAV-Digest authentication
    Short version: I am unable to authenticate through WebDAV-Digest with a user's alias (defined in Server Admin > Users > Context Menu > Advanced Options or WGM). Using the main short name of the same user works flawlessly. Password Server Error log just shows:
    AUTH2: {234023578237md5hash2384234, mainshortname} WEBDAV-DIGEST authentication failed, SASL error -13 (password incorrect).
    The password is 100% correct: When I set up a test CalDAV account and put in alias+PW, it did not work (OS X Dialog showed “could not be verified”, Server log as above). Leaving the password field filled and just switching the user to the main short name went through instantaneously, with the Server log showing
    AUTH2: {234023578237md5hash2384234, mainshortname} WEBDAV-DIGEST authentication succeeded.
    Notice the same MD5 hash and canonical short name, yet different results. I don't know if this is a new “feature”, a result of mail aliases being handled differently (at least I read that somewhere) …
    Additional Questions
    Should I configure the DNS for public use, instead of the Split-Brain configuration (local network gets local IP, outside traffic is directed by registrar NS)? I read several articles explaining that Split-Brain is common in large organizations, but might introduce weird networking issues. Entering the external IP as a Round Robin alternative for the internal does not seem sensible to me.
    I also have a question concerning LDAP log entries like this one below, but I'll put that in this already open discussion:
    => bdb_idl_delete_key: c_get failed: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock (-30994)

    Today the same error occurred on a customers server.
    We don't use Calendar or Contacts.
    We only have some websites configured and want use NetInstall for deployments.
    As soon as I disable the Profilemanager the httpd starts over and other websites and NetInstall via HTTP are working fine.
    When I reenable Profilemanager the httpd processes are gone and I see the same stuff in Apache's error log...

  • Cannot access columns in a result set using table alias in Oracle database

    I have a query which joins a few tables. There are a few columns in various tables with identical names. In the query, I have assigned table aliases for each table thinking it'll be the manner in which I access a specific column in a specific database table. However, when trying to retrieve the column, I'm getting an exception stating "Invalid column name". I had no problem doing so in my last project when I was coding against MySQL database so this is likely to be a driver implementation issue. My current workaround is to assign a column alias though I find this to be annoying and it does make the query very verbose.
    My question is whether this option is perhaps a configuration issue, a bug, or something that I'm missing. Also, I would like to know if anybody has an elegant workaround without accessing columns using their numeric index.
    I'm querying an Oracle 10i database in a managed environment (database connection is obtained from a Weblogic data source).
    Sample query:
    select
    a.address1,
    d.address1
    from
    account a
    inner join
    department d on a.department_id = d.department_id
    where
    a.account_id = 1000;
    When trying to access a ResultSet instance in the following manner, I will get an exception:
    rs.getString("d.address1");
    Retrieving "address1" will return the first column in the select clause.

    jonathan3 wrote:
    My question is whether this option is perhaps a configuration issue, a bug, or something that I'm missing. Since you already figured out that you can use an alias one can suppose that it is the last in that you are missing that you already have a solution.
    You can try extracting the meta data to see if it has a name without the alias. Probably not.
    Also, I would like to know if anybody has an elegant workaround without accessing columns using their numeric index.One can only suppose that you consider using names "elegant".

  • Using .mac alias as an iChat account name

    Hi,
    I'm a full .mac member.
    Thus, I am able to create aliases (e.g. [email protected]).
    I'd like to use this alias as an iChat account name (so I can have two iChat accounts : one personal, one professional).
    Is this possible ?
    Thanks,
    Regards,
    Tibo

    HI TiboDeParis,
    Nope.
    Screen names have to be full names or Trial accounts.
    Trial accounts work after the 60 days are up.
    The other option is of course an AIM screen name.
    11:47 PM Monday; April 17, 2006

  • I won't be using the alias. Please delete it for me.

    i'm korean.
    no use "USA communities"
    I won't be using the alias. Please delete it for me.

    Just don't use it, there is no way to delete it.

  • Using URL alias with Weblogic - How do you do it?

    Bear with me I have zero experience with Weblogic.
    We use Weblogic as a component of Hyperion Planning, meaning for Hyperion Planning weblogic is installed and acts as the java application AND webserver.
    Currently our Hyperion Planning URL is http://servername:port as per security audit we need to use an alias so that users do not have straight access to the direct URL link.
    Therefore we created on the DNS a URL alias BFS.companyname.com. Now I need to associate this alias with the Planning URL which is in weblogic.
    I have logged into the weblogic admin console and see 'Virtual Hosts', I enter in the host name BFS.companyname.com and select the target which is the Hyperion Planning workspace (http://servername:port) apply changes yet nothing occurs.
    If anyone has done a URL direction could you please post the instructions on how to do so...thanks
    JTS

    Just to share this will all. The URL alias redirection is done within Apache webserver and not the Weblogic program.
    Edit the httpd.conf file with this information below:
    1. Configure Apache to listen on port 80:
    a. Back up the configuration file, e:\Hyperion\common\httpServers\Apache\2.0.52\conf\ht tpd.conf
    b. Add "Listen 80" to the Listen section.
    c. In the Virtual Hosts section, (around line 955), uncomment the line, "NameVirtualHost *:19000"
    d. Add "NameVirtualHost *:80"
    e. Uncomment the "<VirtualHost *:19000>" code block, down to "</VirtualHost>"
    f. Edit and add the following block to Virtual Hosts
    <VirtualHost *:80>
    ServerName www.myserver.com
    DocumentRoot e:/Hyperion/common/httpServers/Apache/2.0.52/htdocs
    </VirtualHost>
    g. Restart Apache.
    2. Redirect Web Page
    a. Create a page in the virtual web directory, index.html that contains the following html code:
    <html><head>
    <meta http-equiv="Refresh" content="0; url=http://myserver:19000/workspace/index.jsp">
    </head><body>
    </body></html>
    b. Have someone in NSE alter or create a DNS entry that redirects "hyperion" to the appropriate IP address. The default page (index.html) on the default port (80) will execute the redirect in the html document above, launching the workspace login screen.
    JTS

  • Truncate member names in Finanial Reporting / Using Member Alias in HFR

    Hello,
    We have a financial Reporting where the Member names look like the following:
    A_MemberName, P_MemberName, MemberName_C, etc.
    We want to remove the '_' and the prefix such as A, P, C, etc.
    Also, we want to remove the suffix '_C' where they occur.
    How can we do this in Financial Reporting?
    Turns out that the description/alias of the Member removes the prefix as the alias is: MemberName. However, the MemberAlias funciton is not working for some reason. Is it because the autocalculation is set? Either way, is there a way to do this in Financial Reporting? O
    We allso want a generic way to make sure that the Alias shows and not the member name (auto-calculation is set to true). Any help is much appreciated. Thanks.
    -- Adi

    As far as I know, there is no easy way to fix this issue on FR itself. I believe there was a similar post on the forums about a month ago. I think Iain recommended what I will recommend now. (Iain: Feel free to correct me)
    Depending on your database connection, for example in an Essbase database, you can create an alternate alias table, which wouldn't have the prefix or suffix. FR lets you use different alias tables, so you could use this new alternate alias table instead of your current one.
    Let me know it this doesn't make sense.
    Cheers,
    Mehmet
    p.s. My bad, I thought this was the Reporting Forum. If you like to search your issue in the reporting forum, here is the link: Hyperion Query and Reporting
    Edited by: Mehmet Sevinc on Apr 4, 2012 1:09 PM

  • Using Directory alias in Java stored procedure

    hi !!
    I want use Directory alias in Java strored procedure
    I 'hv created dir alias as
    Create Directory BFILE_DIR AS 'C:\MyImages'
    my java statements -
    myfile="C:\MyImages\myPH01.jpg"
    File binaryFile = new File(myFile);
    instead of giving absolute path I want give directory alias BFILE_DIR
    myfile= BFILE_DIR + "myPH01.jpg"
    can anyone pl suugest how should I write this in Java procedure
    thanks
    SPD

    Hi there i am currently trying to develope a java
    stored procedure and place it in oracle and will try
    to use that procedure to send a message to a server
    but then it doesnt seems to work. is it possible?And what do you do with exceptions in your java proc?
    I haven't ever done it myself, but I would be very surprised if it wasn't possible. I also wouldn't be surprised to find out that you have to configure various things to allow it in Oracle itself.

  • Using Application Alias in URL

    hi all,
    I wanted to use application alias name in URL of my application while running. I wrote an application alias in application definition, and tried to run it using its alias. Ir runs fine, but to my surprise when i switched to any other page except home page by using two level tabs, my application alias again changes to application id. Can anyone help me in this that what i am missing here? How can i use application alias on every tab click.??
    Thanks & Regards,
    Sunil Bhatia - Programmer
    Eon Technlogies Pvt Ltd

    I wrote an application alias in application definition, and tried to run it using its alias. Ir runs fine, but to my surprise when i switched to any other page except home page by using two level tabs, my application alias again changes to application id.That's the way it works. You'll have to look at mod_rewrite in Apache to achieve what you want. There's a Oracle Application Express (APEX) usage.

Maybe you are looking for