SQL GROUPING allows you to segregate data into groups so that you can work on it separately from the rest of the table records. Let's say you want to get the number of products in a category in the Northwind database Products table. You would write the following query: SELECT COUNT(*) NumberOfProductsByCategory FROM Products GROUP BY CategoryID The query above gives you the following results: The query gives you the number of products in each category, however it's not very useful. You don't really know what category the count is for in each record. You might want to try to change the query into something like this: SELECT CategoryID,COUNT(*) NumberOfProductsByCategory FROM Products GROUP BY CategoryID The above query is more useful the preceding one, however it only gives you the CategoryID number not the CategoryName in the Categories table. Being the perfectionist that you are you say to yourself, I can do better. "Yes, I can". I think that was a ca
1. Type in the following URL into your browser's address bar http://msftdbprodsamples.codeplex.com/ 2. Click on the "Download" button on page 3. Click on the recommended download link 4. Unizp the file you just downloaded 5. Open the SQL Server Management Studio, then right click on "Databases" and then select "Restore Database" 6. Select "Device" under "Source" 7. Click on the "..." button, and the "Select" backup devices will appear, select "File" for "Backup media type" 8. Click on the "Add" button, and select the "AdventureWorks2014.bak" file, then click "OK" 8. Click "OK" on the "Select backup devices" screen 9. Click "OK" on "Restore Database" window 10. A message will pop up that says you have successfully restored the AdventureWorks2014 database 11. The "AdventureWorks2014" database is now
In the previous blog we've added the Bootstrap library to our empty ASP.NET MVC project. Now let's add another commonly used JQuery library to our project. In this blog we will add the JQuery UI library to our empty project. Step-By-Step Instructions: 1. Open the empty ASP.NET MVC 5 project that you've just created 2. Right click on the the "References" node in the "Solution Explorer", then select "Manage NuGet Packages" 3. In the search box on the right of NuGet window type "jquery ui combined", the search result will be displayed, the package that you want to install is highlighted below. Notice it's the third choice which is called the jQuery UI (Combined Library) 4. Click on the "Install" button next to the "jQuery UI (Combined Library)" package. 5. Once the JQuery UI library has been installed a green check mark is displayed, click on the "Close" button 6. Now you should see the JQuery UI
Comments
Post a Comment