हिंदी

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. -

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×