Jump to content

[SOLVED] Early morning confusion...


AV1611

Recommended Posts

I have a table with this schema:

 

idx  name    ip

 

data is like this:

 

1    john  1.1.1.1

2  fred    2.2.2.2

3  john    1.1.1.1

4  john    2.3.3.4

 

etc.

 

 

The point being that there are many duplicated of name/ip pairs.

 

This query is SUPPOSED to grab the last 100 distinct names from the list, (for a pulldown list) but doesn't:

Select distinct `name` from table order by `idx` desc;

 

What am I missing?  It gives 100 names, but they are not the last on the list...

Link to comment
https://forums.phpfreaks.com/topic/89393-solved-early-morning-confusion/
Share on other sites

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.