Advertisement

09.20.2006 at 11:46AM PDT, ID: 21996729
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Ordering of results

Asked by darkstar3d in MS SQL Server

How do I write a query that takes information in a table formatted like so:

DataID      Date      ServerID      DriveVolume      DriveLetter      DriveSize      SizeID      DriveFree      FreeID      FreePercent
1308      9/20/2006 12:00      myserver1         Blank                     C:      16.41      GB      6.58      GB      40.07
1309      9/20/2006 12:00      myserver1         New Volume                E:      6.14      GB      4.07      GB      66.21
1310      9/20/2006 12:00      myserver1         New Volume                F:      12.92      GB      7.84      GB      60.66
1311      9/20/2006 12:00      myserver1         EXCH-STG1-TLOG            I:      30.72      GB      28.83      GB      93.84
1312      9/20/2006 12:00      myserver1         EXCH-STG2-TLOG            J:      30.72      GB      28.43      GB      92.55
1313      9/20/2006 12:00      myserver1         EXCH-STG3-TLOG            K:      30.72      GB      29.16      GB      94.93
1314      9/20/2006 12:00      myserver1         REGREP                    R:      921.6      MB      913.97      MB      99.17
1315      9/20/2006 12:00      myserver1         SMTP                      T:      15.36      GB      12.96      GB      84.36

And have the query results returned like this:

myserver1            
                  9/10/2006 08:00      9/10/2006 20:00      9/11/2006 08:00
DriveLetter      VolumeName      TotalSize      FreeSpace      Percent      FreeSpace      Percent      FreeSpace      Percent
C:      Local Disk      15.50      10.99      70.90      10.98      70.84      10.98      70.84
E:      Local Disk      5.86      3.83      65.36      3.83      65.36      3.83      65.36
F:      Page File      12.40      10.68      86.13      10.68      86.13      10.68      86.13
I:      1st SG Trns Logs      50.00      49.55      99.10      49.41      98.82      49.14      98.28
J:      2nd SG Trns Logs      50.00      49.54      99.08      49.49      98.98      49.42      98.84
K:      3rd SG Trns Logs      50.00      49.73      99.46      49.67      99.34      68.94      137.88
L:      1st SG DBs Logs      130.00      75.63      58.18      69.11      53.16      75.26      57.89
M:      2nd SG DBs Logs      130.00      78.76      60.58      75.27      57.90      71.54      55.03
N:      3r SG DBs Logs      130.00      77.66      59.74      71.58      55.06      71.47      54.98
T:      SMTP Queue      50.00      49.75      99.50      49.74      99.48      49.72      99.44
Z:      Double Take      65.00      63.44      97.60      63.44      97.60      63.44      97.60

I was thinking of using arrays and pull the result out of that. Which I know I can do, but I think this could be done with some combination of SQL statements. This is with MSSQL2000.

Thanks!
Start Free Trial
[+][-]09.20.2006 at 11:50AM PDT, ID: 17563358

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.20.2006 at 11:58AM PDT, ID: 17563430

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.20.2006 at 12:02PM PDT, ID: 17563470

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.20.2006 at 12:04PM PDT, ID: 17563491

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.20.2006 at 12:05PM PDT, ID: 17563507

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.22.2006 at 05:30AM PDT, ID: 17577005

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Sign Up Now!
Solution Provided By: wstuph
Participating Experts: 2
Solution Grade: B
 
 
[+][-]09.22.2006 at 03:51PM PDT, ID: 17581389

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42