Is there a limitation ?

Hi,
Using the following query I got some strange error. Using max 5 queries everything works fine but adding more than 5 queries the sql stops to work and returns nothing at all.
WORKS:
select TWITTER_FILTER_NAME, DateAdd(minute,-2,System.TimeStamp) AS TWITTER_INTIME,System.TimeStamp AS TWITTER_OUTTIME,count(*) as TWITTER_NUMBER_POSTS from (
    SELECT 'ZURN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]ZURN%'
    union
    SELECT 'GIVN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]GIVN%'
    union
    SELECT 'SYNN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]SYNN%'
    union
    SELECT 'UHR' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]UHR%'
    union
    SELECT 'NOVN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]NOVN%'
    ) x
GROUP BY TumblingWindow(minute,2),TWITTER_FILTER_NAME
DOESNT WORK:
select TWITTER_FILTER_NAME, DateAdd(minute,-2,System.TimeStamp) AS TWITTER_INTIME,System.TimeStamp AS TWITTER_OUTTIME,count(*) as TWITTER_NUMBER_POSTS from (
    SELECT 'ZURN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]ZURN%'
    union
    SELECT 'GIVN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]GIVN%'
    union
    SELECT 'SYNN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]SYNN%'
    union
    SELECT 'UHR' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]UHR%'
    union
    SELECT 'NOVN' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]NOVN%'
    union
    SELECT 'NOVN2' as TWITTER_FILTER_NAME FROM twitterhubanalytics2 where text like '%[$]NOVN2%'   
     ) x
GROUP BY TumblingWindow(minute,2),TWITTER_FILTER_NAME
Any preview limitation ??
Markus
Markus Christen IT-Architect Microsoft Brasil http://blogs.technet.com/b/markuschristen/

I just wanted to mention that there is a much more efficient way to issue this query that will also skirt this limitation: use CASE rather than UNION:
SELECT
CASE
WHEN text like '%[$]ZURN%' THEN 'ZURN'
WHEN text like '%[$]GIVN%' THEN 'GIVN'
WHEN text like '%[$]SYNN%' THEN 'SYNN'
WHEN text like '%[$]UHR%' THEN 'UHR'
WHEN text like '%[$]NOVN2%' THEN 'NOVN2'
WHEN text like '%[$]NOVN%' THEN 'NOVN'
ELSE 'None'
END as TWITTER_FILTER_NAME
This query will run much faster. 
Thanks,
--Lev

Similar Messages

  • Is there any limitation of memory uses for apps in iPad2 or iPad3 ?

    Hi,
       Is there any limitation of memory uses for apps in ipad2 or ipad3 .For example an application can use 10% or 20% of available memory , is there anything like that or the apps can use the total available memory or like 90% of it ?
    I want to know about the memory distribution to the apps in ios .
    Would anyone suggest a right way ?
    Thanks

    iOS manages all memory. You should test your app in Instruments to be sure it is playing nice.
    See Advanced Memory Management Programming Guide

  • Is there any limitation of devices for purchased content?

    Hi there,
    Is there any limitation of devices i can download content i purchased on itunes store?
    For example if i bought a movie or and album, to how many devices maximum i can download this movie (of course with the same APPLE ID)
    Thank you in advance

    iOS manages all memory. You should test your app in Instruments to be sure it is playing nice.
    See Advanced Memory Management Programming Guide

  • Is there any limitation

    Is there any limitation to number of parameters to be passed to a procedure (when submitted using htp post )
    Thanks,
    NPR

    I believe Oracle has a imit of like 32k parameters, but there shouldn't be anything beyond that imposed by the way you're calling the procedure.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Is there a limitation of characters in a String variable in 8.0.2?

    Is there a limitation of characters in a String variable?
    I'm trying to create an email within my script and when I paste my text into my parameter, which is a String variable, it will only paste up to 80 characters (including spaces).
    In 7.0 I was able to paste my paragraphs and the larges paragraph had 346 characters (including spaces).
    Thanks,
    Debbie

    Greg,
    Ah.... that's it. 
    I modified the value of the parameter within the script and added the text that I needed. I added the following:
    "To transfer the file over to the router's flash you will need an TFTP or FTP program.  Start your application and make sure that the default directory is pointed to the directory where you copied the greeting.  Now log into the router that needs to be updated.  Once you are in the router issue one of these commands:"
    It accepted it and was able to use the entire value.  So it must be the web page that will not allow me to enter more then 40 characters.
    Do I need to get this submitted as a bug?
    Thank you,
    Debbie

  • Is there any limitation on field size that can be defined in Idoc segments

    Hi all,
    I have extended a standard Idoc type and in my extended segment I have defined four fields GUID (char32), info1 (char255) , info2(char255) , info3(char255).
    This is a total of 797 bits which is well within EDIDD-sdata(char1000). But I am not able to put more than 132 characters in either info1, 2 or 3.
    Is there any limitation on this ?
    Regards
    Priyanka

    Hi Priyanka,
    I personally feel this error is not due to limitations but it might be due to the IDOC extension you had made and hence the default settings.
    Could you please try doing this -
    Note: Users require an authorization in order to carry out the procedure.
    The following correction is carried out with a fictitious attribute: 'info'.
    a) Call Transaction SE11.
    b) Enter the attribute name into the 'Domain' field, followed by '' (wildcard). For example: info
    c) The system displays the following hit list:
    info1
    info2
    info3
    d) Select the first domain and choose 'Change'
    e) Correct the number of characters. Forexample:
    Numberof characters   255
    f) Activate this domain
    Assign points in case this helps.
    Rgds
    Sum

  • Is there any limitations to the maximum number of dimensions in MP?

    hi all
    Is there any limitations to the maximum number of dimensions can be created in Multi provider. If so how what is the maximum number of dimensions that can be created in a multi provider?
    regds
    haritha

    Hi,
    Maximum number of dimensions 16. Out of 16, 3 are system defined
    1.Datapacket
    2.Time
    3.Unit
    It is restricted to 16 because the maximum no of dimensions in any database is 16.
    Reward points if helpful
    Cheers
    Raj

  • Is there any limitation of nested select.

    Is there any limitation of nested select.If yes please let me know.

    Hi,
    There are no practical limits to nested SELECTs, but as other repliers have already pointed out they quickly become a performance hog. I have stopped using them for years, and when I teach ABAP performance classes I also quote them as one of the top "don'ts". With nested selects, the number of calls to the DBMS can easily become enormous, putting the database server under stress.
    A good alternative - the one I favour most myself - is to use SELECT INTO TABLE for the"outer" select, followed by appropriate SELECT FOR ALL ENTRIES statements to handle the inner levels.
    ABAP joins are another alternative. When properly written, a join will be faster than a nested select. The problem is however that very often joins are not properly written. SELECT statements should always respect the KISS principle (keep it simple, stupid) and with a join it is very easy to violate that rule. A join over 2 tables should probably be OK, but with 3 or more tables you want to be very careful. If you really want to code a complex join, I recommend that you also code the same logic with different means (INTO TABLE/FOR ALL ENTRIES or even nested selects) and then compare that with the join. By the way: don't just compare the performance, also make sure that the two return the same data. You wouldn't be the first to code a really fast join which unfortunately returns incorrect results.

  • Are there any limitations in the Student Edition

    Hi,
    I just purchased the Student Adobe Creative Cloud. Are there any limitations? Also, can I put this on both of my personal computers, or just one? Thanks!

    Hi Anuj,
    You can install the application on 2 machines with 1 license.
    Regards,
    Sheena

  • Alert Rules vs Alert Category - Is there any limitations for multiple rules

    I have an alert configuration implemented already and i want to add few more rules for the same alert category.  While creating the rules for new set of scenarios, I am able to create only one rule . Is there any limitations for having the rules per category ?

    Hi,
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    There is no limitation of creating alert rule for a particular alert category.
    Check out the steps of Alert rule configuration.
    Creating Alert Rules
    To create an alert rule in which you use a defined alert category, proceed as follows:
           1.      Give the rule a name (Description).
           2.      Select the alert category that you want to use by clicking the corresponding category in the alert category table.
           3.      If necessary, specify conditions for the sender or receiver, or both.
    ○       If your rule results in alerts that must be assigned to a specific message, select the option Yes for the Bound to Message condition.
    ○       If your rule results in alerts that are not assigned to a message, that is, they are caused by errors that occurred before the message was sent, select the option No for the Bound to Message condition.
    In this case you cannot enter any further details about the sender or receiver.
    ○       If the rule is to cover both cases, select the Not Relevant option.
           4.      If required, restrict the errors further to:
    ○       Errors reported from the Integration Engine (with or without error category or error code)
    ○       Errors reported from the Adapter Engine (with or without adapter type)
    You can enter an asterisk (*) in steps 3 and 4. You can enter just the asterisk, or enter it at the start, end, or start and end of a string.
           5.      To add the new rule to the list of alert rules, choose Add Rule.
    If the Rule Activated check box is selected (default setting), the rule is automatically activated when you add it and is displayed as active.
    If the Suppress Multiple Alerts of This Rule checkbox is selected (default setting), then no further alerts are generated once the rule has been met until the first alert has been confirmed.
    Once you have created a rule, it is automatically displayed in the list of alert rules. If you want to display the conditions of a rule, select a rule in the list and choose Show Conditions.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward point if helpful

  • Is there any limitation to render smx tcode in portal

    hey is there any limitation to render smx tcode in portal . as a transaction iview.

    How about searching Arch wiki?
    http://wiki.archlinux.org/index.php/KDE#Fonts
    http://wiki.archlinux.org/index.php/Fonts

  • Is there any limitation in xtract structure,while doing enhancement.

    is there any limitation in xtract structure, while doing enhancement.

    Hello Satish
    There is no limitation as such defined by SAP but let me teel you one thing, if your extract structure contains a lot of enhancement than it s better you go for using two extractor and then use Multiprovider for viewing all the data....basically when you enhance structure you customer exits which slower down the performence....
    For example you have 0FI_GL_4 extructure and want to see the payment detail by some SD attributes like sales office divisoion..bla bla bla...if small enhancement is there you can include these field in 0FI_GL_4 extract structure but if it is significant than you should create another extractor for getting SD related data and merge them in BW side in Multiprovider
    Thanks
    Tripple k

  • Flash CS4 - Are there size limitations?

    Hello,
    Are there size limitations on movie clips? I'm trying to create a movie clip that will be masked for scrolling... it needs to be approx. 13,000 px tall, but I can't add anything past 3500 px. Any suggestions?
    Thanks!
    Erin S.

    If your talking about an image that has been coverted to a movie clip symbol in flash, and not an actual movie clip like flv, mov, avi, etc. you could try just breaking it up into 13 pieces of a 1000px (or 26 of 500 etc.) then just add the next image to the stage with a frameEnter event or the like when scrolled to.

  • Are there any limitations for importing Apple Aperture Libraries for Lightroom 5.7 ? What can be the hardware limitation importing large Aperture Libraries like 200 gb ? Or is importing larger Aperture Libraries even possible at the moment for Lightroom 5

    Are there any limitations for importing Apple Aperture Libraries for Lightroom 5.7 ? What can be the hardware limitation for importing large Aperture Libraries like 200 gb ? Or is importing larger Aperture Libraries even possible at the moment to Lightroom 5.7 ?

    dj_paige wrote:
    As far as hardware restrictions, the only one I can think of is that you certainly need enough free space on your hard disk to accomodate the masters from your Aperture library.
    IIn which case, ensure all your masters are "referenced" in Aperture, and that you then go to Options in the Lightroom import box and import photos in their existing locations.

  • PBG4 Ti 1Ghz: Is there a limitation on harddrive size?

    Hi,
    I want to upgrade a PowerBook G4 Titanium 1Ghz. It's the last model before the Alu models came out and has a 60GB 4.200 rpm drive. Is there any limitation on the maximum possible size of the harddrive? Or can I just get the biggest and fastest PATA drive I want? I'm thinking about something like 120GB/7200 or 160GB/5400.
    Thank you
    Björn

    i did some research over at the excellent site xlr8yourmac.com in their drive database and it turns out the titanium machines (at least the 867/1ghz) will support drives larger than 137gb... so there you go!
    also, the 250gb WD drive i mentioned in my prior post is 5400rpm... seems like it would be perfect for your needs. The pricing ive seen on them is usually a little less than $200 US.

  • Are there time limits onstreaming Itunes radio? If so, can it be disabled?

    Are there time limits onstreaming Itunes radio? If so, can it be disabled?

    Unfortunately the Time Capsule is missing the circuitry that the AirPort Express has that processes the AirTunes stream to get it out to your amp. So, whether the Time Capsule or your iMac is hosting the iTunes Library, in order for your amp to be able to use it, you will need the Express.

Maybe you are looking for