Jump to content

Yet another query blues!


ajoo
Go to solution Solved by Jacques1,

Recommended Posts

Hi all !

 

This works fine and returns a row of the result

SELECT fd.fname, fd.lname, fd.role, fd.city, fd.cell, fd.email, fd.fid
From fd 
WHERE fd.recruiter = 118
GROUP by fd.role

and if I add Limit 1, 10 to this like this :-

SELECT fd.fname, fd.lname, fd.role, fd.city, fd.cell, fd.email, fd.fid
From fd 
WHERE fd.recruiter = 118
GROUP by fd.role
LIMIT 1, 10

I get 0 rows.    :confused:  :confused:.  What's going wrong here or  is this like normal ??

 

Thanks all !

 

 

Link to comment
Share on other sites

ok so i thought that GROUP by is creating an issue and I removed that from the query. 

 

And guess what :-

SELECT fd.fname, fd.lname, fd.role, fd.city, fd.cell, fd.email, fd.fid
From fd 
WHERE fd.recruiter = 118
LIMIT 1, 10

still returns an empty set. :confused:  :confused: . If I simply remove the LIMIT 1, 10, I get my row of result. I have never had this sort of problem ?? In fact I use LIMIT in most of my queries. Please someone explain to me what's going on !??

Link to comment
Share on other sites

Hi Guru Jacques !!! :happy-04:

 

Thank you sir,

 

Coincidentally I had just tried the 0 - offset this morning & found it working and also read about the usage of the GROUP since I was unsure of it and I have been using it like thinking it would be a SORT ON kind of function. 

 

Thanks Loads ! 

Link to comment
Share on other sites

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.