| find missing record [message #646086] |
Sat, 19 December 2015 04:46  |
nmd_group
Messages: 21 Registered: February 2012 Location: Dhaka,Bangladesh
|
Junior Member |
|
|
emp_id ------- year
A-1 ------- 2007
A-1 ------- 2008
A-1 ------- 2010
A-1 ------- 2011
A-2 ------- 2007
A-2 ------- 2008
A-2 ------- 2009
A-2 ------- 2011
----------------------------------------------------
I need missd information, as bellow.
A-1 ------- 2009
A-2 ------- 2010
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: find missing record [message #646098 is a reply to message #646096] |
Sat, 19 December 2015 09:40   |
nmd_group
Messages: 21 Registered: February 2012 Location: Dhaka,Bangladesh
|
Junior Member |
|
|
Here is the calendar.
-----------------------
WITH
months AS (
SELECT 2006+level year,
level month
FROM dual
CONNECT BY LEVEL <= 5
)
SELECT year FROM months
|
|
|
|
|
|
|
|
|
|