Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual c++ database sort-search..

Status
Not open for further replies.

kanat

Programmer
Joined
Oct 9, 2002
Messages
7
Location
KG
Hi,
sorry for such a question, I am learning database programming, I could not find any article on this topic (How to implement sorting and searching in the database-table)

could you spare a little time to help me.

thanx.
 
Sorting and searching is done by SQL, this is not programmer's language bound (if you don't want to call SQL a programmer's language).
Greetings,
Rick
 
Concidering you are learning DB stuff at the current time, you have prolly seen some SQL

Ex.
Select Name from People where UPPER(Name) = 'MIKE';

// count how many mikes are in the database

To sort this would be silly but

Select name from people;

// this returns everyone but there is no order

Select name from people order by name asc / desc

ascending or descending order

This will sort them for you

HOpe this gives you a head start :-)

matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top