Click here to Skip to main content
15,914,500 members
Home / Discussions / Database
   

Database

 
QuestionExport to flat file for Microsoft Excel Pin
tanpanjang21-May-06 7:09
tanpanjang21-May-06 7:09 
QuestionODBC questions [modifed] Pin
Lord_Vader20-May-06 0:05
Lord_Vader20-May-06 0:05 
QuestionCannot store 2000 characters in varchar(7000) Pin
Dinuj Nath19-May-06 20:05
Dinuj Nath19-May-06 20:05 
AnswerRe: Cannot store 2000 characters in varchar(7000) Pin
Michael P Butler20-May-06 0:47
Michael P Butler20-May-06 0:47 
GeneralRe: Cannot store 2000 characters in varchar(7000) Pin
Dinuj Nath20-May-06 1:02
Dinuj Nath20-May-06 1:02 
AnswerRe: Cannot store 2000 characters in varchar(7000) Pin
Arjan Einbu20-May-06 6:37
Arjan Einbu20-May-06 6:37 
GeneralRe: Cannot store 2000 characters in varchar(7000) Pin
Dinuj Nath27-May-06 17:03
Dinuj Nath27-May-06 17:03 
QuestionSQL COUNT statement Pin
munklefish19-May-06 10:28
munklefish19-May-06 10:28 
Hi,

Sorry for my ignorance but could someone give me a hand with this SQL query?

I have two tables in an access database. The first hold a list of titles and the second table holds a list of items belonging to these titles.

I need an SQL statement that will retrieve the titles from table a, and in the same row give me the number of items belonging to that title.

EG:

Table A:

Title 1
Title 2
Title 3
etc

Table b:

item: belongsto:

booksworms Title1
bread Title2
Mice Title3
Cheese Title2
Doorwedges Title2


So my statement needs to return the data as follows, although it needs to be based on the records encountered in table a, rather than simply counting/grouping the records in table b.

Title: Count:

Title1 1
Title2 3
Title3 1


etc

Also if anyone can recommend some useful tutorials id be really appreciative.

Thanks!Mad | :mad:
AnswerRe: SQL COUNT statement Pin
Farhan Noor Qureshi19-May-06 10:44
Farhan Noor Qureshi19-May-06 10:44 
AnswerRe: SQL COUNT statement Pin
Scott Serl19-May-06 10:58
Scott Serl19-May-06 10:58 
GeneralRe: SQL COUNT statement Pin
munklefish20-May-06 0:50
munklefish20-May-06 0:50 
GeneralRe: SQL COUNT statement Pin
Scott Serl22-May-06 6:42
Scott Serl22-May-06 6:42 
GeneralRe: SQL COUNT statement Pin
munklefish23-May-06 8:30
munklefish23-May-06 8:30 
QuestionLogon and password help? Pin
eric_tran19-May-06 6:25
eric_tran19-May-06 6:25 
AnswerRe: Logon and password help? Pin
Farhan Noor Qureshi19-May-06 10:49
Farhan Noor Qureshi19-May-06 10:49 
QuestionListbox Help Please Pin
Larry White19-May-06 6:15
Larry White19-May-06 6:15 
QuestionOPEN XML Pin
NICE TO MEET19-May-06 3:15
NICE TO MEET19-May-06 3:15 
Questionbulk of data load problem Pin
Irfan.x19-May-06 3:04
Irfan.x19-May-06 3:04 
AnswerRe: bulk of data load problem Pin
Farhan Noor Qureshi19-May-06 10:53
Farhan Noor Qureshi19-May-06 10:53 
Questiongetting column from the dataset Pin
dayakar_dn18-May-06 21:34
dayakar_dn18-May-06 21:34 
AnswerRe: getting column from the dataset Pin
NICE TO MEET18-May-06 22:59
NICE TO MEET18-May-06 22:59 
AnswerRe: getting column from the dataset [modified] Pin
turbochimp21-May-06 20:00
turbochimp21-May-06 20:00 
QuestionLogin help? Pin
eric_tran18-May-06 19:09
eric_tran18-May-06 19:09 
AnswerRe: Login help? Pin
sparks8018-May-06 20:05
sparks8018-May-06 20:05 
AnswerRe: Login help? Pin
Colin Angus Mackay18-May-06 20:21
Colin Angus Mackay18-May-06 20:21 

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.