April 1, 2016
How to create time attribute in SQL?
Agus Maloco’s Question:
I tried to create a table this way:
create table attendance (
userId char(10) primary key not null,
name varchar(35) not null,
date_attendance date not null,
start_time timestamp 'HH24:MI:SS',
finish_time timestamp 'HH24:MI:SS'
);
Am I right about creating the time fields this way or there is some better option?