हिंदी

Predict the output of the following queries based on the table Sports given below: Table: Sports Sid 1 SName Karate Fees 1200 DateofPlay 2024-08-24 CoachId S1 - Informatics Practices

Advertisements
Advertisements

प्रश्न

Predict the output of the following query based on the table Sports given below:

Table: Sports 

Sid SName Fees DateofPlay CoachId
1 Karate 1200 2024-08-24 S1
2 Football 1800 2024-09-13 S2
3 Cricket 1500 2024-06-14 S3
4 Lawn Tennis 2500 2024-09-25 S4
5 Badminton 1800 2024-10-20 S5

SELECT LEFT (SName, 3) FROM Sports WHERE DateofPlay>"2024-09-13"; 

लघु उत्तरीय

उत्तर

Output: Law
Bad

Explanation:

For records where the DateofPlay column is after September 13, 2024, the supplied SQL query removes the first three characters from the Sports table's SName column. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×