Skip to content

Commit

Permalink
Merge pull request makernexus#93 from jschrempp/main
Browse files Browse the repository at this point in the history
Fixed duplicate checkin display with same first name
  • Loading branch information
jschrempp authored Jun 23, 2024
2 parents ff658d3 + 6d498c7 commit 3b60151
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BEGIN $$

DROP PROCEDURE IF EXISTS sp_checkedInDisplay $$

DELIMITER $$
CREATE DEFINER=`makernexuswiki`@`localhost` PROCEDURE `sp_checkedInDisplay`(IN `dateToQuery` VARCHAR(8))
BEGIN

Expand Down Expand Up @@ -43,7 +44,7 @@ SELECT DISTINCT p.logEvent, p.clientID, p.firstName
FROM tmp_checkedin_clients a
LEFT JOIN
(
SELECT *
SELECT DISTINCT logEvent, clientID, firstName
FROM rawdata
WHERE CONVERT( dateEventLocal, DATE) = CONVERT(dateToQuery, DATE)
AND logEvent in
Expand All @@ -62,8 +63,9 @@ LEFT JOIN stationConfig b
ON a.logEvent = b.logEvent
LEFT JOIN clientInfo c
ON a.clientID = c.clientID
ORDER BY firstName, photoDisplay
ORDER BY firstName, a.clientID, photoDisplay
;

END$$
DELIMITER ;

0 comments on commit 3b60151

Please sign in to comment.