nebchill26
06-06-2008, 04:33 AM
can i use the Count(*) function when i join 2 tables?
here's my sample code:
SELECT
tblServiceRecRequests.CtrNum,
tblServiceRecRequests.Pc_Name,
tblServiceRecRequests.Problem,
tblServiceRecRequests.ProblemType,
tblServiceRecRequests.Staff,
tblServiceRecRequests.ActionTaken,
tblServiceRecRequests.ServiceStat,
tblServiceRecords.DateRequest,
tblServiceRecords.RequestedBy,
tblServiceRecords.Department,
tblServiceRecords.Location,
tblServiceRecords.DateNeeded
FROM tblServiceRecords, tblServiceRecRequests
WHERE tblServiceRecords.CtrNum = tblServiceRecRequests.CtrNum
AND tblServiceRecords.CtrNum = '100000005'
here's my sample code:
SELECT
tblServiceRecRequests.CtrNum,
tblServiceRecRequests.Pc_Name,
tblServiceRecRequests.Problem,
tblServiceRecRequests.ProblemType,
tblServiceRecRequests.Staff,
tblServiceRecRequests.ActionTaken,
tblServiceRecRequests.ServiceStat,
tblServiceRecords.DateRequest,
tblServiceRecords.RequestedBy,
tblServiceRecords.Department,
tblServiceRecords.Location,
tblServiceRecords.DateNeeded
FROM tblServiceRecords, tblServiceRecRequests
WHERE tblServiceRecords.CtrNum = tblServiceRecRequests.CtrNum
AND tblServiceRecords.CtrNum = '100000005'