Solved

QUERY AND SYNTAX

Posted on 2008-10-20
1
137 Views
Last Modified: 2012-05-05
I need to add to this query a sort filter, by Case Number, from highest number of CaseNumber to lowest:

SELECT     CaseNumber, TypeCase, Category, CaseRep, [ Last Name ], [ First Name ], DriverLicense, SignUpDate, SignedBy, Address, City, State, Zipcode, Telef_Home, Telef_Cell, Telef_Work,
FROM         dbo. [ Clients List ]
WHERE     (Status IS NULL)

0
Comment
Question by:gabepcsolutions
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
you mean:
SELECT     CaseNumber, TypeCase, Category, CaseRep, [ Last Name ], [ First Name ], DriverLicense, SignUpDate, SignedBy, Address, City, State, Zipcode, Telef_Home, Telef_Cell, Telef_Work, 
FROM         dbo. [ Clients List ]
WHERE     (Status IS NULL)
ORDER BY CaseNumber DESC

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now