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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display the data once! 1

Status
Not open for further replies.

choohean

Technical User
Jan 15, 2002
57
0
0
MY
I got some data like this

ID Name Email
10 Tan tan@abc.com
10 Lee lee@pqr.com
10 Chong chong@mnp.com


I want to display the ID one only in other place.
How to write the query to get the ID for only once?
 
can you please tell us clearly?
what do you mean by ID one in other place?

do you want to select only ID? if so you can group by ID ô¿ô Kishore
 
I was try to something like this

ID: 10

Name Email
Tan tan@abc.com
Lee lee@pqr.com
Chong chong@mnp.com


 
That's not something that's easy to produce with SQL, nor should you try. It's mostly a formatting problem, which should be done by the front-end tool generating the query (ASP, Crystal Reports, whatever...).

i.e. use a normal Select statement like:

Select ID, Name, Email from YourTable

and then have your FE tool print/display the resultset in the format you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top