Advertisement
Guest User

Untitled

a guest
Jul 9th, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1.  
  2. Задание 1:
  3. Есть 2 таблицы А и Б, нужно сказать сколько строк выведется при соединении.
  4. TableA
  5. id1
  6. 1
  7. 1
  8.  
  9. TableB
  10. id2
  11. 1
  12. 1
  13. 1
  14. 1
  15. NULL
  16.  
  17.  
  18. Please provide the count of rows for each join for Table A and Table B:
  19. Left join:
  20. Right join:
  21. inner join:
  22. full join:
  23.  
  24.  
  25. Задание 2:
  26. Department table (id, name)
  27. D1 Finance Dept
  28. D2 HR Dept
  29. D3 AR Dept
  30. F1 AP Dept
  31.  
  32. Employee table (id, name, deptNo, sex, hireDate, Salary,effectiveDate)
  33. E1, sample1, D1,M,01/01/2000, 5000, 01/01/2000
  34. E1, sample1, D1,M,01/01/2000, 6000, 01/01/2001
  35. E1, sample1, D2,M,01/01/2000, 6000, 01/02/2001
  36. E2, sample1, D2,M,01/01/2000, 6000, 01/02/2001
  37. E3, sample1, D1,M,01/01/2000, 5000, 01/01/2000
  38. E3, sample1, D1,M,01/01/2000, 6000, 01/01/2001
  39. E4, sample1, F1,M,01/01/2000, 5000, 01/01/2000
  40. E4, sample1, D1,M,01/01/2000, 6000, 01/01/2001
  41. E4, sample1, D3,M,01/01/2000, 8000, 01/02/2001
  42. E5, sample1, D3,F,01/01/2001, 8000, 01/02/2001
  43. E6, sample1, D3,F,01/01/2001, 9000, 01/02/2001
  44.  
  45. 1.Write a query to display latest salary of each employee
  46.  
  47. 2. Write a query to display department name where employees count in the department is
  48. more than 2
  49.  
  50. Задание 3 (code):
  51. Given two strings, output the words that are unique to each string.
  52. Example:
  53. String 1: The quick brown fox jumped over the lazy fox
  54. String 2: The slow blue whale swam over the quick shark
  55.  
  56. Output: slow, brown, blue, fox, whale, jumped, swam, lazy, shark
  57.  
  58.  
  59. Задание 4 (моделирование):
  60. Employee Seat Assignment
  61. Daily some employees in the organization transfer from one manager to another manager.
  62. This transfer leads to new seat assignment at his new work location.
  63.  
  64. Can you do a data model to maintain the history of work location changes? (нужно прикинуть какой подход для моделирования использовать, какие колонки будут в таблице, как отображать историю)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement