Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. 1.
  2. select * from PRACOWNICY
  3. __________________________________________________________________________
  4. 2.
  5. select IMIE, NAZWISKO, DZIAl
  6. from PRACOWNICY
  7. __________________________________________________________________________
  8. 3.
  9. select IMIE, NAZWISKO, DZIAl
  10. from pracownicy
  11. order by NAZWISKO ASC;
  12. __________________________________________________________________________
  13. 4.
  14. select distinct STANOWISKO
  15. from PRACOWNICY;
  16. __________________________________________________________________________
  17. 5.
  18. select IMIE, NAZWISKO, STANOWISKO, DZIAL
  19. from PRACOWNICY
  20. where STANOWISKO
  21. like 'SPRZEDAWCA';
  22. __________________________________________________________________________
  23. 6.
  24. select NR_KLIENTA, NR_SAMOCHODU, NR_PRACOW_WYP, CENA_JEDN
  25. from WYPOZYCZENIA
  26. where CENA_JEDN >=100;
  27. __________________________________________________________________________
  28. 7.
  29. select IMIE, NAZWISKO, STANOWISKO, DZIAL
  30. from PRACOWNICY
  31. where STANOWISKO like 'KIEROWNIK' and DZIAL like 'OBSLUGA KLIENTA'
  32. or DZIAL like 'TECHNICZNY'
  33. order by DZIAl, NAZWISKO;
  34. ___________________________________________________________________________
  35. 8.
  36. select IMIE, NAZWISKO, STANOWISKO, DZIAL
  37. from PRACOWNICY
  38. where STANOWISKO like 'KIEROWNIK' and (DZIAL like 'OBSLUGA KLIENTA'
  39. or DZIAL like 'TECHNICZNY')
  40. order by DZIAl, NAZWISKO;
  41. ___________________________________________________________________________
  42. 9.
  43. select IMIE, NAZWISKO, STANOWISKO, DZIAL
  44. from PRACOWNICY
  45. where STANOWISKO IN('KIEROWNIK', 'SPREZDAWCA');
  46. ___________________________________________________________________________
  47. 10.
  48. select MARKA, TYP, ROK_PROD, POJ_SILNIKA
  49. from SAMOCHODY
  50. where POJ_SILNIKA IN(1400, 1600);
  51. ___________________________________________________________________________
  52. 11.
  53. select MARKA, TYP, ROK_PROD, POJ_SILNIKA
  54. from SAMOCHODY
  55. where POJ_SILNIKA between 1100 and 1800;
  56. ___________________________________________________________________________
  57. 12.
  58. select IMIE, ULICA, MIASTO
  59. from KLIENCI
  60. where NR_KARTY_KREDYT is null;
  61. ___________________________________________________________________________
  62. 13.
  63. select IMIE, ULICA, MIASTO
  64. from KLIENCI
  65. where NAZWISKO like 'K%';
  66. ___________________________________________________________________________
  67. 14.
  68. select IMIE, ULICA, MIASTO
  69. from KLIENCI
  70. where NAZWISKO like '%K%A%'
  71. and NAZWISKO not like '%A%K%';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement