0% found this document useful (0 votes)
2 views1 page

Assignment 1

The document contains a table of customer information including CustomerID, FirstName, LastName, Email, Country, and Phone. It outlines tasks to create additional columns such as FullName, EmailDomain, Phone Prefix, and Country Code, along with a measure for Customer List. Each task includes hints on the functions to use for completion.

Uploaded by

Vikrant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Assignment 1

The document contains a table of customer information including CustomerID, FirstName, LastName, Email, Country, and Phone. It outlines tasks to create additional columns such as FullName, EmailDomain, Phone Prefix, and Country Code, along with a measure for Customer List. Each task includes hints on the functions to use for completion.

Uploaded by

Vikrant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CustomerID FirstName LastName Email Country Phone

C001 John Smith [email protected] USA 1234567890


C002 Aisha Khan [email protected] UK 9876543210
C003 Rahul Mehta [email protected] India 9988776655
C004 Maria Garcia [email protected] USA 8899776655

Tasks:

✅ 1. Create a column FullName that combines FirstName and LastName with a space
between them.

Hint: Use CONCATENATE or &.

✅ 2. Create a column EmailDomain to extract the domain part of the email (e.g.,
email.com, email.co.uk).

Hint: Use SEARCH, MID, or RIGHT.

✅ 3. Create a column Phone Prefix that shows the first 3 digits of the Phone number.

Hint: Use LEFT.

✅ 4. Create a column Country Code that shows:

 "US" if the Country is "USA"


 "UK" if the Country is "UK"
 "IN" if the Country is "India"
 Else "Other"

Hint: Use SWITCH or IF.

✅ 5. Create a measure called Customer List that concatenates all FullNames into a
single string separated by commas.

DiSHA Computer Institute, Ravet Branch

You might also like