Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.