SQL related questions
Pivot a table in SQL without using pivot function
Question
eBay Interview Question | Male Employee
Question
Cisco Interview Question | Model Development
Question
Cisco Interview Question | Query V
Question
Emp_id
Emp_name
Manager_id
Dept_id
Joining_date
Salary
1
Joy
0
Q
1 January, 2018
6000
2
Manu
0
5
5 July, 2019
6000
3
Ajay
1
1
13 August, 2017
2000
13
Akanksha
2
5
16 May,2020
2000
11
Surbhi
2
1
21 July, 2015
2000
9
Louise
1
-
5 September,2018
3000
8
Vishal
3
1
7 June, 2012
3500
7
Chen Lee
2
5
31 July,2018
NULL
3
Apoorva
1
1
29 February,2016
2000
Arrange the Emp_name in alphabetical order in the new table that only has the salary and Emp_name column in it.
in progress
0
SQL
55 years
1 Answer
860 views
Great Grand Master
Cisco Interview Question | Query IV
Question
Emp_id
Emp_name
Manager_id
Dept_id
Joining_date
Salary
1
Joy
0
Q
1 January, 2018
6000
2
Manu
0
5
5 July, 2019
6000
3
Ajay
1
1
13 August, 2017
2000
13
Akanksha
2
5
16 May,2020
2000
11
Surbhi
2
1
21 July, 2015
2000
9
Louise
1
-
5 September,2018
3000
8
Vishal
3
1
7 June, 2012
3500
7
Chen Lee
2
5
31 July,2018
NULL
3
Apoorva
1
1
29 February,2016
2000
Employees having the same salary in the table will get a pay raise of 1000. Create a new table with the increased salary of the ...
in progress
0
SQL
55 years
1 Answer
776 views
Great Grand Master
Cisco Interview Question | Query III
Question
Emp_id
Emp_name
Manager_id
Dept_id
Joining_date
Salary
1
Joy
0
Q
1 January, 2018
6000
2
Manu
0
5
5 July, 2019
6000
3
Ajay
1
1
13 August, 2017
2000
13
Akanksha
2
5
16 May,2020
2000
11
Surbhi
2
1
21 July, 2015
2000
9
Louise
1
-
5 September,2018
3000
8
Vishal
3
1
7 June, 2012
3500
7
Chen Lee
2
5
31 July,2018
NULL
3
Apoorva
1
1
29 February,2016
2000
This table might have some duplicate records. Try to locate them and keep only a single copy in the table.
in progress
0
SQL
55 years
1 Answer
700 views
Great Grand Master
Cisco Interview Question | Query II
Question
Emp_id
Emp_name
Manager_id
Dept_id
Joining_date
Salary
1
Joy
0
Q
1 January, 2018
6000
2
Manu
0
5
5 July, 2019
6000
3
Ajay
1
1
13 August, 2017
2000
13
Akanksha
2
5
16 May,2020
2000
11
Surbhi
2
1
21 July, 2015
2000
9
Louise
1
-
5 September,2018
3000
8
Vishal
3
1
7 June, 2012
3500
7
Chen Lee
2
5
31 July,2018
NULL
3
Apoorva
1
1
29 February,2016
2000
Get the Emp_id for employees whose Dept_id is either invalid or not present in the database.
in progress
0
SQL
55 years
2 Answers
977 views
Great Grand Master
Cisco Interview Question | Query I
Question
Emp_id
Emp_name
Manager_id
Dept_id
Joining_date
Salary
1
Joy
0
Q
1 January, 2018
6000
2
Manu
0
5
5 July, 2019
6000
3
Ajay
1
1
13 August, 2017
2000
13
Akanksha
2
5
16 May,2020
2000
11
Surbhi
2
1
21 July, 2015
2000
9
Louise
1
-
5 September,2018
3000
8
Vishal
3
1
7 June, 2012
3500
7
Chen Lee
2
5
31 July,2018
NULL
3
Apoorva
1
1
29 February,2016
2000
Write a query to find employees who have completed more than 2 years in the company. Create a separate table containing Emp_id, salary and Joining ...
in progress
0
SQL
55 years
2 Answers
1030 views
Great Grand Master
D Cube Analytics Interview Question | Duplicate Rows
Question
D Cube Analytics Interview Question | Group Functions
Question