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

Database

 
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 
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 
Obviously you have simplified the problem, because there is no need for TableA at all in this scenario; all of the information is contained in TableB.

From TableB only:
SELECT belongsto, COUNT(belongsto)
FROM TableB
GROUP BY belongsto

Assuming it needs both tables due to fields we are not seeing:
SELECT a.Title, COUNT(b.belongsto)
FROM TableA a
INNER JOIN TableB b ON a.Title = b.belongsto
GROUP BY a.Title

MS Access might not like the formatting I have used, and may need some parenthesis around some of that (it would work in SQL Server just the way it is formatted).
I like this book:
Guru's Guide to Trasact SQL by Ken Henderson[^]
But it is SQL Server specific (Transact SQL).
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 
AnswerRe: Login help? Pin
eric_tran19-May-06 3:06
eric_tran19-May-06 3:06 
QuestionVB6 and MySQL without DCOM Pin
sparks8018-May-06 14:46
sparks8018-May-06 14:46 

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.