Click here to Skip to main content
15,895,011 members
Home / Discussions / Database
   

Database

 
AnswerRe: Average of all columns Pin
Krish - KP20-Feb-07 17:01
Krish - KP20-Feb-07 17:01 
QuestionProblem in Using ADO in C++ to Get Oracle Ref Cursor Data Pin
Kelvin X Li20-Feb-07 11:02
Kelvin X Li20-Feb-07 11:02 
QuestionCount Problem Pin
ronivars20-Feb-07 9:14
ronivars20-Feb-07 9:14 
AnswerRe: Count Problem Pin
Mark J. Miller20-Feb-07 9:33
Mark J. Miller20-Feb-07 9:33 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 10:15
ronivars20-Feb-07 10:15 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 10:24
ronivars20-Feb-07 10:24 
GeneralRe: Count Problem Pin
Mark J. Miller20-Feb-07 11:52
Mark J. Miller20-Feb-07 11:52 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 12:16
ronivars20-Feb-07 12:16 
hi Mark

i'm sorry but is still doesn't work i try both sql
and return me 0 rows

SELECT T1.Col, COUNT(*) FROM tbl1 T1
INNER JOIN tbl2 T2 ON T2.col LIKE '%' + T1.col + '%'
group by T1.Col


SELECT T1.Col, COUNT(*) FROM tbl1 T1
INNER JOIN tbl2 T2 ON T1.Col LIKE '%' + T2.Col + '%'
group by T1.Col

i also try this 2 sql sentences and is stil doesn't work
its return me
1000 0
1001 0
etc....


1)
select t1.col ,(SELECT count(*) FROM tbl2 t2
WHERE t1.col in (select t2.col from tbl2 t2))
From tbl1 t1
2)
select tbl1.col ,count(case when CHARINDEX(tbl1.col ,tbl2.col) > 0 then 1 else null end)
from tbl1,tbl2
group by tbl1.col


by the way i work with sql server 2005
thanks again
waiting for rescue


GeneralRe: Count Problem Pin
Mark J. Miller20-Feb-07 12:23
Mark J. Miller20-Feb-07 12:23 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 12:50
ronivars20-Feb-07 12:50 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 13:21
ronivars20-Feb-07 13:21 
GeneralRe: Count Problem Pin
ronivars20-Feb-07 12:22
ronivars20-Feb-07 12:22 
QuestionCount Query Prob Pin
tadhg8820-Feb-07 6:39
tadhg8820-Feb-07 6:39 
AnswerRe: Count Query Prob Pin
andyharman20-Feb-07 7:05
professionalandyharman20-Feb-07 7:05 
AnswerRe: Count Query Prob Pin
tadhg8820-Feb-07 7:32
tadhg8820-Feb-07 7:32 
GeneralRe: Count Query Prob Pin
andyharman20-Feb-07 8:17
professionalandyharman20-Feb-07 8:17 
GeneralRe: Count Query Prob Pin
tadhg8821-Feb-07 0:37
tadhg8821-Feb-07 0:37 
GeneralRe: Count Query Prob Pin
tadhg8822-Feb-07 1:53
tadhg8822-Feb-07 1:53 
QuestionHow to add costum row to combo what linked to DataSource Pin
El'Cachubrey20-Feb-07 3:37
El'Cachubrey20-Feb-07 3:37 
QuestionHow to order Integer field as a string ?? Pin
kindman_nb20-Feb-07 3:22
kindman_nb20-Feb-07 3:22 
AnswerRe: How to order Integer field as a string ?? Pin
Aswanikumarj20-Feb-07 3:45
Aswanikumarj20-Feb-07 3:45 
GeneralRe: How to order Integer field as a string ?? Pin
kindman_nb20-Feb-07 5:05
kindman_nb20-Feb-07 5:05 
AnswerRe: How to order Integer field as a string ?? Pin
andyharman20-Feb-07 3:46
professionalandyharman20-Feb-07 3:46 
GeneralRe: How to order Integer field as a string ?? Pin
kindman_nb20-Feb-07 5:07
kindman_nb20-Feb-07 5:07 
QuestionSQL server does not exists or access denied. Pin
Aswanikumarj20-Feb-07 3:06
Aswanikumarj20-Feb-07 3:06 

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.