![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi. I have a problem that has been plaging me for a couple of days.... thought some one might be able to help.... I have 2 tables: tblGroups and tblPax. My SQL statement is: SELECT tblGroups.groupID, groupName, count(paxID) FROM tblGroups, tblPax WHERE tblGroups.groupID = tblPax.groupID GROUP BY tblGroups.groupID, groupName When tblPax has no groupID in it, the SQL above does not return any result for groupID, but I need it to return a "Null" count similar to the tabloe below. groupID count(paxID) 1 0 But this is what I need it too do. I'm using ASP VBScript and an Access database. I know how to retreive a count value of 0 in SQL Server and Oracle but not in Access. Can anyone help? |
![]() |
| Thread Tools | |
| Display Modes | |
| |