Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

SELECT DISTINCT doesn't work on browse form

Post Reply
guscastro
Posts: 10
Joined: Fri Aug 01, 2014 2:37 am

SELECT DISTINCT doesn't work on browse form

Unread post by guscastro »

I should be missing something.
I put this code below into the SQL box of a form

Code: Select all

select distinct `title_type` FROM `la_contacts` 
I tested the code direct on the MYSQL panel and it works perfect but on the nu app the DISCTINCT is ignored and it browse all the records.
Please help
Image
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: SELECT DISTINCT doesn't work on browse form

Unread post by admin »

guscastro,

Your sql needs to contain the Form's Primary Key

Steven
Post Reply