Is there an aggregate or-bit function?

Below is a simple example of what I am trying to do.
select sum(part) from PARTS where roleID=4; PARTS table has two attributes:
part (bitPattern)
role_ID
part is a bitPattern, so instead of using “sum”, use an aggregate or-bit function.
Is there an aggregate or-bit function?
Thank you.

From Oracle 9.2 you can use the following
Anton
create or replace type bit_type as object
  total number,
  static function ODCIAggregateInitialize( sctx in out bit_type )
  return number,
  member function ODCIAggregateIterate
    ( self in out bit_type
    , value in number
  return number,
  member function ODCIAggregateTerminate
    ( self in bit_type
    , returnValue out number
    , flags in number
  return number,
  member function ODCIAggregateMerge
    ( self in out bit_type
    , ctx2 in bit_type
  return number,
create or replace function bit_or_agg( value in number )
return number
parallel_enable aggregate using bit_type;
create or replace type body bit_type
is
  static function ODCIAggregateInitialize( sctx in out bit_type )
  return number
  is
  begin
    sctx :=  bit_type( 0 );
    return ODCIConst.Success;
  end;
  member function ODCIAggregateIterate
    ( self in out bit_type
    , value in number
  return number
  is
  begin
    self.total := self.total + value - bitand( self.total, value );
    return ODCIConst.Success;
  end;
  member function ODCIAggregateTerminate
    ( self in bit_type
    , returnValue out number
    , flags in number
  return number
  is
  begin
    returnValue := self.total;
    return ODCIConst.Success;
  end;
  member function ODCIAggregateMerge
    ( self in out bit_type
    , ctx2 in bit_type
  return number
  is
  begin
    self.total := self.total + ctx2.total - bitand( self.total, ctx2.total );
    return ODCIConst.Success;
  end;
end;
/

Similar Messages

  • Is there any built-in Hotkeys function to macro regular text inputs?

    I've not yet fathomed out the automator to do the function that I used to do on windows with a Keyboard Hotkeys program. I wondered if maybe automator was the wrong road to go down for something fairly basic like that eg I could assign a keyboard shortcut to paste a user name or a password or an email address, or even a postal address into any document just by doing CTRL + a for my full address to be typed out, like a macro.
    I know that it's generally regarded as bad to put passwords on shortcuts in case you get hacked, but I never use any important ones in macros such as my banking entries or payment by credit card etc, just in case someone busts into my Macbook Leopard.
    I've not found any software out there yet which resembles Avanquest PC Keyboard Hotkeys Pro which I've used for years without problems on my PC.
    Knowing how many good applications are lurking on this Macbook it wouldn't surprise me to find it can already do it. I didn't find reference to it in "The Missing Manual"
    Does anyone know of one? It needs to be an action that can work on the computer globally so it will paste the result into any texting application like email or a webpage or a document no matter what program one is running.
    I'd be glad of some tips
    Thank you
    Plado

    Thank you for that. I've marked that as helpful but not yet solved.
    Though it's the perfect solution to what I'm looking for, it's about twice the price I wanted to pay max. At $80 it seems rather a lot to shell out for something that will only ever perform one function from a list of about 15 text pasting jobs.
    I will have a look around and use your suggestion as a guide to key words to see if there's something a bit lighter out there that would work like a multi-clipboard and retain the information for each paste.
    I may not be lucky, as this is something that many people have misgivings about the security confusing it with devices that show up in windows computers as "Key Press Recording" stealth programs. I remember my anti virus and "hijack this" not liking the presence of Keyboard Express.
    So I'll search on a bit and see if anyone else answers this with a 2nd choice - and thanks for your response to my question.
    Plado

  • SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

    Below expression works fine with text box but gives error in dataset expression.
    ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
    and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
    & "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
    "," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
    & join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
    "')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
    "," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
    and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
    and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
    and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
    I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
    Pls. guide...

    Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
    Hope this helps.........
    Ione

  • Why there is no quick selection function in adobe photoshop 6.0.1 [was: cs6.01]?

    Some one my help? why there is no quick selection function in my adobe photoshop 6.0.1 [was: cs 6.01]?

    What John Waller just said.
    And your screen shows it is the archaic, totally superseded Photoshop 6.01, and that was in no way associated with any CS (Creative Suite), so your question title indicating you had "cs6.0.1" was massively and annoyingly misleading and wrong.
    You must be running an ancient machine if that oldie runs on it.
    What's worse you are running an illegal, pirated and hacked version of Photoshop.  You are breaking the law.
    Please don't come back here until you have bought a legal copy of Photoshop.  

  • Does anyone know if there is a 64 bit version of Ps Elements?

    I just noticed that I am using a 32-bit version of Elements 12.  Does anyone know if there is a 64 bit version?  (I remember reading somewhere that this was why they got rid of the "Magic Extractor" from version 11, because it was in a 32 bit format and they were re-writing it for 64 bit.  My Panoramas take an excessive amount of time and only use a small portion of my computers resources.
    Thanks!

    sailprice a écrit:
    Is there a 64 bit version of PSE 10?  I'm having printing problems and not sure if that is the reason?
    No 64 bits version for PSE10. I think You'd better start a new discussion with more details about your printing problems.

  • When will there be a 64-bit Linux version?

    After fillinging out a long fill-in procedure to apply for a US passport, I found that the Linux program Okular could not finish.
    I had to use a 32-bit Linux program that had Adobe Reader available, since there is no 64-bit generic version of Reader,
    and PCLinuxOS-64 does not have any provision for running the 32-bit version.. I do not want to use the two or three
    Linux-64 distros that permit that 32-bit use, since they have many other ideosyncracies which I deplore.

    I'm sorry "Test Screen Name", but could you please point to any more definitive announcements that there will be no more development of Linux versions of Adobe Reader?  Thanks.

  • I have photos in a DVD. In order to visualize them in iPhoto, must I necessarily import them? Can't I see the pictures from the media without importing? If not, is there any application with this functionality? I dont't like pre-visualization for photos.

    I have photos in a DVD. In order to visualize them in iPhoto, must I necessarily import them? Can't I see the pictures from the media without importing? If not, is there any application with this functionality? I need an app that allows me to navigate through the photos without selecting all of them. I realy dont't like pre-visualization for photos...

    In order to visualize them in iPhoto, must I necessarily import them?
    iPhoto is a Database. Before it can work with any data it must be imported to the database, so yes it is necessry to import them.
    Can't I see the pictures from the media without importing?
    See above.
    If not, is there any application with this functionality?
    Hundreds. Any image viewer will do the job. On your Mac the Finder has QuickLook and there is the Preview app as well. Online you can download any of these:
    http://www.macupdate.com/find/mac/image%20viewer

  • Is there any delivered BAPI or Functional modules available for MCHB table

    Hi Experts,
    I have a requirement where I have to pull inventory data from MCHB table without custom code. Is there any delivered BAPI or Functional modules available for MCHB table?
    Kindly help!
    Thanks
    Gopal

    Hi,
    Can you check using the Fun Modules
    MG_BATCH_CHECK_STOCK
    VB_READ_BATCH_WITHOUT_STOCK
    VB_BATCH_GET_ALL_STOCKS
    Regards,
    Anji

  • Adobe says the Magic Extractor Tool is not available in Elements 13 for 64 bit systems. Is it available on 32 bit? Is there indeed a 32 bit version?

    Adobe says the Magic Extractor Tool is not available in Elements 13 for 64 bit systems. Is it available on 32 bit? Is there indeed a 32 bit version? Is this tool available on earlier Element versions?

    The magic extractor disappeared after PSE11. It's recommended that you use the quick selection tool together with refine edge, if necessary.
    From the refine edge dialog you can output your cut-out to a new layer or layer mask.
    See Pete Green's FAQ
    https://forums.adobe.com/thread/1302663

  • Not sure if this is the right place...but is there any aggregate data repository/dictionary out there?

    And what I mean is...Is there any aggregate data dictionary out there that tells you how long and what type a data column should be?
    For example...Medical Provider Name...what is the normal length for something like this? Provider ID? Tax ID? Address Line 1? City? State?...Etc...
    Is like EDI X12 considered the Bible of Data Dictionaries? Yet you have to pay for that don't you? Is there anything else I can reference???
    Thanks for your review and am hopeful for a reply.
    PSULionRP

    Provider ID is well defined:
    "National Provider Identifier Standard (NPI)
    The National Provider Identifier (NPI) is a Health Insurance Portability and Accountability Act (HIPAA) Administrative Simplification Standard. The NPI is a unique identification number for covered health care providers. Covered health care providers and
    all health plans and health care clearinghouses must use the NPIs in the administrative and financial transactions adopted under HIPAA. The NPI is a 10-position, intelligence-free numeric identifier (10-digit number). This means that the numbers do not carry
    other information about healthcare providers, such as the state in which they live or their medical specialty. The NPI must be used in lieu of legacy provider identifiers in the HIPAA standards transactions."
    LINK:
    http://www.cms.gov/Regulations-and-Guidance/HIPAA-Administrative-Simplification/NationalProvIdentStand/index.html?redirect=/NationalProvIdentStand/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Is there a description of the function(s) of all thepreinstalled Lenovo delivered on new systems?

    I just bought a new T440s and am reviewing the list of pre-installed software ...
    Is there a summary description somewhere of what function each of these packages provides?
    The Microsoft Office install looks like a 30-day trial of Office 365 (or Office 2013?)
    The Nitro PDF appears likewise to be a 30-day trial
    I'm guessing I don't need ALL of them, but figuring out what each of them does is a bit tougher than I had imagined ...
    Thanks for any assist!

    Free aint free. Check for the 30 day trial warning. Learn>control panel>program and features>uninstall.
    It is not near as bad as it used to be.
    Thus uninstall all the stuff you have no clue about. 
    ===
    Is there a summary description somewhere of what function each of these packages provides?
    Yes, uninstall.
    ==
    They just want your money and Lenovo pushed this on you.

  • Database queries - is there a wait or sleep functionality?

    Hello everyone,
    I have recently encountered a problem where a database collector I made
    just stops querying after a while and needs restarting in the ESM for it
    to work again. In other databases (I am querying Oracle btw), this does
    not happen and in some others it does. So I am basically thinking that
    some databases are configured to limit the amount of querying or force
    an exit on error.
    What I have noticed, is that in my Oracle environment (no fancy
    configurations, all very permissive) I get alot of ORA-0100 errors
    indicating that there are too many open cursors. This happens when the
    last row in the database has been reached and the errors stop being
    shown in Active Views only after some data is inserted in database and
    collector resumes normally the task of collecting data until no more
    records are available and once more errors appear in Active Views.
    I altered the amount of allowed open cursors and incremented from 300
    to 500. Still, I keep getting errors (like every 20 seconds). I want to
    minimize these amount of errors and hopefully solve my original problem
    of having to manually restart the collector in some customer
    environments. I came up with the following snippet (bottom of message),
    but can't seem to find a function for having the collector sleep or
    wait. I tried Thread.sleep() (From Java) and setTimeout() (From
    Javascript) but both raise errors since they are undefined methods for
    the collector.
    The Sentinel API makes reference to "queryDelay" and "queryScheduled"
    flags which are supposedly defined in sqlquery.js. I cannot find any
    reference in the code to these flags and I am not even sure of how to
    implement them ( if(!queryDelay) { conn.send(DBQUERY) } ?????? ).
    How can I use these flags in the code to help me reduce the number of
    queries being thrown when there is no data? Or will I have to hack my
    own sleep or wait function? I appreciate any assistance!
    snippet of code I want to implement:
    Code:
    Connector.prototype.sendQuery = function(){
    if (rec.CONNECTION_STATUS == "NEED-QUERY") {
    if (instance.CONFIG.myCounter >= 3) {
    //HERE INSERT A SLEEP OR TIMEOUT FUNCTION
    instance.CONFIG.myCounter = 0;
    } else {
    conn.send(instance.CONFIG.DBQuery);
    //instanced in initialization function. Resets to zero when query is successful.
    instance.CONFIG.myCounter = instance.CONFIG.myCounter + 1;
    return true
    Jean-Paul_GM
    Jean-Paul_GM's Profile: http://forums.novell.com/member.php?userid=12809
    View this thread: http://forums.novell.com/showthread.php?t=445597

    I experience the same problem with my custom collector.
    But the beta connector is not there anymore.
    Can you please provide the connector so that I can test if it solves my
    problem.
    Thanks.
    ab;2141610 Wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > If this works I'd like you to open an SR for it so we can link it to
    > the
    > bug, but in the meantime:
    >
    > 508a0b25988c98a152ff5889edb41882 jdbc2011.1r1beta2.tar.gz
    >
    > ftp://ftp.novell.com/outgoing/jdbc2011.1r1beta2.tar.gz
    >
    > This is a beta and has not been fully ZA'd but seems to resolve your
    > issue for another customer. If it does please be sure to at least
    > post
    > back here if not open an SR (which will be credited to you as this is
    > Bug# 700669 most likely).
    >
    > Good luck.
    >
    > - --
    > Want to yell at me in person?
    > Come to BrainShare 2011 in October: http://tinyurl.com/brainshare2011
    > -----BEGIN PGP SIGNATURE-----
    > Version: GnuPG v2.0.15 (GNU/Linux)
    > Comment: Using GnuPG with Mozilla - 'Enigmail: A simple interface for
    > OpenPGP email security' (http://enigmail.mozdev.org/)
    >
    > iQIcBAEBAgAGBQJOge8eAAoJEF+XTK08PnB5ORoQAJcX9moFMh AfcpLSaIVhFLFj
    > ZcmfRjJs4IyT+xatk9wp1S/+eq81AMuyxsoGK/RQfwkKQtzJWiUtQAulCVPjFJZP
    > 3Hy2yBAJYUe5Rm3kedfeFlW3vFIV7wecl4el1UPRs4Q9DBUuBa XqP1KHgDrx4iue
    > ECEph0scQmlp+SxeBUZKfVwWY9NRKio3kxRPJ3QmzPPQ8euP6Z RYcDtwfJq4rrQf
    > z8GcV4ylHZxgIqGXI2pV47zBPPuU/lppytAnyaZSQm5ODs1ndi8f7i/MLPZ4SGI4
    > rkjUURVmkYim7UOA6QLxYUxUJF5SDGyjyJS2h2wGb5caBACMsA XDeySZ6ARMxtqs
    > 9mzb+Zj3VC4+54yVFAXDUq7mzMa5NE0WqxTR9lNoBMnnLmjwyk b9YDfmDUFZCpmT
    > QtWM68bgqtl/p1kcjQq0yAsTVTniGsOynpfTvZjsi4Y4hDCC9ktf8HP7aqu+Tb Nn
    > ehVYbG8zM8muUfiAEMTfjm7X07DK5uTTduNnnCbysnvNcCdRlu SEinfZsDRiihEt
    > gdoYFRYicy3SrJTL769TlzlKd3LU8ICqy8fnHLVeJjPanWxRCQ ISFUuhb5NI1h8Q
    > unVZAzHzcpJCidMLm/cOpCVbyPeaTeG3HbQzNOqwKyd4FFfHvzIBh0JVzO2uCScf
    > nvoosfhMydAkj0sgWXvH
    > =AVMR
    > -----END PGP SIGNATURE-----
    hkalyoncu
    hkalyoncu's Profile: http://forums.novell.com/member.php?userid=63527
    View this thread: http://forums.novell.com/showthread.php?t=445597

  • There is no 64 bit TWAIN plug-in for Photoshop CS5?

    I have downloaded the PSCS5OptionalPlugins_Mac_en_US dmg and opened up the "Optional Plug-Ins" and there is no TWAIN driver for 32_64bit.
    My Epson Perfection 4990 Photo works fine stand alone. I installed an upgrade for it (the driver) so I have the latest and it is suppose to work with 32 or 64 bit. Photoshop CS5 does not recognize the 32bit_only version downloaded plug-in when I copy it into the Plug-Ins/Import-Export folder.
    So how can I get my Epson to be recognized in Photoshop CS5 under File -> Import.? I did have it working in CS4 but CS5 needs a 64bit version and I don't see how to get that and I'm stuck. Would buying Silverfast bridge this problem?
      Dave

    BuckyThreadkilller wrote:
    To have this option simply eliminated doesn't make Ps easier to use for those who scan this way.
    Just to be clear, this option has not been eliminated in Photoshop; you can still scan directly in Photoshop within the constraints I've mentioned elsewhere recently, but will post again:
    (1) You need to install the optional TWAIN plugin, which you can download from the Adobe web site. This plugin is not installed by default. Make sure you have the correct TWAIN plugin, the TWAIN plugin from CS4 will not work in Photoshop CS5, and vice versa.
    (2) In Photoshop CS5, you can scan in 64-bit mode if you are running Snow Leopard (10.6.x), and the scanner manufacturer has released a 64-bit compatible TWAIN driver. So far, most TWAIN drivers are not 64-bit compatible (the only ones I know of are for more recent Canon scanners.) Check the scanner manufacturer's web site for the latest information. You can launch Photoshop in 32-bit mode to use a TWAIN driver that is not 64-bit compatible.

  • Using aggregates in AGO function

    Hello!
    I want to use AGO function that would use aggregates.
    Requirements:
    I want to be able to make year-to-year comparision, where I compare period based on specific dates
    This same year-to-year comparision I want to speed up using aggregated fact tables grouped on months level.
    I created aggregated SALES table and aggregated time table (group by month) and it works OK with normal queries. It uses aggregated tables when apropriate (possible)
    When I use AGO function it always goes to fact table, which time dimension is at lowest level (i.e. date). How can I force BI server to use monthly aggregated tables in AGO function?
    Any tip, workaround?
    BI server 10.1.3.2.1
    Thank you,
    Gorazd
    Message was edited by:
    gor
    Message was edited by:
    gor

    I tested it and in case of AGO function it goes to detailed fact table SALES instead on agg_sales. Any tips?
    Gorazd
    Message was edited by:
    gor

  • Is there an "Out of Range" Function in LabVIEW?

    Howdy,
    My issue is I have an input value that is compared to an upper and lower limit. If the input is within the range I want the program to do nothing. If the input is below the lower value I need to send a "TRUE" signal to a relay. If the input is above the upper value I need to send a "FALSE" signal to the relay. Does anyone have a clever way of getting this to work?
    Attached is a example of what I'm trying to do for your veiwing pleasure.
    Thanks
    Attachments:
    LimitsExample.vi ‏57 KB

    I would just use a couple of Select functions with the results being based on the comparison to the upper limit and lower limit.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Range Check.png ‏12 KB

Maybe you are looking for