Can SQL gurus, you create a SQL to do this?
I have a query that brings together the records of 2 columns:
ROOM_DESC Detail_count
Not reserved - clean, 4
Not reserved - salty, 30
Reserved - clean, 8
Reserved - salty, 47
Is what I want, without creating a temporary table, use the SQL existing as an input and output it:
Rooms, 89
Clean, 12
Dirty, 77
Even if getting to the rooms is not technically possible, to get the other 2 total records would be great.
Hello
This looks like a job for the REPORT GROUP.
Here's one way:
WITH original_query AS
(
SELECT... AS room_desc
, ... AS detail_count
...
)
got_room_grp AS
(
SELECT SUBSTR (room_desc
, INSTR (room_desc, "-") + 3
) AS room_grpdetail_count
Of original_query
)
SELECT NVL (room_grp, 'Rooms') AS grp_label
SUM (detail_count) AS detail_count
OF got_room_grp
GROUP OF ROLLUP (room_grp)
ORDER BY NULLS FIRST room_grp
;
According to what did you do in the original request, there might be a much simpler way. Chances are, you can derive from room_grp without devoting a separate subquery, as I did above. You might be able to do all the work without any subqueries in all.
If you would care to post CREATE TABLE and INSERT instructions for sample data and your needs, then I could test it and maybe show you a simpler and more efficient way.
The query above assumes that room_desc always contains "-", followed by another text. If this isn't the case, then you need a slightly more complicated expression for grp_label in the main query:
...
SELECT THE CHECK BOX
WHEN you GROUP (room_grp) = 0
THEN room_grp
ELSE 'rooms '.
END AS grp_label
...
or perhaps other slight modifications, but the general approach here show will still work.
Tags: Database
Similar Questions
-
I don't see a SQL server in the menu to the bottom when you create a SYSTEM DSN?
What could prevent me from seeing a list of all the SQL servers in my environment when you create a SYSTEM DSN?
The drop down menu has only a single SQL Server available. IM using W2K8R2 64 BIT and I have also installed the 64-bit SQL to ODBC client.
you have dbo on the MSDB and the VCDB? Whatever it is, no instance DB and no permission you should always see SQL servers in your environment. When you created the DSN system, you used the SQL Native Client not the SQL Server driver?
-
Re: Can you create discs recorvery to new windows 7
Hi all
can you create a recorvery disk that ships with toshiba tools and those added software when you buy a new proffessional of windows 7?_sceaniro_
I have a toshiba laptop with vista home premium and I just bought windows 7 Professional of the store, but according to Microsoft, upgrade is not an option, and I still want the programs supplied with the laptop and toshiba small logo when you check the properties of the computer?How should I go about this?
> How should I go about this?
# Create the recovery disk under original operating system preinstalled with the so-called factory settings. you will have no problems in this regard and will help you avoid errors that can occur after the upgrade of the operating system.
# If you want to use all the stuff pre-installed as Toshiba specific tools and utilities you can simply upgrade Vista preinstalled.You can also do the clean install of Win7 and later install all the necessary drivers and tools and utilities.
Can you please tell us what model phone you have and what Toshiba programs you want to use under Win7? -
After you create a new playlist in iTunes, every song has the cover of the album and no box on the left side. How can I remove from the work and recover the box? TIA
You can change the appearance of a selection by clicking on "reading list" in the upper right of the iTunes window. The desired view is probably "tracks"
-
After you create a system restore point manually, I can't find the point.
Original title : What's next?
After you create a system restore point manually, I can't find the point. Where is he?
Hello
More than you probably ever wanted to know.
How to create a Vista System Restore Point
http://www.Vistax64.com/tutorials/76332-system-restore-point-create.htmlHow to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
How to turn System Restore on or off in Vista
http://www.Vistax64.com/tutorials/66971-system-restore.htmlAdjustment of the amount of disk space, System Restore uses for restore points
http://bertk.MVPs.org/html/diskspacev.htmlHow to change how much Space System Restore can use
http://www.Vistax64.com/tutorials/76227-system-restore-disk-space.html
http://www.Petri.co.il/change_amount_of_disk_space_used_by_system_restore_in_vista.htmShadowStorage vssadmin commands
http://TechNet.Microsoft.com/en-us/library/cc755866 (WS.10) .aspx
http://technet2.Microsoft.com/WindowsServer/en/library/89d2e411-6977-4808-9AD5-476c9eaecaa51033.mspx?mfr=trueGuide to Windows Vista system restore
http://www.bleepingcomputer.com/tutorials/tutorial143.htmlExpiration errors occur in Volume Shadow Copy service writers, and shadow copies are lost during
backup and at the time when there are high levels of input/output
http://support.Microsoft.com/?ID=826936A good utility:
Explorer of the shadow - free
http://www.ShadowExplorer.com/You can also view the bridges restore in CCleaner - tools - system restore.
CCleaner - free - on the left side click on download from Piriform
http://www.Piriform.com/ccleaner/downloadI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
Can you create a button in Dreamweaver with a "promo code" function, so users who have the promo code can go to a discount on a product page?
Unless you are a qualified PHP coder, you will need a full shopping cart 3rd party.
Asecurecart is reasonably priced, and it can be integrated with your PayPal account for the processing of payments + many others like WorldPay, Authorize.net, etc...
ASecureCart shopping cart. A shopping cart compliant secure PCI.
Nancy O.
-
can you create and email-able site html to muse?
I created a site simple single page that must be able to integrate in an e-mail. The person doing the emailing said it must be a single HTML page. When export of the muse as html file creates a file called "muse_manifest.xml" and the folder named "scripts", which I think that one of thesecan be the issue. Y at - it an easy way to change that since Im not a coder. Thank you.
Post edited by: Peter Rath
Hi Peterr82291792,
Are you planning on creating a newsletter in Adobe Muse? If so, check the link below to understand why this isn't a good idea.
How to export my site muse for a newsletter. My customer is using Microsoft Dynamics.
Muse can be used to create html newsletter templates to be emailed?
Kind regards
Vivek
-
I'm new to edge animated but I want to build an ios/android app on the edge animate, a sort of tarot card reading application, and I need to the ability of the app, while someone uses it on his smartphone, to save a result 'card spread' in the memory so that they can bring this back for current visualization.
On the edge host how you create (or code) a backup memory 'link' or 'file '?
See you soon
I think I found the answers I'm after where you can save the States of advancement on iphones locally.
Here are some resources that I found on this topic, I now will seek in more closely to see if I can get my head around it :-)
NSUserDefaults or database
PhoneGap and HTML5SQL. JS
http://inflagrantedelicto.memoryspiral.com/2013/04/PhoneGap-and-html5sql-js/localStorage
Local storage - economy/recovery of data on the Board animate
-
You can save a 'look' that you created for other sequences?
I played with various effects to get a video clip to set fair. Is there a way I can save a 'style' or 'look' use on other images?
I would only use it on the other images which has of course contrast similar colors, but it would be nice to record my own 'styles' customized to use for my images.
I appreciate all help. Thank you.
If you work in Speedgrade, you can create Looks that you can use anywhere in the edit suites Adobe.
If you use simply 'looks like' you created with first rank and CC tools... except the effect as a "Preset" or he just copy and pasting it into clips.
-
When you create a PDF to ppt, pdf can be created in unique pages instead of a complete document?
After Acrobat create a PDF from multiple pages, you can use the Extract command to break into single pages. You can do this either in tools > Pages, or in the Options menu for the Page thumbnails pane.
-
When you create PDF from WORD 2010 files, can't do the TOC header as hyperlinks entries
When you create PDF from WORD 2010 files, I can't have the TOC header as hyperlinks entries. I'm used to be able to do this in WORD 2003. I tried to create a PDF file in Acrobat by selecting file > create PDF > navigate to the WORD file > select three check boxes >
Help them get the entries in TOC topic as hyperlinks?
Try to do this from Word by using the Ribbon.
-
How can you create/go ' into a network?
How to create a network?
How are you networked?
How to create a password to a network?
Hi Gordonlee,
Welcome to the Microsoft Community and thanks for posting the question. After the description provided to create a network in Windows 7.
Answering these questions that would help us provide a better solution:
1. what type of network you want to create?
2 what type of network you create the password?
Try these steps and check:
Method 1:
Visit this link to create a network:
http://Windows.Microsoft.com/en-us/Windows7/start-here-to-set-up-a-home-network-in-Windows-7
For more information:
If you have three to 4 computers on the same network, and if they are using Windows Vista or Windows 7, visit this link to create a House Group.
http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup
Homegroup from start to finishMethod 2:
If you want to add a device to a network, visit this link:
Depending on the operating system your computer is running, and if your network devices support newest technologies, the steps for adding a device or a computer to the network will vary
Add a device or computer to a network
http://Windows.Microsoft.com/en-us/Windows7/add-a-device-or-computer-to-a-network
Method 3:
Visit this link and try the steps mentioned in it to secure a network:
http://Windows.Microsoft.com/en-us/Windows7/making-your-network-more-secure
If you have created a wireless network and you want to secure it visit this link:
http://Windows.Microsoft.com/en-us/Windows7/set-up-a-security-key-for-a-wireless-network
See also:
Why should I get my wireless network?
http://Windows.Microsoft.com/en-us/Windows7/why-should-I-secure-my-wireless-network
If you want more response information and we will be happy to help.
-
Why I can not contact you with FEEDBACK REAL
Why I can not contact you with FEEDBACK REAL? Why Firefox to 28 allows me to download files from Web page complete, but worms 30 does not work? Plugins, Addons, Internet Security are the same on both systems. I can download the files in IE but not Firefox. What gives? I use NoScript, Better Privacy, Ghostery, and Kaspersky Internet Security configured the same on both systems. The only reason I checked is because on some sites, I can't download files and point of view completely. 30 to Firefox will download but not to create a complete directory html link so that I can open and view the file.
Hi obliviondoll, the feedback site is here:
https://input.Mozilla.org/feedback
This is the page that opens if you use the Help menu in Firefox and choose to submit your comments...
You can provide your e-mail address on the site of feedback where people reviewing the feedback have questions, but I think that it is rare that you would be so don't expect a response.
In addition, I don't know if you scrolled down beyond the map on the contact page, but there are links down here (see the attached screenshot):
-
Satellite P100-429, stopped after you create the partition on the HARD disk
After you create the partition on the HARD disk. PC just stopped.
After using the restore CD, nothing happened again, any ideas?Hello
Express media player has been installed on the partition of the laptop?
I can give you a good solution for 100%, but there may be a conflict between the express media player partition and the new partition.
Have you installed the OS on the new partition?Hey Buddy, try to delete the entire partitions in the HARD drive and format the HARD drive completely. Then try to use it again the Toshiba Recovery CD and install Toshiba image on the HARD drive.
-
Partiton of Windows can not find after create new partiton
Hello guys
I created the partition for windows 10 and installed on my mac 'I have mac book pro 2009 13 inch IOS al capitan' and I want another partition for windows so I go to boot mac open mac and creating another partition when it finished I failed but my partition created. My problem is when I open my laptop and I want to open windows I click 'alt', but can't find windows to open it so that my request is if there is a way to restore my windows without installing again.
Thank you
Hi, MSCreationAndMore.
Please visit Apple support communities.
I understand that you cannot start Windows after you create another partition. For now, you can have a single partition Mac and a Windows partition. You must start over and install Windows again.
Boot Camp: The problems of creation of partition
Set up Windows on your Mac partition
See you soon
Maybe you are looking for
-
low battery level, does not give a warning.
Hello When my battery is almost empty it does not give a warning. I have a HP G62 and windows 7. My closed laptop (black screen). Until I'm always a popup that says I should connect my laptop to the power. When I restart my laptop I had a window wher
-
Problem loading of Satellite A660
Hello! After CMOS, do not load my charger and leads IN AD is running and the battery led is intermittent mix orange led with white led... If I don't have the battery in the laptop my pc switched off 10 seconds after the CMOS. More if I turned off my
-
How can I activate the service Super Fetch in Vista?
How can I activate the service Super Fetch in Vista?
-
my mouse pointer is always invisible in Windows Media center,
my mouse pointer is always invisible in Windows Media center, but not in windows media player. If I get something it will highlight and I can click but the pointer is always invisible, any diet mouse that I use
-
I need to get a list of all e-mails in the folder to prove the amount of email in it, that is, the information in the column that lists senders/recipients, subject, and date shipping.