Jump to content

Returning only one row out of many...?


woolyg

Recommended Posts

Hi all,

 

I'm running an SQL query that returns the following results:

 

Value     FirstName Surname Number

NULL Mel Brooks 4

1001 JIm Jones 9652

13 JR Ewing 5

13 JR Ewing 9651

2 S R 2

5678 Euan S 6

8888 John Ryan 3

 

 

But I only want JR Ewing to show up once. Could anyone advise me on how to do this? I've tried using

 

SELECT DISTINCT (Value), FirstName, SurName etc

 

..but it still shows up twice, as JR Ewing has 2 entries in the Number column.

 

Can anyone help?

Cheers

Woolyg

 

Link to comment
https://forums.phpfreaks.com/topic/55374-returning-only-one-row-out-of-many/
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.