0 0 votes sql query for find names of employees with years of experience greater than atleast one employee in the accounts department Databases + – mani8466 2.1k views answer comment Share Follow Print See all 10 Comments 10 10 Comments reply Shaik Masthan commented Aug 24, 2018 reply Follow flag give your tables then ask query 1 1 replyShare mani8466 commented Aug 24, 2018 reply Follow flag no table bro we have to find the crt query in that 4 options. 0 0 replyShare Shaik Masthan commented Aug 25, 2018 i edited by Shaik Masthan Aug 25, 2018 reply Follow flag Actually the question should give TABLES, otherwise we can't answer due to we don't what are the fields and how many tables are involved, In the Standard question they must provide, so don't worry on this question just check is this correct option in that solution? select emp_name from Employee where emp_year_experience > ANY ( select emp_year_experience from Employee where emp_department = " Accounts " ) 0 0 replyShare mani8466 commented Aug 25, 2018 reply Follow flag in the above question they are not asked anything about the emp-age as per the que. we have to create two tables and later find the names of emp. thank you!.... 0 0 replyShare mani8466 commented Aug 25, 2018 reply Follow flag these are the options that are given in the questoin and it is multiple choice que 0 0 replyShare Shaik Masthan commented Aug 25, 2018 reply Follow flag @mani8466 i mistakenly used the term emp_age instead of emp_year_experience.... i will update it.. but note that ANY operator and SOME operators are equal. hence option D is right. 0 0 replyShare Shaik Masthan commented Aug 25, 2018 i edited by Shaik Masthan Aug 25, 2018 reply Follow flag what about option B? it is also right, but in the question they didn't specify distinct names, so i prefer option D 0 0 replyShare mani8466 commented Aug 25, 2018 i reshown by mani8466 Aug 26, 2018 reply Follow flag Of course option D is right bro Wat abt the option B I think option B is also a right option. Because it is multiple choice type que. Thank you..... 0 0 replyShare Shaik Masthan commented Aug 25, 2018 reply Follow flag in my previous comment i discussed about option B only.. But again by mistakenly it is typed as D.... Now read it again... Moreover don't add thank you on every comment. 0 0 replyShare mani8466 commented Aug 26, 2018 reply Follow flag So finally option B,D are correct 0 0 replyShare Please log in or register to add a comment.