Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
GeneralRe: Update query Pin
Christian Graus5-Jun-05 11:17
protectorChristian Graus5-Jun-05 11:17 
GeneralRe: Update query Pin
jetset3217-Jun-05 22:03
jetset3217-Jun-05 22:03 
GeneralRe: Update query Pin
Christian Graus20-Jun-05 13:30
protectorChristian Graus20-Jun-05 13:30 
GeneralRe: Update query Pin
jetset3221-Jun-05 20:16
jetset3221-Jun-05 20:16 
GeneralGet the updated record Pin
Yulianto.29-May-05 21:51
Yulianto.29-May-05 21:51 
QuestionSummarization of time - help please?? Pin
Masoud_TB29-May-05 19:39
Masoud_TB29-May-05 19:39 
GeneralAccess table schema Pin
RFickling29-May-05 17:44
RFickling29-May-05 17:44 
QuestionAdding a column in result set programically using SQL??? Pin
alex.barylski29-May-05 14:13
alex.barylski29-May-05 14:13 
Can someone tell me whether or not the below SQL will do what I want it too...

I am trying to pull a listing of categories with the number of articles under each in a single query instead of using two queries and a loop. Does the below SQL seem coorect for doing this? Is this evenb possible?

Also it's important to note, i'm not interested in returning anything from the article list table, just the details from the categorey are required, one from each categorey NOT one for each categorey for each article returned as well... Sigh | :sigh:

$sql = '<code>SELECT</code> cat_list.pkid,
	   cat_list.parentid,
           cat_list.name,
           cat_list.img_url,
           cat_list.content,
           <code>COUNT</code>(class_articles.pkid) <code>AS </code>article_cnt
           <code>FROM </code>class_articles, cat_list
           <code>WHERE </code>class_articles.parentid=cat_list.pkid 
           <code>AND</code> cat_list.pkid='.$parentid;


Regards,
Alex

It's frustrating being a genius and living the life of a moron!!!
AnswerRe: Adding a column in result set programically using SQL??? Pin
Colin Angus Mackay29-May-05 20:02
Colin Angus Mackay29-May-05 20:02 
Generalremove ignored words - indexing service Pin
a_r_2129-May-05 5:37
a_r_2129-May-05 5:37 
Generalmis , remove ignored words - *full-text catalog Pin
a_r_2129-May-05 12:54
a_r_2129-May-05 12:54 
Generalremove ignored words - indexing service Pin
a_r_2129-May-05 5:36
a_r_2129-May-05 5:36 
GeneralUsing SQL with MS access Pin
mhmo28-May-05 21:16
mhmo28-May-05 21:16 
GeneralRe: Using SQL with MS access Pin
Colin Angus Mackay28-May-05 21:52
Colin Angus Mackay28-May-05 21:52 
Generalhelp required Pin
virgo*28-May-05 11:42
virgo*28-May-05 11:42 
GeneralRe: help required Pin
Christian Graus28-May-05 12:17
protectorChristian Graus28-May-05 12:17 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:46
Colin Angus Mackay28-May-05 12:46 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:43
Colin Angus Mackay28-May-05 12:43 
GeneralRe: help required Pin
Christian Graus29-May-05 12:21
protectorChristian Graus29-May-05 12:21 
Generalsql query Pin
varun8027-May-05 2:40
varun8027-May-05 2:40 
GeneralRe: sql query Pin
Colin Angus Mackay27-May-05 10:13
Colin Angus Mackay27-May-05 10:13 
GeneralProblem related to the use of SQLDMO Pin
Prashant N.Rana26-May-05 22:19
Prashant N.Rana26-May-05 22:19 
GeneralRe: Problem related to the use of SQLDMO Pin
jonathan1526-May-05 22:39
jonathan1526-May-05 22:39 
GeneralRe: Problem related to the use of SQLDMO Pin
Prashant N.Rana29-May-05 17:41
Prashant N.Rana29-May-05 17:41 
GeneralInserting sql data Pin
NormBohana26-May-05 14:40
NormBohana26-May-05 14:40 

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.