The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Is it possible to perform a subquery within an existing query?

Last post 05-09-2007, 7:32 AM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  05-09-2007, 7:19 AM 2268

    Is it possible to perform a subquery within an existing query?

    Existing Stored proc is as follows

    SELECT jobId, accountId, title, active, createdDate, updateDate, lastUpdateUser, assessmentId, templateJobPostingInfoId,

    (SELECT COUNT(*) AS Expr1 FROM Posting INNER JOIN JobPostingInfo ON Posting.jobPostingInfoId = JobPostingInfo.JobPostingInfoId

    WHERE (Posting.postingStatusId = 1) AND (JobPostingInfo.JobId = Job.jobId)) AS ActivePostingCount

    FROM Job

    WHERE (accountId = @accountId)

     

     

  •  05-09-2007, 7:32 AM 2271 in reply to 2268

    Re: Is it possible to perform a subquery within an existing query?

    I think the reply on this thread applies here too.

    EntitySpaces | Twitter | BLOG
View as RSS news feed in XML