3 votes 3 votes The $SQL$ Expression Select distinct $T$. branch name from branch $T$, branch $S$ where $T$. assets $> S$. assets and $S$. branch-city = DELHI, finds the name of All branches that have greater asset than any branch located in DELHI. All branches that have greater assets than allocated in DELHI. The branch that has the greatest asset in DELHI. Any branch that has greater asset than any branch located in DELHI. Databases ugcnetcse-dec2011-paper2 databases sql + – makhdoom ghaya asked Aug 17, 2016 • recategorized Jun 27, 2022 by gatecse makhdoom ghaya 2.6k views answer comment Share Follow See 1 comment See all 1 1 comment reply focus _GATE commented Aug 18, 2016 reply Follow Share D option ans .? Because if more than same branch name if exist in relation T than option a and b not possible because query says distinct and in options a as well as in b it says All branches which is not true ! C option also seems false because there is possibility that city may not delhi and has greatest assests! 1 votes 1 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes SELECT distinct TT. branch name From branch TT, branch SS Where TT. assets >SS.assets and SS.branch-city = DELHI Return : Any branch that has greater asset than any(any one ) branch located in DELHI. Prashant. answered Aug 22, 2016 • selected Aug 25, 2016 by Prashant. Prashant. comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Here S is located in delhi, and S could me many ,,for say 3 branched in delhi asset =30,40,50 and T has 40,60now according to query t.asset>s.asset and here 40>30 and 60>all s any T that is larger than any S will be printed D is the correct answer Aboveallplayer answered Aug 22, 2016 Aboveallplayer comment Share Follow See all 0 reply Please log in or register to add a comment.