E
E
evgenyt20002019-04-28 22:01:51
Oracle
evgenyt2000, 2019-04-28 22:01:51

How to fix the first function?

It is not possible to drive the first times as an input parameter for the beginning of labor activity

INSERT INTO TEACHER (HIREDATE)
SELECT HIREDATE
FROM LESSON 
WHERE (SELECT LESSONDATETIME,MIN(LESSONDATETIME) KEEP(DENSE_RANK FIRST ORDER BY LESSONDATETIME)
OVER (PARTITION BY TEACHERPC) FROM LESSON JOIN TEACHER ON TEACHER.PC_TEACHER=LESSON.TEACHERPC)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2019-05-22
@evgenyt2000

update teacher t
   set hiredate = (select min(lessondatetime)
                     from lesson l
                    where t.pc_teacher = l.teacherpc)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question