|
-
Dec 29th, 2005, 11:13 PM
#1
Thread Starter
Lively Member
sorting data in asscending order
if i need to extract from data base in asscending order, wat should i add on the the below statement?
ViewAppt.RecordSource = "SELECT * FROM APPOINTMENT_T WHERE (PATIENT_ID = '" + NRICtxt.Text + "' ) ORDER BY APPOINTMENT_DATE, START_TIME"
-
Dec 30th, 2005, 12:07 AM
#2
Frenzied Member
Re: sorting data in asscending order
what type of database r u using? access or sql server or oracle??
-
Dec 30th, 2005, 12:24 AM
#3
Re: sorting data in asscending order
That Query should return your fields in ascending order, ASC is default, and when you want descending order you have to add DESC after each field in Order by clause
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|