Jump to content

[SOLVED] help with mysql query


syntax101

Recommended Posts

how do i select a data from the database without repeating the value to be stored

 

 

ex

 

JOBORDER    NAME   

1                A

1                A

1                A

2                A

3                B

4                C

2                A

 

i want to select the JOBORDER DATA 1,2,3,4 without repeat the numbers just like above

 

result

JOBORDER

1

2

3

4

Link to comment
https://forums.phpfreaks.com/topic/80440-solved-help-with-mysql-query/
Share on other sites

thanx a lot, i used group by but its more simplier if i use distinct :)

And much better... don't ever use DISTINCT as a modifier to select, it's never what you want.

 

what do you mean by never to use distinct as a modifier to select.

 

sorry for that because i cannot understand it. im still a newbie

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.