Skip to content

Instantly share code, notes, and snippets.

@Kegnar
Created June 29, 2025 05:35
Show Gist options
  • Select an option

  • Save Kegnar/6de0d9a7a146a65ca0eff49c5040e653 to your computer and use it in GitHub Desktop.

Select an option

Save Kegnar/6de0d9a7a146a65ca0eff49c5040e653 to your computer and use it in GitHub Desktop.
SQL_HW1
INSERT INTO employees (name, salary, department) VALUES
(N'Иван Петров', 75000.00, 'IT'),
(N'Алексей Смирнов', 60000.00, N'Маркетинг'),
(N'Мария Иванова', 55000.00, 'HR'),
(N'Дмитрий Кузнецов', 80000.00, 'IT'),
(N'Анна Соколова', 48000.00, N'Финансы'),
(N'Сергей Васильев', 65000.00, 'IT'),
(N'Ольга Морозова', 52000.00, 'HR'),
(N'Александр Белов', 90000.00, N'Маркетинг'),
(N'Екатерина Козлова', 43000.00, N'Финансы'),
(N'Павел Новиков', 70000.00, 'IT');
select * from employees
select name, salary from TOP_BV425.dbo.employees
select * from employees
where salary >50000
select * from employees
order by salary desc
select top (3) name,salary from TOP_BV425.dbo.employees
order by salary desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment