Advertisements
Advertisements
प्रश्न
Using the sports database containing two relations (TEAM, MATCH_DETAILS) and write the Query for the following:
Display the MatchID and date of matches played by Team 1 and won by it.
टीपा लिहा
उत्तर
SELECT MatchID, MatchDate FROM MATCH_DETAILS WHERE (FirstTeamId = 1 AND FirstTeamScore > SecondTeamScore) OR (SecondTeamID = 1 AND SecondTeamScore > FirstTeamScore);
shaalaa.com
SQL for Data Query
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?