Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. select (case when now()::date between to_date(da.dat,'DDMMYYYY') and to_date(da2.dat2,'DDMMYYYY') then CONCAT(extract(year from now()),'/',(extract(year from now())+1),'/Зимски') else (select case when now()::date between to_date(da1.dat,'DDMMYYYY') and to_date(da3.dat2,'DDMMYYYY') then CONCAT((extract(year from now())-1),'/',(extract(year from now())),'/Зимски') else CONCAT((extract(year from now())-1),'/',extract(year from now()),'/Летен') end
  2. from (select CONCAT('0101',extract(year from now()))as dat)as da1,(select CONCAT('1402',extract(year from now()))as dat2) as da3)end
  3. ) as SEMESTAR
  4. from (select CONCAT('0110',extract(year from now()))as dat)as da,(select CONCAT('3110',extract(year from now()))as dat2) as da2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement