Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways

Category : SQL

SQL related questions

Question
If you’re attempting to predict a customer’s gender, and you only have 100 data points, what problems could arise?
in progress 1
55 years 1 Answer 1269 views Great Grand Master

Question
Write a SQL query to find the 7th highest employee salary from an Employee Table. If that employee is male, shift to the next employee in alphabetical order. Explain your answer.
in progress 3
55 years 4 Answers 1589 views Great Grand Master

Question
You notice a system uses a lot of triggers to enforce foreign key constraints, and the triggers are error-prone and difficult to debug. What changes can you recommend to reduce the use of triggers?
0
55 years 0 Answers 1578 views Great Grand Master

Question
Suppose in class, you have 3n boys and 2n girls with their names tabulated along with their weight and gender. Write a SQL query to separate students alphabetically who are over-weight (55kg for girls, 75kg for boys)
in progress 0
55 years 11 Answers 1744 views Great Grand Master

Question
Name Designation Joining_Date Salary Ashutosh Singla HR 2019-12-15 80,000 Chandan Garg Admin 2019-10-09 60,000 Himanshi Kaur HR 2019-03-13 75,000 Mohit Dharm HR 2019-05-27 85,000 Meena Batra Accountant 2019-07-11 50,000 Omkar Singh Accountant 2019-01-05 45,000 Pratham Garg Admin 2019-05-27 65,000 Rakesh Sharma HR 2018-06-30 75,000 Sharadha Gupta Accountant 2019-09-18 50,000 Arrange the employees with respect to their Joining date, most experienced employee coming on the top followed by others. (Hint- In case of same date, preference should be HR>Admin>Accountant)
in progress 1
55 years 10 Answers 2137 views Great Grand Master

Question
Name Designation Joining_Date Salary Ashutosh Singla HR 2019-12-15 80,000 Chandan Garg Admin 2019-10-09 60,000 Himanshi Kaur HR 2019-03-13 75,000 Mohit Dharm HR 2019-05-27 85,000 Meena Batra Accountant 2019-07-11 50,000 Omkar Singh Accountant 2019-01-05 45,000 Pratham Garg Admin 2019-05-27 65,000 Rakesh Sharma HR 2018-06-30 75,000 Sharadha Gupta Accountant 2019-09-18 50,000 The company has decided to give a pay raise of 5,000 to Accountants with a salary of less than 50,00. Find the employees satisfying the condition and create a new table ...
in progress 1
55 years 7 Answers 1976 views Great Grand Master

Question
Name Designation Joining_Date Salary Ashutosh Singla HR 2019-12-15 80,000 Chandan Garg Admin 2019-10-09 60,000 Himanshi Kaur HR 2019-03-13 75,000 Mohit Dharm HR 2019-05-27 85,000 Meena Batra Accountant 2019-07-11 50,000 Omkar Singh Accountant 2019-01-05 45,000 Pratham Garg Admin 2019-05-27 65,000 Rakesh Sharma HR 2018-06-30 75,000 Sharadha Gupta Accountant 2019-09-18 50,000 Demonstrate how to write a query to show details of an HR whose name starts with M.
in progress 1
55 years 17 Answers 2660 views Great Grand Master

Question
Consider the following database schema for an e-commerce website: Given the following schema of tables: Event table (no index/key) – contains event data recorded when an event occurs: event_name [VARCHAR], user_id [VARCHAR], time [TIMESTAMP]Transaction table (no index / key) – contains ...
in progress 3
55 years 5 Answers 2457 views Great Grand Master