Click here to Skip to main content
15,896,201 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to get only one record ... Pin
_Damian S_18-Jun-09 19:16
professional_Damian S_18-Jun-09 19:16 
GeneralRe: How to get only one record ... Pin
Niladri_Biswas19-Jun-09 3:44
Niladri_Biswas19-Jun-09 3:44 
GeneralRe: How to get only one record ... Pin
Kyudos21-Jun-09 11:08
Kyudos21-Jun-09 11:08 
AnswerRe: How to get only one record ... Pin
Niladri_Biswas19-Jun-09 3:54
Niladri_Biswas19-Jun-09 3:54 
GeneralRe: How to get only one record ... Pin
Kyudos21-Jun-09 11:12
Kyudos21-Jun-09 11:12 
GeneralRe: How to get only one record ... Pin
Eddy Vluggen21-Jun-09 13:04
professionalEddy Vluggen21-Jun-09 13:04 
GeneralRe: How to get only one record ... Pin
Kyudos22-Jun-09 11:08
Kyudos22-Jun-09 11:08 
QuestionMySQL+PHP - Problem with Query not showing all results Pin
47_MasoN_4718-Jun-09 11:32
professional47_MasoN_4718-Jun-09 11:32 
$request2 = mysql_query("SELECT * FROM tablename WHERE status IN('In Progress','Pending') ORDER BY FIND_IN_SET('urgent', priority) DESC, FIND_IN_SET('high', priority) DESC, priority DESC, status DESC") or die(mysql_error());


Above is my query. I want the query to show me all the cases where the status is "In Progress" or "Pending" then order them by the priority (urgent, high, mid, low) in that order, then order them DESC by status.

Example:

Case 1, urgent, Pending
Case 2, urgent, In Progress
Case 3, high, Pending
Case 4, high, In Progress
...

For some reason though, random cases aren't displayed in my table. Everything works fine if I leave out the ORDER BY section, but for some reason when ordering is added it stops working. Also, the mid and low sections always seem to show up, but random high and urgent cases do not. I don't understand what is wrong. Can someone please help? I'll gladly provide more information if needed.
AnswerRe: MySQL+PHP - Problem with Query not showing all results Pin
smcnulty200019-Jun-09 0:37
smcnulty200019-Jun-09 0:37 
GeneralRe: MySQL+PHP - Problem with Query not showing all results Pin
47_MasoN_4719-Jun-09 4:25
professional47_MasoN_4719-Jun-09 4:25 
QuestionWhat I'm I missing? Pin
DJ Matthews18-Jun-09 4:07
DJ Matthews18-Jun-09 4:07 
AnswerRe: What I'm I missing? Pin
David Mujica18-Jun-09 4:38
David Mujica18-Jun-09 4:38 
GeneralRe: What I'm I missing? Pin
DJ Matthews18-Jun-09 4:48
DJ Matthews18-Jun-09 4:48 
AnswerRe: What I'm I missing? Pin
Luc Pattyn18-Jun-09 4:50
sitebuilderLuc Pattyn18-Jun-09 4:50 
GeneralRe: What I'm I missing? Pin
DJ Matthews18-Jun-09 4:53
DJ Matthews18-Jun-09 4:53 
GeneralRe: What I'm I missing? Pin
Luc Pattyn18-Jun-09 5:04
sitebuilderLuc Pattyn18-Jun-09 5:04 
Questionsql server 2008 to 2000 Pin
Ebube18-Jun-09 2:38
Ebube18-Jun-09 2:38 
AnswerRe: sql server 2008 to 2000 Pin
Colin Angus Mackay18-Jun-09 2:42
Colin Angus Mackay18-Jun-09 2:42 
QuestionHow many primary key constraints can we have in a table of ms-access? Pin
sivakumar.mariappan18-Jun-09 0:31
sivakumar.mariappan18-Jun-09 0:31 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
Eddy Vluggen18-Jun-09 3:07
professionalEddy Vluggen18-Jun-09 3:07 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
riced18-Jun-09 7:03
riced18-Jun-09 7:03 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
Niladri_Biswas19-Jun-09 4:03
Niladri_Biswas19-Jun-09 4:03 
QuestionCreating primary key constraints on a table using VB.NET Pin
sivakumar.mariappan18-Jun-09 0:30
sivakumar.mariappan18-Jun-09 0:30 
AnswerRe: Creating primary key constraints on a table using VB.NET Pin
riced18-Jun-09 7:15
riced18-Jun-09 7:15 
QuestionHow do I do that? [modified] Pin
kripa2117-Jun-09 22:48
kripa2117-Jun-09 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.