Results 1 to 2 of 2

Thread: need Help

  1. #1
    Join Date
    Jun 2007
    Posts
    4

    Exclamation need Help

    Here I need to get some data by using following criteria, there is 3 tables which are Tbl.adminCategory, tbl_adminuser, tbl_outbox respectively. I am working on 2000SQL server

    I am trying to create view as following but getting some error.

    SELECT tbl_adminuser.adminUserName, tbl_AdminCategory.Name,
    COUNT(tbl_outbox.msgUserID),
    FROM tbl_adminuser INNER JOIN
    tbl_AdminCategory ON
    tbl_adminuser.adminUserID = tbl_AdminCategory.CatID INNER JOIN
    tbl_outbox ON tbl_AdminCategory.CatID = tbl_outbox.msgUserID
    AND tbl_outbox.msgUserID <> 0
    GROUP BY tbl_outbox.msgUserID
    But I am getting error pls correct the view,
    I can use either view or storedprocedure as well
    Pls help me
    thanks in advance..:confused: chanbashask@yahoo.com

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Try replace AND with WHERE. What was the error by the way?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •