Skip to content
Advertisement

How to create new rows courresponding to current rows in table by changing column value

My Table is emp_activity

i want to insert each employees logout rows at 11 PM on this same day in same table like this.

Wanted Table emp_activity

Advertisement

Answer

Just use union all with scalar value insead of a column:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement