Options other than query joins?
I have a table column called "Inc." - each cell has one of 3 values: null, 1, or 2. I would like to know two things: 1 s, how many, and how 1s + 2s exist, so I can find the percentage of 1 s compared to total (1s + 2s, ignoring null values).I have a main request, which gets other data so I created a query1 for the 1s in INC. and joined 2 queries for a revised request, i created a query to get the s 2 then I got that attached to the revised request, creating a final query (for a total of 5 queries).
I could do it in a simpler way using 'CASE' or subqueries (I tried these but I hope they have bombed positions because I have bad)
Here's my faulty code - even if it doesn't work, I think it clarifies what I'm trying to do.
SELECT AVG (INC_AMT) AS AvgIncentive,
Count (Units) AS TotalBldgs,
Turnover of AVG(Turn/Units) AS,
AVG (DAYS_VAC) AS DaysVac,
AVG (RENT_INC) AS ProjRentIncr,
Max (VACY_DATE) AS MaxDate,
SurveyGroup,
Count (SELECT CASE WHEN INC = '1', THEN '1' END AS BldgsWithIncent), (BldgsWithIncent)
Count (SELECT CASE WHEN INC = '1', THEN '1' END AS BldgsWithOutIncent) (BldgsWithOutIncent)
OF tblOne
WHERE SurveyGroup IS NOT NULL
SurveyGroup GROUP
ORDER BY Max (VACY_DATE) CSA
Thank you
Mike
Select num1, num1and2, num1/total * 100 percentage
of (num1 count (inc) select)
FROM table1
where Inc. = 1),
(select count (inc) num1and2
FROM table1
where Inc. is not null) b.
(select count (inc) total)
FROM table1) c
Tags: ColdFusion
Similar Questions
-
After careful consideration, today I decided to join Adobe Photoshop CC only to find out that it is not available to me that my laptop has Windows Vista. What are my options other than having to buy a new computer or an older version like Ps5 or 6?
1 can't read on a Windows "upgrade version" which, in my experience, does NOT require you to format your drive... updated on what you have, without disturbing programs installed... at least that's what happened the ONLY time wherever I installed an upgrade version, so I can't give a 100% guarantee that it will work with your computer in this way... search link for all the things Microsoft http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US
2 - depending on the hardware you have, you may not be able to run programs CC well, or not at all
3 CS6 is 3 years and is the ONLY non - CC version always sold... unless you can find a "legal" somewhere CS5
Old or used software http://www.emsps.com/oldtools/
http://forums.Adobe.com/message/1636890 warns of a purchase on eBay
-
My laptop does not start at the top. It indicates that the following file is missing or damaged WINDOWS\SYSTEM32\CONFIG\SYSTEM.
Download this file from the Microsoft Web site. I put the XP CD in and it starts downloading files but it asks what windows installation I want to and don't gives me one option other than press "Enter" to abandon.
See if anything here helps-
How to recover a corrupted registry that prevents Windows XP startup
http://support.Microsoft.com/kb/307545Install and use the Recovery Console in Windows XP
http://support.Microsoft.com/kb/307654See also
How to Troubleshoot Registry Corruption issues
http://support.Microsoft.com/kb/822705How to fix a missing or corrupt Windows\System32\Config\System file
http://xphelpandsupport.MVPs.org/how_do_i_repair_a_missing_or_cor1.htmTaurArian [MVP] 2005-2010 - Update Services
-
Cannot load or remove programs without administrative rights. Help!
A Microsoft Supported forum, the best advice that you can get here are covered in the following article:
"Microsoft's strategy concerning lost or forgotten passwords"
<>http://support.Microsoft.com/kb/189126 >Despite its title, it contains pointers to useful techniques to treat your password.
In the end, however, the answer to your question is likely: Yes, you have options, but no, you won't find them here.
(Security by obscurity)HTH,
JW -
What are some editing apps good free photo for Mac, other than the Photos of Apple?
Hi everyone, I'm looking to see what free apps, you guys use for editing photos? I have a photography class to come and play with options other than the use of pictures of the Apple app. Nothing against the app, I just learn more. Thank you.
Strange question to the users of the forum pictures - of course, the answer is Photos for Mac
Photos is optional and if you don't like it, then, Google is your friend
LN
-
How to get other options of voice other than Sam in speech recognition?
Original title: speech synthesisI was wondering. I have Windows XP Professional and I use text-to-speech, a lot, but I only have Microsoft Sam as my voice option. The strange thing is, I could have sworn when I first implemented this XP I had a selection of voices, but now is only Sam. Anyone know how to get other options?Thank youHello
Unfortunately, you can use audio only Sam in Windows XP, the default design. If you need any other voice other than SAM you can try the search in the Web site, using one of your favorite search engines.
Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
For your reference:
http://support.Microsoft.com/kb/306901
-
As I said in the title, my problem is that I am not able to acess file and Search tab 'Options', ' Task Manager ', 'Run' & browsers other than windows explore.
1. in the case of a tab 'Folder and search options' in the tab to organize, in the Explorer window, the tab appears as the hidden and cannot be clicked. The same"Folder and search options" when I looked in Control Panel, the icon was not seen or available.
2. the same is also the case for the Task Manager. In the click right option on the taskbar displays the"Task manager" tab, but it seems to also be hidden or accessible when I press alt + ctrl + del window shows no option Task Manager or the tab.
3. when I tried to run ' run the command ' the command window does not come and the following message appears.
"Windows cannot find"C:\Windows\System32\cmd.exe". Make sure you typed the name correctly and then try again. »
4. in a similar way when I tried to acess or run the Fireox internet browser, Google chrome and safari browser he showed asimilar message as illustrated tried to reinsall above.i browsers. It is renstalling, but the same error message appears after the reinstalling. butthere was no problem in access of Microsoft Internet Explore.
Windows Internet explore, the homepage has changed automatically and it opens the homepage given below.
http://6-c-c-n-0.-u-.i-k-r-g-1-0-u-5-1-f-3-g-Li-9-p-1-x-t-6-g-l-8-m-q-y-s-k-6-l.info
I am currently using the Microsoft Security Essentials as my Antivirus which is uptodate. Run full scans with antivirus but the scans is not revealed. Also, I'm a windows user who is also updated regularly.
So far, I noticed only these problems that make me very difficult to work. The main problem is that I'm not in a situation to format my laptop. Please help me with these problems.
Hello
Restart in safe mode and run the antivirus scans here. You have symptoms of an infected machine. Scanning in safe mode will reduce efforts of the virus to avoid detection.
To restart in safe mode, restart normally, and when the system resets you can press the F8 key. It is point immediately after the screen logo POST or manufacturer initial of the system, and just before Windows starts to load. This will give you a boot menu where you can choose Safe mode.
While you're here, you must also download and run the tool free malwarebytes here:http://www.malwarebytes.org/ (choose Safe mode with networking to do this). He can catch something that lack of MSE, no security tool is perfect.
Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org
-
Need help for query joining views
Hi all
I need to run a query that joins a number of tables with multiple instances of the same view. For example, a view named MY_VALUES, is an array of key / value resembles the following:
Application_ID Attirbute_Description value
1 1 000 basic benefit
1 multiplier 1 0.5
1 Multiplier_2 1.2
1 total profit 1,115
2 1 025 basic benefit
2 multiplier 1 0,268
2 Multiplier_2 1.3
Total profit 2 1.4500
Say I want a query that selects basic earnings and a multiplier 1 for Application ID 1, as well as, other information from a table called APPLICATION that has a relationship to display pk - fk. I would do the following:
Select the application. Name, mv1.value, mv2.value
from dbo. App APPLICATION, dbo. MY_VALUES mv1, dbo. Mv2 MY_VALUES
where app.id = mv1.application_id and mv1.attribute_description = "Basic benefits"
and app.id = mv2.application and mv2.attribute_description = id 'multiplier 1'.
and app.id = 1
My actual query is similar to this. However, I have many other attributes of the notice I need to select, which requires that the view be attached to several times. After 16 these joins, the request is fine. After 17, however, the query runs always, never return a result within 45 minutes I have let it run.
Is there a better way to write such a request or an indicator of optimization that would be useful here?
Any help is greatly appreciated.
....
For this type of application, it is often best to extract multiple lines in a single request on the view and their pivot in the output.
For example
Select the application. Name
, max (CASE when mv.attribute_description = "Core service" then mv.value any other purpose) BaseBenefit
, max (CASE when mv.attribute_description = 'Multiplier 1' then mv.value any other purpose) Multiplier1
, max (CASE when mv.attribute_description = 'Multiplier 2' then mv.value any other purpose) Multiplier2
, max (CASE when mv.attribute_description = 'Multiplier 3' then mv.value end to another null) Multiplier3
from dbo. App APPLICATION, dbo. MY_VALUES mv
where app.id = mv1.application_id
and mv.attribute_description IN ('benefits of home', 'multiplier 'multiplier 'multiplier 3' 2' 1')
and app.id = 1
This runs often much better than several joins to the table for the view or the value of the attribute.
-
Somehow my default search engine has been changed to Google to what is called "My Web Search". I want to switch to Google, but I can't figure out how. I disabled the plugin and removed my options of search engine in the top right, but nothing has changed.
You have My Web Search installed; Look under Tools > Modules > Plugins. He could have grafted in on something that you have installed. Always seek and opt-out when installing other programs and Add-ons that you install from sites other than the site of Mozilla Add-ons. My search on the Web is considered malware/adware/spyware by many. You must remove it.
Step 1. You can check if you have one of these installed ' Fun Web products ' :
Control Panel > add or remove programs: Ask.com Bar, my search bar, of the MyWay Bar speed, my search on the Web Bar, Fun Web products Easy Installer
See:
http://www.safer-networking.com/removemywebsearch.php
PC Hell: My Web search removal Instructions
http://helpint.MyWebSearch.com/intlinfo/help/toolhelp.jhtml#Q3
http://support.Mozilla.com/en-us/KB/troubleshooting+plugins#Manually_uninstalling_a_pluginStep 2 You may need to change a preference to reset your default URL/location bar search engine:
-Enter Subject: config in the URL/address bar and press the Enter key
-If you see a cautionary, accept it (promise you'll be careful)
-Filter = keyword.url
-Under the filter, right-click on the keyword. URL and choose "Reset".
-Restart Firefox (file > restart Firefox)
See: http://kb.mozillazine.org/Keyword.urlStep 3 You may need to reset your homepage. Firefox can open multiple home pages. Home pages are separated by the ' | ' symbol.
See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+pageOther topics: ~ ~ Red: you have installed the plug-ins with known security issues. You must update them immediately. ~ ~
You ~ ~ Red:PEUT~ ~ need to update Adobe Reader for Firefox (aka Adobe PDF plug-in for Firefox): your worm s/o; current version 9.3.3 (updated security important release 29/06/2010; See: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
~ ~ Red: check your version here ~ ~: http://www.mozilla.com/en-US/plugincheck/
See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
~ ~ Blue:you may be able to update to Adobe Reader installed on your system~ ~ instead of going on the Adobe site and download. Open the Adobe Reader software installed on your system (in Windows, start > Program Files, find and click on Adobe Reader to open the), click Help, click Find updates. Allow the download / update to occur. If you use this method, no need to proceed with the instructions below, but look at the two downstairs bulleted items ""NOTE for IE:"and" see also: "." Restart Firefox and check your new version here: http://www.mozilla.com/en-US/plugincheck/
~ ~ Blue:If you go to the Adobe site to download the Adobe Reader course:~ ~
-use Firefox to download and SAVE to your hard drive (save to the desktop for easy access)
~ ~ Red:-see the images at the bottom left of this post to see the steps on the Adobe site ~ ~
-the release of Firefox (file > exit)
-In Windows: make sure that Firefox is completely closed (Ctrl + Alt + Delete, choose Task Manager, click the processes tab, if "firefox.exe" is on the list, made a "firefox.exe" right-click and choose end process, close the Task Manager window)
-In Windows: double-click the installer for Adobe Reader you just download to install/update Adobe Reader- NOTE: under Vista and Windows 7 you may need to run the installer of plugin as an administrator by starting the installation program via the context menu if you do not get a UAC ask permission to continue (that is, nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
- NOTE for IE: Firefox and most other browsers use a Plugin. IE uses a version of ActiveX. To install/update the IE ActiveX version, the same instructions as above, except use IE to download the ActiveX Installer. See: ActiveX
- See also: http://kb.mozillazine.org/Adobe_Reader ~ ~ Red:AND~ ~ How to change options to add Adobe to the list of allowed sites
-
HP G72250US Notebook PC my wife, product ID WQ666UA has sufferred a failure of HARD drive tonight. It's been 7 months out of warranty. I have no support other than death recovery now 320 HARD drive. What are my options? If I buy a new HARD drive, what are my best approaches?
-Jim
Hello
Please use it to order a set of disks:
http://support.HP.com/us-en/document/bph07143
Kind regards.
-
Original title: Netbook Licensing
Can someone give me an answer to confirm if netbooks with Windows XP Home, Vista Home Edition, Windows 7 starter (these BONES other than professional or company) be used in a business, connected to the server environment to share files?
I read somewhere that these permits cannot connect to a domain, is this true?
Of coz these OS has not input parameters are even to join a domain, how can they connect?
CAN, that my understanding of that statement means that it cannot be connected to a domain server, means that the netbook cannot be connected to the server to access files shared server?
Can the netbook share files with other computers (vice versa), other than a domain server, on a network of companies?
So what my final question is a netbook can exist in an enterprise environment? What's a standalone machine?
I'm not able to get an answer very Microsoft Singapore confirm after the call to them.
Hello
Computers running Windows 7 Starter Edition cannot connect to a domain.
Reference: Networking in Windows 7 Starter
-
No Option to install repair - SAD
HelloWhy Microsoft removed the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair.
I recently had a problem where Vista Business 64-bit would only boot to a black screen with a mobile cursor - KSOD. Who, in searching the Web I found is a fairly common problem with Vista. I discovered that my only option was about to reinstall Vista CLEAN and all the other programs I had installed under it. I can't believe that Microsoft released the 'repair installation option"similar to that of Windows XP, where you can hit the"R"key during installation and we left with nothing but the"System Restore"options and"Startup Repair ". Neither of which has helped in my situation. Since then, this was a dual system boot with XP Pro, then any restore point has been removed from the partition to Vista anytime, I started another recognized problem, by Microsoft, which Microsoft has made no significant effort to fix, in addition to recommending that you hide the partion Vista in XP - a whole of XP. That beats a little the entire purpose of dual boot.
As I tried to start in safe mode, it left me at the same point as a normal boot - black screen with a cursor. I tried ctrl + alt + delete and nothing. Two Windows RE options did not help me. This left me no option but to the completely reinstall Vista. Why Microsoft did remove the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair.. Please don't tell me that it is because Vista uses an image file instead of an installation as XP system. I see no other reason for not allowing the upgrade of outside BONE in addition to Microsofts greed and paranoia that he can transform the operating system easier to install illegally. I hope that some third party has actually changed the Vista installation routine to allow you to install Vista on itself, because as it is, it's really hard for me to even recommend Vista as the operating system or install any where else, if not the only recourse after loading OS, is to reinstall completely.
Adobe, Autodesk, and almost all other software publishers... allow you to perform a "REPAIR" of their software installation, if something prevents you to load after installation. Even MS Office has a routine repair. Ms has an internal version of the Setup routine which allows outside the OS upgrade option that you want to "Upgrade" / repair? ". If not, why?
-Todd w.
"Why Microsoft removed the ability for Windows Vista to install on herself from one location other than being inside the BONE you want to repair."
«.. . After using XP's repair function, the operating system itself would become less stable and frankly not in a good state of repair. »
As Todd, is the answer."This response does not hold water as on one of my computers I've been running Windows XP for about four years now, after a repair install.
"I thought that this area was a place to really get answers instead of the ole same"answers of bs that are on all the other forums."
If you want to have input on the future of Microsoft operating systems, then help you beta-test and provide feedback to the developers. Windows 7 and IE 8 are currently in beta.
Another possible place you could make suggestions which could see the developers would be:
https://connect.Microsoft.com/default.aspx
Brent
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
My hard drive crashed and I didn't do a reinstall full Vista no problem here other than do not pay attention, I installed the operating system on one 80 GB disk other than the new 320 gig which was. After the new facility and all new updates, I have 25 GB of free space. I would like to know if I can install new programs on my drive d: and no filling of drive c: for the ability
Hello
Thanks for posting this question in the Microsoft Community Forums.
I see you want to know if you can install programs on a drive with no operating system.
I wish to inform you that this is possible with only specific programs, which give the user an option to choose where the program is installed.
When a program is installed, it runs in program files, which lies in the operating system drive and can not be moved elsewhere.
Another reference:
Microsoft does not support changing the location of the program files
http://support.Microsoft.com/kb/933700
I hope that you found this information useful.
Please get back to us if you have any other questions about windows.
-
How to change the icons size in the bar of tasks other than small or big
How to change the size icons in the bar of tasks other than small or big. I'd like an average size.
There is no intermediate option to choose. You can choose small or large icons on the taskbar. -Ramesh Kumar http://www.WindowsValley.com
-
my Java Script and html do not work correctly in any other browser other than Internet Explorer
original title: my html and Java Script do not work correctly in another browser other than Internet Explorer, which is not the only browser used with Windows. How can I fix it?600 4 6 0 x 80000000000000 15 Windows PowerShell WIN-GRBD073PMKI FunctionHas begunProviderName = Function NewProviderState = SequenceNumber started = 5 HostName = ConsoleHost HostVersion = 2.0 HostId = 9 a 968549-639 a-4de1-9012-5b443edaae11 EngineVersion = RunspaceId = PipelineId = CommandName = CommandType = ScriptName = CommandPath = command line =.Hello
The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.
http://social.msdn.Microsoft.com/forums/en-us/iewebdevelopment/threads
I hope that helps!
Maybe you are looking for
-
Hi I'm new with labview, I made an application with release of vi express tool called "show msg" and when I run the program in 'performance continuously', do not close the message window when I press 'ok' I want to know if there is a way to disable t
-
VISA of TDS2002B scope control
We use Fluke METCAL for calibration. Using Windows XP Pro (updated SPs) I was able to set up and use a USB based TEK TDS1002 (A) O-Scope with VISA after update of the VISA of NOR-MAX portion. Now, I received a litter of TDS2002B TEK, but when I have
-
I can not you tube or any other videos to play what do I do or install?
-
Installed font is 'invisible' in Word
Hello I recently download a new font OTF (Puritan) on my computer laptop (Windows 7, 64-bit) and I am able to select it in Word (2010) and WordPad, but when I start typing spaces are empty. It seems in good condition in Excel. I uninstalled and reins
-
I created the following function in a java file called "ProgramScreen". public void SetLineWidth (int crack width){_width = width of stripe;} If I call the function in the java file "Program", it works. Screen ProgramScreen = new ProgramScreen (this)