Data Migration Engineer
Data Migration Engineer Interview Questions and Answers
Q1. 1. Write a query to find the Occurrence count of a character in a column of string datatype? Ex : Column : City, with values : Bangalore, Chennai, Hyderabad . Find how many times A is repeated in these 3 values...
read moreQuery to find occurrence count of a character in a column of string datatype
Use the function LENGTH to get the length of the string
Use the function REPLACE to replace all characters except the one you want to count
Use the function LENGTH again to get the count of the character
Q2. 2. Write a query to delete the duplicate records?
To delete duplicate records, use the DELETE statement with a subquery to identify and remove the duplicates.
Identify the columns that contain duplicate data.
Use the GROUP BY clause to group the data by those columns.
Use the HAVING clause to filter the groups that have more than one row.
Use a subquery to select the duplicate rows.
Use the DELETE statement with the subquery to remove the duplicates.
Data Migration Engineer Interview Questions and Answers for Freshers
Q3. COUNT number of A's in a word (SQL)
Use SQL query with LENGTH and REPLACE functions to count number of A's in a word.
Use LENGTH function to get the total length of the word.
Use REPLACE function to remove all characters except 'A'.
Subtract the length of the word after replacing all characters except 'A' from the original length to get the count of 'A's.
Q4. Count of occurrences of a in a word
The count of occurrences of a specific character in a word.
Iterate through each character in the word
Check if the character is equal to 'a'
If yes, increment a counter variable
Return the counter variable as the count of occurrences
Data Migration Engineer Jobs
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month