Facebook
From Unique Water Vole, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 252
  1.  
  2. --Zad 1
  3. Select count(*) as " Liczba studentek 3r INF ss" from studenci where imiona like '%a' and tryb like 'STACJONARNY' and stopien=1 and rok=3 AND KIERUNEK= 'INFORMATYKA';
  4. zad 1.3
  5. Select count(imiona) as " liczba studentów na litere M", count(DISTINCT imiona) as "Liczba roznych imiona na M" from studenci
  6. where imiona like 'M%' and imiona not like '%a';
  7. --Zad 1.6
  8. Select substr(imiona,1,1)||'.'||substr(nazwisko,1,1)||'.' as "Inicjaly", imiona,nazwisko from studenci where length(concat(nazwisko,imiona)) in(9,11,13);
  9.  
  10.  
  11. --Zad 1.9
  12. Select Instr(upper(nazwisko),'A'),nazwisko, length(nazwisko) from studenci where length(nazwisko) between 6 and 9 and
  13. Instr(upper(nazwisko),'A')>0
  14.