Worksheet-1 MySQL Functions
Worksheet-1 MySQL Functions
1) Display four digit area code present in the phone number starting from position number 3. For
example, 1851 is the area code of mobile number 9818511338.
Now, write the SQL query to display the area code of the customer.
2) Display emails after removing the domain name extension “.com” from emails of the customers
4) display the secret code which is the combination of first 3 characters of custname followed by the
length of the name and then last 2 digits of phone.
6)display the 2,3,4 characters of email in upper case. [ use nested function]
7) Display the length of the email and part of the email from the email ID before the character ‘@’. Note
- Do not print ‘@’. [ e4 students will not do]