I have a problem with this query. I don't know how to approach this since the data is within the same column and can only be separated with the labesl I, and O. how will I approach this? Is this possible via multiple LEFT JOIN?
SELECT
CHECKINOUT.userid as chkuserid, USERINFO.userid as usruserid, name,
BADGENUMBER as badge,
LEFT(CONVERT(varchar, CHECKTIME, 23),11) as logindate,checktype,
Format(cast(RIGHT(CHECKTIME,12) as datetime),'HH:mm:ss') AS timestamp
from CHECKINOUT,USERINFO
where CHECKINOUT.userid=USERINFO.userid
and BADGENUMBER = '1693'
This is what the query looks like.
What I want to achieve is for it to look like this.
May I ask for assistance regarding this matter?