Got more questions? Find advice on: ASP | XML | Regular Expressions | Windows
in Search
Welcome to SqlAdvice Sign in | Join | Help

doubt in function query

Last post 04-24-2009, 9:39 AM by Grady Christie. 3 replies.
Sort Posts: Previous Next
  •  11-03-2008, 8:29 AM 47895

    doubt in function query

    hi friends,

    select name,count(trainingdates) from tablename group by name having count(trainingdates) and tablename.trainerid=tablename.trainerid

    this query is not executing because it is not function but i have to check the condition of a count function and join in where clause

    can anybody help me

     

  •  11-03-2008, 8:31 AM 47896 in reply to 47895

    Re: doubt in function query

    padmapriya:

    hi friends,

    select name,count(trainingdates) from tablename group by name having count(trainingdates) and tablename.trainerid=tablename.trainerid

    this query is not executing because it is not function but i have to check the condition of a count function and join in where clause

    can anybody help me

     

  •  11-03-2008, 8:31 AM 47897 in reply to 47895

    Re: doubt in function query

    padmapriya:

    hi friends,

    select name,count(trainingdates) from tablename group by name having count(trainingdates) and tablename.trainerid=tablename.trainerid

    this query is not executing because it is not function but i have to check the condition of a count function and join in where clause

    can anybody help me

     

  •  04-24-2009, 9:39 AM 52479 in reply to 47897

    Re: doubt in function query

    Have you tried this?

    select name,count(trainingdates) from

    tablename group by name having count(trainingdates)>=1

    name,count(trainingdates) from

    tablename group by name having count(trainingdates)>=1

    group by name having count(trainingdates)>=1

    Hope it helps.  Regards, Grady Christie

View as RSS news feed in XML