- 0
[SQL] Problem with Select Count
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Usama Jawad96 · Posted
Windows Sandbox is awesome and I wish more people knew about it by Usama Jawad Microsoft announced Windows Sandbox way back in 2019. This is a powerful utility that allows you to run a virtualized desktop environment inside your PC, without requiring a dedicated virtual machine (VM) and its associated image files. Windows Sandbox has various advantages over a traditional VM configuration, which makes it an amazing addition to your software toolset. I already published a guide back in 2021 explaining how you can enable Windows Sandbox in your installation. The process is pretty much the same: just check that you have enabled virtualization on your PC (the process may differ for each OEM), enable Windows Sandbox from optional features, restart your PC, and simply launch the environment from Windows Search. The entire process should take less than 30 minutes, in most cases. That said, it is important to note that Windows Sandbox is not offered for Home environments; you need Windows 10/11 Pro, Enterprise, or Education SKUs to leverage it. Since Windows Sandbox is an optional capability in the operating system, many people don't know about it at all. It's essentially a lightweight and temporary desktop environment with the kernel isolated from the host. Since it's ephemeral in nature, you lose all data in Windows Sandbox as soon as you close the environment. The power of Windows Sandbox There are a lot of benefits to using Windows Sandbox. It offers a brand-new and clean Windows environment that you can utilize to test your software or run suspicious .exe files (more on that later) from third-party sources. If you're not sure about opening an untrusted website but still want to open it for some reason, using Microsoft Edge in Windows Sandbox is probably better than running it in your primary environment. But perhaps Windows Sandbox's strengths lie in its backend architecture. The ability to launch a full-fledged OS in a matter of minutes is a huge plus. The process of installing and configuring VMs, and then finding image files for an operating system, can be very daunting, so the streamlined setup for Windows Sandbox easily beats that. In addition, the environment is quite lightweight and consumes a lower amount of RAM than traditional VMs in most scenarios. The fact that Windows Sandbox is ephemeral in nature is also a major advantage from a cybersecurity standpoint. Anything you do inside this environment only stays until that instance is open, and it's isolated from the host, making it quite secure. From Windows 11, version 24H2, you do have the option to retain the instance's resources if you trigger a restart from Windows Sandbox, but you will lose everything if you just close the example in any other way. Finally, Microsoft also offers ways to have more granular control over Windows Sandbox through an XML configuration file and Policy CSP. These have fine-grained configuration settings such as audio and video input, clipboard redirection, mapping folders, networking, and more. So, if you're conscious about running certain services even inside the sandbox, you can simply disable them. Not a silver bullet Despite its plethora of benefits, Windows Sandbox is not a silver bullet that will solve all your problems. For starters, apart from the OS SKU requirement, it has a set of hardware requirements without which you simply can't launch Windows Sandbox. This includes Arm64/AMD64 architecture, 4GB of RAM, 1GB of free space, and at least two CPU cores. These mandates aren't very steep, but they may restrict utilization for some. Next, it is important to remember that while it is better to run untrusted .exe files or open suspicious websites from within Windows Sandbox rather than your primary environment, this is not foolproof. Certain sophisticated varieties of malware may still break free from the sandbox to wreak havoc on your PC, so you should keep that risk in mind anyway. Windows Sandbox offers decent kernel isolation, but malware is evolving all the time, too. In the same vein, do note that some advanced forms of malware can also recognize that they are being run in a virtualized environment. As such, they may alter their behavior dynamically to appear harmless inside the VM and then activate malicious activities as soon as they are transferred over to your host environment. That said, both the aforementioned risks apply to a traditional VM too, so this is just something to know about, not a diss against Windows Sandbox. Also, while it's great that Windows Sandbox is ephemeral, this can be a headache if you are doing extensive testing spread out across days or weeks. You would need to keep your instance up at all times and risk losing your progress at any second. Similarly, it's not possible to run multiple instances of Windows Sandbox, so a customized setup with various environments isn't really feasible. Moreover, inbox apps from the Microsoft Store like Calculator and Notepad aren't supported right now, and there is no Microsoft Store either. Optional Windows features cannot be enabled inside the Sandbox either. Finally, Windows Sandbox only virtualizes your current OS. You can't be running Windows 11, but virtualize Windows 7 inside the sandbox through native methods. Windows Sandbox or a traditional VM? Both Windows Sandbox and traditional VMs offer similar functionalities, but with different selling points. The former is more focused on the lightweight, resource-efficient, and simplified nature of the sandbox environment, while the latter emphasizes more customization options and freedom of use. At the end of the day, whether you end up using Windows Sandbox or a traditional VM depends on your preferences and use case. If you want a persistent environment with more configurability, a traditional VM is the way to go. Still, for almost everything else, Windows Sandbox is a great option, especially due to how quickly you can spin it up. A good rule of thumb would be to give Windows Sandbox a go first, find out in a few minutes if it meets your requirements, and switch to a traditional VM installation if it doesn't. Windows Sandbox is a very handy utility overall, and it's just a shame that not many people know about it due to it being an optional feature that you need to manually enable. -
By TarasBuria · Posted
Windows 11 is getting a useful new audio feature by Taras Buria Photo: phamtu1509 Windows 11, in its current form, does not offer a quick and easy way to play audio over more than one device. If you have a bunch of audio devices connected and you want to play music on all of them, you have to tinker with third-party software to make it work. Apparently, Microsoft wants to change that with a new feature coming soon to Windows 11. @phantomofearth, the ever-giving source of Windows insights, discovered that the latest Windows 11 preview builds have a hidden toggle in quick settings that lets you share audio to multiple devices with just a few clicks. All it takes is clicking "Shared Audio" in the control center, selecting two or more available devices, and pressing "Share." As usual, there are no official announcements yet, so details about this feature remain unknown. Still, you can probably expect the new shared audio feature to make it to a Windows 11 preview build in the near future. In other Windows Insider news, Microsoft recently revealed that one of the recent taskbar changes was pulled from the operating system due to negative feedback. The company experimented with a simplified taskbar tray area, but later decided to nuke it because people did not like it. Still, there are plenty of other features coming soon to Windows 11. Check out our recent top 10 list here. Hopefully, all of them will make it to the Stable channel soon. -
By James W. · Posted
Chinese? It sounds extremely dangerous. I’ll reconsider buying a Meta Quest 3. -
By sssplus · Posted
- What's your salary? Is it more than $100k a year? - Nah, it's $100 mil a year. -
By Slugsie · Posted
Compared to my ear buds which are the size of a matchbox, cover a much broader frequency range, and work everywhere without setup? Yeah, still not buying this as a replacement.
-
-
Recent Achievements
-
nobody9 earned a badge
First Post
-
Ricky Chan earned a badge
One Month Later
-
leoniDAM earned a badge
First Post
-
Ian_ earned a badge
Reacting Well
-
Ian_ earned a badge
One Month Later
-
-
Popular Contributors
-
Tell a friend
Question
thevink
Hey,
I'm working with complicated tables, so I'm going to create a basic table to demostrate instead of the real values.
Suppose i have 2 tables:
I want an sql that will display this table:
I have a way of doing this, however I always miss Larry(people who have 0) because they get canceled out in the where clause(they are not in the joined table).
Any ideas how to do this?
EDIT: Actually this is a simple case in which I can code for, so I gave a bad example, but the theory is still there.
SELECT Person.Name, Count(Sport.Sport) AS CountOfSport
FROM Person LEFT JOIN Sport ON Person.ID = Sport.NID
GROUP BY Person.Name;
That works, however I can't apply that same skeleton on my real data, it just doesnt work.
Edited by thevinkLink to comment
https://www.neowin.net/forum/topic/744872-sql-problem-with-select-count/Share on other sites
3 answers to this question
Recommended Posts