Hi,
i am trying to bulid an Attendance system project and need a Query for inserting values into my dbTable which has two FIelds RFID and EmpID.
the RFID Field can be saved multiple times and need to find EmpID associated each time card is swaped.
so far i have tried :
INSERT INTO dbTable (RFID,EmpID) SELECT TagID,EmpID FROM EmpTable
i dont see any results though. the RFID which will be number of times must be saved at rumtime and i want associated EmpID next to it so that i can identify which user swapped card how many times.
any suggestions?
Nazneen SayedPosted Mar 8, 2017, 4:16 AM
Amit GuptaPosted Mar 8, 2017, 3:49 AM
Nazneen SayedPosted Mar 8, 2017, 3:21 AM
Amit GuptaPosted Mar 8, 2017, 3:13 AM
Nazneen SayedPosted Mar 8, 2017, 2:58 AM
Column 'dbTable.RFID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
i dont need to count RFID.just save it into my dbTable and find associated EmpID of the card swiped From EMpTable.
Amit GuptaPosted Mar 8, 2017, 2:51 AM