Sql to find out combination of true and false

Hi all,
Could any one provide the sql to find out combination of true and false . For eg: if I have 3 elements a , b c i would like to get below o/p
a   b  c
t t t
t t f
t f f
f f f
t f t
f f t
your reply is greatly appreated - thank you

Do you mean something like this (all permutations) ?
SQL> with t as (
  2    select 't' bool from dual union all select 'f' from dual)
  3  select a.bool a,b.bool b,c.bool c
  4  from t a,t b,t c
  5  /
A B C
t t t
t t f
t f t
t f f
f t t
f t f
f f t
f f fIf not, then you already got correct answers regarding boolean type in sql.
Best regards
Maxim

Similar Messages

  • My mac book pro has got 41 GB of other stuff on it clogging it up how do I find out what is rubbish and delete it

    my mac book pro has got 41 GB of other stuff on it clogging it up how do I find out what is rubbish and delete it. To free up some memory. I can't believe I have filled it up intentionally.

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Then reboot. That will temporarily free up some space. Do the same in other applications, such as Aperture, that have an internal Trash feature.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    If you're using Time Machine to back up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning your files.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • How to find out list of users and their access on Sharepoint

    Hello Everyone
    How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
    Thanks

    you can get the report using below powershell scripts. first one gives list of users in a site collection level.
    The second link generates the permissions reports for each user.
    http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
    https://sp2010userperm.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to find out when 'enable secret' and username secret' was set/changed

    Hi,
    I was wondering if it is possible to find out when 'enable secret' and username secret' was set or changed last time on an IOS based machine.
    Is there any show command or kind of timestamp or MIB which can be read out?
    tnx Ralf

    Probably your syslog server would give you that info.

  • How to find out the PATTERN, GRADIENT and BRUSHED objects?

    How to find out the PATTERN, GRADIENT and BRUSHED objects information in illustrator active document file. And also how to find the CMYK and RGB color information in illustrator file through javascript. Could you please provide any examples.

    I tried using the below code. But for both "cmyk" and "grayscale" pattern it gives only CMYK. Kindly check and advise.
    Code:
    var docRef = activeDocument;
    for(var i=docRef.inkList.length-1;i>=0;i--){
      var inkRef=docRef.inkList[i];
      var inkRefName=inkRef.name;
      alert(inkRefName);
      alert(inkRef.inkInfo.kind);
    Thanks for looking into this.

  • How do you find out if the transmitter and/or receiver leaves the session ?

    So , how do you find out if the transmitter and/or a receiver leaves the session , is there an event when this happens ?

    1. There is no list available from your end.
    2. You can't actually check. If you suspect a device has been, deauthorize it twice and then authorize it.
    (89509)

  • Query to find out the table name and column name..

    Hi Experts,
    I have an Oracle DB in which has more than 50 tables and 100,000 records. I want to get the record which contains *"ITxtVarValue references a non existing text"* the text.
    Is there any query there to find out the table name and column name of this particular record where it reside?
    Please help. Any help will be rewarded.
    Thanks,
    G

    Using this forum's search function, I found a thread that should give you an idea: How to find out a tablename
    C.

  • How do you find out how many views and downloads a podcast has had?

    How do you find out how many views and downloads a podcast has had?

    Your question may be better placed in the "Producing Podcasts" forum instead of here in iTunes for Windows.
    I assume though (I don't produce Podcasts), that the host server (where the Podcast is downloaded from) has the option of providing that information to the Podcast's producers.
    Two points though;
    That information is likely to only be available to the producers of that Podcast, not to listeners (or competitors)
    It's almost certainly an add-on service, that needs to be paid for, in addition to the hosting service.
    If it's your Podcast, check with the host service that you use.

  • I've emptied trash, removed files, discarded everything I don't use and my startup disc is still full.  Half of it is 'other'.  How do I find out what 'other' is and remove it?

    I've emptied trash, removed files, discarded everything I don't use and my startup disc is still full.  Half of it is 'other'.  How do I find out what 'other' is and remove it?  I'm using a Mac OS X Lion 10.7.5 (11G63).  Any help will be treasured!

    Linda Steider wrote:
    How do I find out what 'other' is and remove it?
    See Pondiini's The Storage Display, for details.

  • To find out ISU related tables and views

    Hi all,
    i want to find out al the tables and views that are using in ISU.is there any way to find it out.help me...

    one of the IS-U members have shared his table link in the share point check this.
    http://www.esnips.com/doc/9bd50e96-ecae-4327-9b69-1effba953140/isu_tables

  • How do i find out the purchase date and my coverage plan?

    how can i find out the purchase date and my coverage plan on my ipad?

    Try here for the warranty coverage. Your date of purchase would be tied to wherever you bought the device.
    https://supportprofile.apple.com/

  • How to find out which IPHONE 4 and 4S will work in Armenia?

    how to find out which IPHONE 4 and 4S will work in Armenia?

    Hi Chitwanjit,
    STAD and ST03 are your friends.
    - Get in contact with your SAP Basis in order to get an explanation how
    to use this tools (if necessary).
    - SAP courses ADM315, BC490 explain these tools
    - search in help.sap.com,
    SDN, google, there should be plenty of information available as well.
    Kind regards,
    Hermann

  • SQl to find out the last  business day of a given week

    Can any one please let me know what will be the SQL to find out the last business day (monday-friday) of a week?
    Edited by: 863997 on Oct 6, 2011 10:40 AM

    Assuming for "this week" that you want "last week Friday," then here is the SQL:
    TIMESTAMPADD(SQL_TSI_DAY,-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK(CURRENT_DATE)*-1, CURRENT_DATE))
    If you want the "nth" business day of the month, click on this link here:
    Re: calculation of Business day in OBIEE

  • How do i find out what teachers editions and resources are available to compliment etextbooks?

    How do i find out what teachers editions and resources are available to compliment etextbooks?
    I'm researching the possibility of using iPads for our school but I need to make sure that we can get the appropriate teacher resources to go along with the textbooks. Where can I find these?

    I would contact the publisher of the textbook directly.  Apple is just a store, not a publisher.

  • I can not find out how to copy and paste firefox does not allow it

    Firefox does not allow me to highlight html documents when on line and then copy and paste
    When I left click to highlight it just moves a ghost copy of the whole document away from where you begin.
    I can not find out how to copy and paste firefox does not allow it

    What is your Operating System?
    How do you highlight the HTML document and copy the selected text to the clipboard?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

Maybe you are looking for

  • Secure login form as part of a not-secure page

    I know how to make a login page secure via SSL, and I also know how to do a login box on the other application pages that aren't secure. What I can't find out how to do -- or if it is even possible -- is to make a secure (via SSL) login box on a page

  • When I try to connect my iPod touch I get an error message that the "phone" is not recognized, unknown error 0xE8000084.  Help

    I am using my husband's old iPod touch and when I try to connect it to iTunes I get that error message.  It is recognized in my computer as unspecified under Devices and Printers

  • GI & GR in production order.

    Hi all , i have query : i have a production order "A " for 100 EA and in confirmation i did final GR for the same but i have forgotten the GI for the same order . But here the GI is missing , thr is no as such warning or error prompted by the system

  • Book for BPC financial Accounting

    Dear Friends,                       I am BW developer and have interest in studying the BPC financial accounting.  Can you guys recommend me any good books for BPC financial Accouting. thks, Sunil.

  • Cannot signin laptop

    wont accept my Apple PC signon.  wont accept password. RESET PASSWORD asks me to enter Apple ID and password.  I try to enter but says I have no internet connection and I can connect to a wifi newtwork using the wifi item in the menu bar but cant get