Below is the sql query that I am running. Currently, if a user has 0 open for the number of tickets, their name is removed from my list. I need them to show with a 0. Otherwise, I do not realize they have no work. Thoughts?
I am relatively new to this so any and all help in lamens terms is greatly appreciated!
I am relatively new to this so any and all help in lamens terms is greatly appreciated!
PHP:
SELECT Count(dbo_Transactions.TransNbr) AS [# of Tickets], dbo_Transactions.TransStatus AS Status, dbo_Users.FirstName, dbo_Users.LastName
FROM dbo_Users INNER JOIN dbo_Transactions ON dbo_Users.SSN = dbo_Transactions.SecID
GROUP BY dbo_Transactions.TransStatus, dbo_Users.FirstName, dbo_Users.LastName, dbo_Users.FirstName
HAVING (((dbo_Transactions.TransStatus)="Open") AND ((dbo_Users.LastName)="last1" Or (dbo_Users.LastName)="last2" Or (dbo_Users.LastName)="last3" Or (dbo_Users.LastName)="last4" Or (dbo_Users.LastName)="last5"));