Better Substitutes for count(*) - Reg

I have a view which is created from 3 tables.
i want to know the no of selected from the view.
Count (*) is taking a lot of time is there
anyothe option available.
null

Try using index on some attributes. example if the emp table has a index on empno then the query can be modified as
select count(empno) from emp;
this would be faster than
select count(*) from emp;
prem

Similar Messages

  • Looking for a better way to count responses to survey questions

    Hello all - I've created a survey for a site and now want to display the results for the site admins. I am simply trying to display the counts - the number of times a question has been answered a certain way. I realize that I may need to construct the survey itself differently and how it stores the data, but here's how it goes so far.
    There are 10 questions, each with 4 options in radio button groups. The database table has a column for each question and stores the value of the selected radio button. So that's pretty simple.
    Now on the results page this is the only way I can think of doing it, but there has to be a better way. For each response, I create a recordset filtered on the question and option value, then display the total record count. That works just fine, but to count each option, that means 40 recordsets on the page - al to merely determine "How many times was Question 1, Option A selected, and How many times was Question 1, Option B selected, and so on.
    The only other thing I can think of, there perhaps is a better way to count the occurrences of these values in the table either with PHP or in the SQL itself.  Or, perhaps if the values themselves are all numeric and follow some sort of pattern I can use a math solution.
    Any thoughts, solutions and ideas are welcome!  Thanks. 

    THANK YOU!!
    I used this format before actually for an exam in an online training program, and I don't know why I didn't make the connection.
    I also want to connect the responses to the participant, but I think that would even be secondary to the survey itself.
    So just to clarify, if you would, I would have a survey table l like I do now, with each survey generating an ID with each one and perhaps the user info or a column for User ID. Then, the questions table each with an ID to populate the questions, a options table, each with its own ID and linked to the questions that populate the options.
    Finally a responses table that records the Survey ID, Question ID and Option ID with each record.
    In the exam I did before, the questions and responses were in the same table, so I suppose I could make it work that way too. But, now I know why I didn't think of this - unlike the exam where each question was presented one at a time, the survey is on a single page and would require a multiple record insert - which I haven't done as much as single inserts, so it didn't pop into the head.
    L

  • Is Airport a substitute for software firewall?

    I have a Windows PC behind my Airport network. Is my Airport's NAT (or the NAT of any router for that matter) a substitute for software firewall?
    As I understand it, the only thing software firewalls do is block un-used ports, which Airport's NAT already does (since by default it doesn't forward any port except 80 and few other necessary ports to the IPs behind its NAT), and therefore there's no way for hackers to get to them. Please correct me if I'm wrong.
    It'd also be nice to know what ports Airport permit traffics... and how it knows which IP to forward the traffic too (does it act kind of like a proxy?).
    Thanks

    Yi,
    Below is an article that discusses hardware and software firewalls. I hope it helps. The original article can be found here.
    Firewall Debate: Hardware vs. Software
    By Ronald Pacchiano
    November 4, 2003
    I'm about to get my first broadband connection, and I know I need to get a firewall. However, I've been getting some conflicting advice as to what type of firewall I need. Some people tell me I should get a hardware firewall, while others tell me a software firewall is preferred. What's the difference, and more importantly, which is better?
    Good question. The truth is that in a typical home office environment, one type of firewall isn't necessarily better than the other. They are some differences, though, and they can be used together to give you an even greater degree of protection.
    Hardware firewalls are important because they provide a strong degree of protection from most forms of attack coming from the outside world. Additionally, in most cases, they can be effective with little or no configuration, and they can protect every machine on a local network.
    A hardware firewall in a typical broadband router employs a technique called packet filtering, which examines the header of a packet to determine its source and destination addresses. This information is compared to a set of predefined and/or user-created rules that determine whether the packet is to be forwarded or dropped. A more advanced technique called Stateful Packet Inspection (SPI), looks at additional characteristics such as a packet's actual origin (i.e. did it come from the Internet or from the local network) and whether incoming traffic is a response to existing outgoing connections, like a request for a Web page.
    But most hardware residential firewalls have an Achilles' heel in that they typically treat any kind of traffic traveling from the local network out to the Internet as safe, which can sometimes be a problem.
    Consider this scenario: What would happen if you received an e-mail message or visited a website that contained a concealed program? Let's say this program was designed to install itself on your machine and then surreptitiously communicate with someone via the Internet — a distributed denial of service (DDoS) attack zombie or a keystroke logger, for example? And trust me, this is by no means an unlikely scenario.
    To most broadband hardware firewalls, the traffic generated by such programs would appear legitimate since it originated inside your network and would most likely be let through. This malevolent traffic might be blocked if the hardware firewall was configured to block outgoing traffic on the specific Transmission Control Protocol/Internet Protocol (TCP/IP) port(s) the program was using, but given that there are over 65,000 possible ports and there's no way to know which ports a program of this nature might use, the odds of the right ones being blocked are slim.
    Moreover, blocking too many ports would almost certainly adversely affect your ability to use some programs (many games, for instance). Also, some broadband router firewalls don't even provide the ability to restrict outgoing traffic, only incoming traffic.
    Advantages of Software Firewalls
    Now consider what a software firewall might do in the aforementioned scenario. When you first set up a software firewall, you can specify which applications are allowed to communicate over the Internet from that PC. Programs that aren't explicitly allowed to do so are either blocked or else the user is prompted for confirmation before the traffic is allowed to pass. Therefore, it would likely intercept this kind of traffic before it left your computer.
    Another potential scenario where a software firewall would be useful is in the case of an e-mail worm with its own e-mail sever, like the recent "SoBig" worm. Its built-in mail server could attempt to send mail on the valid Simple Mail Transfer Protocol (SMTP) port (25), which would probably pass through the router because of its trusted origin.
    On the other hand, a software firewall could be configured to only allow Microsoft Outlook to use port 25 (assuming Outlook is your e-mail client). Any attempt by another application to use the port would be dropped, or blocked pending user confirmation. For that matter, the application's attempt to use any port would be blocked if the firewall was configured that way.
    By comparison, a hardware firewall that had the ability to filter outgoing traffic might allow you to block most kinds of traffic from a particular PC, but it wouldn't be able to flag you and alert you to repeated attempts to infiltrate your computer.
    One obvious downside to software firewalls is that they can only protect the machine they're installed on, so if you have multiple computers (which many small offices do), you need to buy, install, and configure a software firewall separately on each machine. This can get expensive and can be difficult to manage if you have a lot of computers.
    But the fact of the matter is that software firewalls generally offer the best measure of protection against certain types of situations like Trojan programs or e-mail worms. Speaking of which, a firewall isn't the only protection method available to you. Whether you end up using a software firewall or a hardware firewall, you should always supplement it with anti-virus software.
    A good anti-virus package is just as important as a firewall, and I would seriously suggest that you invest in a good one (I'm partial to both Norton and McAfee myself). However, keeping your virus definitions updated is far more important than which program you use. I cannot stress the importance of this enough. Making sure your definitions are current is absolutely critical to maintaining your protection. Many Anti-virus programs today can be configured to automatically update themselves, so you have no excuse for not maintaining them.
    The bottom line is that with any home-office broadband connection, a hardware firewall should be considered a bare minimum, and supplementing it with a software firewall on one or more computers (and don't forget anti-virus software) is almost always a good idea.

  • Is there a method for counting words?

    Hi!
    Is there a method for counting words?
    How do I read specific data ( row, column ) out of an array?
    Thx
    Lebite

    There's could be a better way, but this is how I would do it:
            String[][] myArray = { {"Blah Blah Blah"},
                                   {"Blah Blah Blah"},
                                   {"Blah Blah Blah"} };
            int tokens = 0;
            for(int i = 0; i < myArray.length; i++)
                for(int j = 0; j < myArray.length; j++)
    StringTokenizer st = new StringTokenizer(myArray[i][j]);
    tokens += st.countTokens();
    System.out.println(tokens);

  • Totals for Count Distinct

    I need to display totals for Count Distinct measures. I want to display these above a table view.
    We have done this before by creating hidden columns with level-based measures for totals and then displaying the first row of these hidden columns in a narrative view above the table. We have also used MAX(RSUM()) within requests, sometimes.
    These solutions won't work, because I need Count Distinct() measures (so simple sums and counts will give inaccurate results) and I may navigate to the request with filters at different levels (so LBMs won't work, either).
    The only solution I can think of is to have LBMs for each level and have duplicate dashboards that differ only in which variation of this request with which level's LBMs are displayed for the totals. That seems like too much of a kluge. There should be a simpler, better way to do this.

    I was trying to reproduce your issue with "Sample Sales" - but can't figure out which columns you'd like to see. Can you please post couple columns - and which count distinct you need? That would make it easier to reproduce the issue.
    I was thinking that it might be difficult to pull it in 1 report (since you can't completely exclude columns in table view). I have two suggestions:
    a) did you try to create a separate report and combine it with existing one (same Dashboard page)?
    b) did you try Pivot Table and its calculated column feature? I've had some success with it when I needed to combine measures at different levels on the same report (i needed to see daily totals for 3 specific days, monthly values for specific months, and couple annual totals). This way you could have it on the same report.
    I just tried A. And it worked (again, not sure if this is applicable to your situation). I used "Server Complex Aggregate" in column options. The formula is showing: SELECT "D5 Employee"."E01 Employee Name" saw_0, COUNT(DISTINCT "D1 Customer"."C1 Cust Name") saw_1 FROM "Sample Sales" ORDER BY saw_0
    Edited by: wildmight on Oct 30, 2009 9:35 AM

  • Is there a substitute for windows flash software?

    Is there an Apple Substitute for flash software?

    No Flash for iPads, iPhones, or iPods
    Here's why there's is no Flash available for iDevices or other mobile devices. Adobe was unable to provide a product that was suitable to the needs of battery powered mobile devices used for Internet browsing. Existing Flash technology used too much memory, ate battery life, and was buggy. Simply put Flash did not work well on mobile devices.
    Apple's Steve Jobs led the escape from Flash dependency when Apple introduced the iPhone, and later introduced the iPad. There was a hue and cry over the omission. Time proved Jobs was right on target.
    So this is why there is no Flash for your iPhone or iPad or iPod nor for most SmartPhones. Flash has been abandoned by many sites in favor of supported technologies such as HTML5 or by providing their own custom app.
    Here is Steve Jobs official comment on his momentous decision to omit Flash from iDevices: Steve Jobs on Flash.
    Here is Adobe's later announcement to cease development of Flash for mobile devices: Adobe on Mobile Flash.
    Now, you are not necessarily out on a limb. There are some apps that can display some Flash, but don't count on there ability to display anything using Flash.
    Apps that can display some Flash from the Web:
    Puffin
    SkyFire
    Photon Flash
    Browse2Go
    iSwifter
    Also, note that many sites that use Flash provide their own app for accessing their material. So check with your favorite sites and find out if "there's an app for that."

  • Keyboard with large bright characters could be cheap substitute for backlit keyboard

    A non-backlit keyboard with large, high-contrast characters could be a cheap substitute for a backlit keyboard. Most Chromebooks have tiny characters with less than maximum contrast. It would cost no more to give them legible keyboards that could be used in poor light. The first image shows a Chromebook keyboard (not an Acer) compared with the same with large-letter stickers applied. After I applied the stickers, I could type 40% faster in good light and twice as fast in poor light. (Note: I have average vision.)                        Next is the Acer C720 Chromebook keyboard. It has better contrast and slightly larger characters than most of the new inexpensive Chromebooks, but it's still difficult to type on in poor light.             A keyboard made with the design below would be clear enough to be used in a dark room by the light from the screen.   

    That's a REALLY good reason, bigbear.  I get it, and thanks for explaining.  I certainly was not trying to imply that there is some kind of 'issue' with adding a more visible keyboard.  It is certainly NOT a violation of anything to plug in an external keyboard.  That is probably the best solution that you have available at this time.  But if you are suggesting replacing the internal keyboard on your laptop with a 3rd party keyboard, that could become a problem.  First, as you described, it is not a task for the faint of heart.  You'd have to find a keyboard that FITS in your laptop, and they are certainly not all the same.  And as you also describe, the disassembly and reassembly process for a laptop can be quite complex.  If you cause damage in the process, that would NOT be covered by your warranty.  We call that 'Customer Induced Damage' and it just isn't covered.  It's an 'at your own risk' situation.  Adding stickers to the key caps is also not a problem for your warranty, unless of course the attempted removal of the stickers causes you to pop some of the keys off and you can't get them re-attached.  That again is considered CID.
    Having said all that, as I indicated earlier in this thread, the idea for bigger, better marked key labels has been submitted to our design team for consideration.  MY vision certainly isn't perfect either, so I do understand where you are coming from.  Thanks for raising the issue again.

  • Substitute for filters in SAP BusinessObjects Dashboards

    Dear all,
    I am working on a dashboard application built on SAP Business Objects Dashboards 4.1.
    When I deployed the application to an iPad, I realized that the filters present in the application are not supported by iPad.
    Thus, is there any mobile-compatible component in SAP BO Dashboards which I can use in place of filrters for filtering the result during runtime?
    Any help is highly appreciated.
    Thanks And Regards,
    Nalin Dwivedi

    In combo box, all I can do is select some values from one or more rows or cells in the excel and paste it to some other destination within excel. But my whole dashboard is query-based i.e. I have created query and my charts are getting the data directly from database during runtime. Thus, the query prompt selectors I have used are directly manipulating the data coming from the database.
    Since query prompt selector are not supported in mobile mode, I need a substitute for it.
    Combo box is not able to help till now because the values of combo box can not manipulate the data coming from database. Moreover, I am not sure if I have used the combo box properly.
    If there is any way by which it can be done with using mobile-compatible components, then please suggest me about it.
    Thanks in advance.
    Regards,
    Nalin

  • Updated | BlackBerry Beta Zone for BlackBerry 10 | v10.0.0.22

    Load your BlackBerry 10 Beta applications through our brand new native app.
    Available Features:
    • Create a Beta Zone profile (for new users)
    • Automatically links your BlackBerry ID to your Beta Zone profile (for existing users)
    • Join new beta programs and download beta applications right from the app!
    In order to use this application to access BlackBerry Beta Zone, you must be a registered member of BlackBerry Beta Zone. If you are not currently a member, you will be prompted to enroll for a Beta Zone user account.
    New features in this version include:
    Feedback Form: submit your bug reports and feature suggestions right from the app
    Device info capture: keeping your Beta Zone profile up-to-date has never been easier! Includes handset model, PIN and OS version.
    UI and performance improvements
    Please note that the old version of the app will be disabled on October 10th, so do grab this update as soon as you can.
    Download BlackBerry Beta Zone for BlackBerry 10
    VIA | Blackberry World
    http://appworld.blackberry.com/webstore/content/35142896
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

    You cannot downgrade.
    You can reset your phone to factory settings if you wish to see if it corrects your issue. Resetting to factory settings will wipe out all your data so you should save it first. To save all your stuff download and install BlackBerry Link on your computer from the link below. Resetting will not back-up the OS on your phone. Once you have downloaded and installed BlackBerry Link connect your phone to your computer and save your stuff. Once saved disconnect your phone from the computer.
    To reset your phone: tap the Settings App, scroll down and tap Security and Privacy, tap Security Wipe, tap the blank box and enter blackberry.
    Once Wiped reconnect your phone to your computer and install your stuff.
    http://us.blackberry.com/software/desktop/blackberry-link.html
    http://ca.blackberry.com/software/desktop/blackberry-link.html?LID=ca:bb:software:desktopsoftwarec&L...

  • How to create a substitute for requester in SRM 7.0

    Hi,
    do you know how to create a substitute for requester?
    we have groups of 2 people and we want that they can see and edit shopping carts one of each other. Do you know how is it possible? it will be necessary for all SCs.
    Thanks.
    Regards,
    Nelson

    You can use the "Team Cart" feature introduced in SRM 7 for your requirement.
    Take a look at this wiki page for more information http://wiki.sdn.sap.com/wiki/display/SRM/Team+purchasing
    Edited by: Jay Yang on Mar 31, 2011 10:47 AM

  • Beta drivers for Audigy2

    Well, the title says what I'm looking for, but here's my problem:
    I had installed Quake4, and was playing fine. After I had finished the game, I went to update my drivers (finally,) and noticed that I was running my NX on generic windows drivers. I updated all the drivers, mediasource, etc... (along with some other housekeeping updates,) and I now can no longer open the game.
    I've already eliminated the video card update as the problem, and I honestly don't know of a way to eliminate a bios update issue, however, I HIGHLY doubt that is the culprit. After some discussions in the quake disc. boards, I sence that there is a problem with the creative drivers. I have been told that most people are getting success by using the latest beta drivers, and I was linked to a file called "SBA2_PCDrvBeta_LB_2_08_0002.exe" However, when I try to run that file, I'm told that "Setup is unable to detect a supported device on your system..." As the title says Audigy2/ZS, Audigy 4, I'm thinking these are the wrong beta drivers for my device, but I can't find beta drivers for the Audigy2 NX USB
    Help? Thanks...

    I have tried re-installing, that isn't working. I'm also hearing that people are having success when installing the OpenAL libs....
    I've been trying to get this file: http://developer.creative.com/articl...&top=38&aid=46 however, whenever I try to d/l the file I time-out to a "page unavail." error... Is there some server error at creative? ...or, does anyone know of a mirror server?
    The file I'm looking for is: OpenALwEAX.exe
    Message Edited by Toker on -02-2005 0:45 PM

  • Port Forwarding for Counter Strike Server - DSL Modem to Linksys Router then to my Laptop (wifi)

    Hi,
    i have read many posts here but did not find any solution. Below is my current situation.
    Objective: I want to create a Counter Strike 1.6 Server and for that i have to forward port 27015.
    Networking Issues: Im currently using a Shiro (Dsl Modem) which is given by my ISP & i have connected my DSL modem to my Linksys WRT54G (ver 7.2) router. I connect my laptop thorugh wifi to router.
     I know basic port forwarding but that does not help me. I need a complete tutorial on this issue coz i dont have much network knowledge.
    waiting for reply
    thank you

    Try this link to forward port for Counter Strike on the router.

  • How can I get a better driver for my 1394b Hostcontroller in my Macbook pro 2010 to solve the problem, that it is too slow under Windows 7 installed with bootcamp ?

    How can I get a better driver for my 1394b Hostcontroller in my Macbook pro 2010 to solve the problem, that it is too slow under Windows 7 installed with bootcamp ?
    WIndows can't find a better one than the installed LSI Conformed 1394 Hostcontroller

    Read and follow the Bootcamp Installation instructions that you were offered to view when you ran Bootcamp Assistant.
    Run Bootcamp Assistant again and select the option to download the Bootcamp Support software. Follow the instructions. Then boot into Windows and install the Windows Support software you downloaded and saved.

  • Beta driver for X-Fi (SBXF_W7DRVBETA_US_2_18_0008) users feedback thread

    <div class="DownloadDate">Release date : 28 Jan 09<div class="DownloadShortDesc">This?download is a beta?driver providing Microsoft? Windows?7?Beta support for Creative Sound Blaster? X-Fi?series of audio devices. For more details, read the rest of this web release note.<div class="DownloadDetailDesc"><div class="DownloadFileName">File Name : SBXF_W7DRVBETA_US_2_8_0008.exe<div class="DownloadText">This?download is a beta?driver providing Microsoft? Windows?7?Beta support for Creative Sound Blaster? X-Fi?series of audio devices. For more details, read the rest of this web release note.
    Take note of the following:
    THIS IS AN UNSUPPORTED BETA DRIVER. There is no technical support for this driver.<
    We recommend that only experienced users install this driver. Do not install this driver on a system used to perform critical tasks.<
    Users who are looking for stable drivers should wait for the final release. When this happens, user should install the latest Sound Blaster X-Fi?series?driver available.<
    This download supports the following audio devices only:
    Sound Blaster X-Fi XtremeMusic<
    Sound Blaster X-Fi XtremeGamer?Fatalty? Professional Series<
    Sound Blaster X-Fi XtremeGamer<
    Sound Blaster X-Fi Platinum?Fatalty Champion Series?<
    Sound Blaster X-Fi Platinum<
    Sound Blaster X-Fi Fatalty<
    Sound Blaster X-Fi Elite Pro<
    Sound Blaster X-Fi<
    Requirements:
    Microsoft Windows?7 Beta<
    Creative Sound Blaster X-Fi?series audio devices listed above<
    Notes:
    To install this?driver
    Download the?.exe file onto your local hard disk.<
    Double-click?the?downloaded file.<
    Follow the instructions on the screen.<
    <?
    http://support.creative.com/download...verType=#type_
    Does anyone have any experiences installing this over Sound Blaster X-Fi series Support Pack .0

    0Re: New driver? SBXF_W7DRVBETA_US_2_8_0008.exep
    gazzamcg wrote:
    robertmc8 wrote:
    Does CMSS work with this new driver? I don't have win 7 on my computer anymore hehe. Does support 8channel Ditigal out? Just wondering last time it was only 2channel support when I look at it. I can't go back windows 7 I'm going send my Visiontek 2600 Pro AGP 52 card in for replacement since x700pro doesn't support win7Message Edited by robertmc8 on 0-28-2009 03:5 PM
    Yes, CMSS work's with this beta. I don't know if the 7. digital out works ....
    The sound is excellent !
    kpo6969, why would you wan't to install over existing drivers ?
    Better to uninstall existing drivers first, then install the beta's as this?should avoid any conflicts.
    - - - - - - - - - Yellow matter custard, dripping from a dead dog's eye. Crabalocker fishwife, pornographic priestess,Boy, you been a naughty girl you let your knickers down. I am the eggman, they are the eggmen. I am the walrus, goo goo g'joob ?- - - - - - - - - - - - -
    Message Edited by gazzamcg on 0-28-2009 0:26 PM
    Ok sorry my mistake misspell digital word blame on my speach issue when I was growing up as a kid lol.
    Anyway Can u check digital In l in for me thanks Last time I check it only support 2channal I don't want formated back to windows 7 I can't anyway to I get my HD 2600pro card back going send in get fix so that mean I be on my x700pro card for next couple weeks.
    I won't do driver mod yet to I know whats it's doing later on hehe.

  • I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to insta

    I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to install it on 2 different computers. PS they are both PC computers.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • Vendor Trial Balance for a Profit Center

    Hi We are on ECC 6.0 and created plants as a profit center. Now, need to develop a custom report for getting vendor trial balance for a profit center. The standard report FK10N does not provide the balance for a profit center. However, while pulling

  • In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

    In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

  • Max size iphoto library

    Hi, is there a maximum size for an iPhoto library file? Mine is 150 GB at the moment and I wonder if I can keep feeding it :-) Thanks, MrsLaubie

  • Reacreate the SE16 Data Browser

    Hi everyone, I was trying to implement the SE16 Data Browser at my localhost with the NW04s SneakPreviw. But unfortunately, I found out an error that I am not able to solve. Can anyone help me? I'm stucked. Here follows: Web Dynpro Comp. / Intf. Z_SE

  • Cannot read the html files

    I cannot seem to make JavaHelp find my HTML files, although it has found my Map and XML files. The structure is as follows: - the XML files are in myclasspath/doc/onlinehelp - the HTML files are in myclasspath/doc/onlinehelp/html How should I referen