How to find the average marks of each student separated by comma | SQL Interview question

 DROP TABLE IF EXISTS Scores


CREATE TABLE Scores

(

[Name] varchar(100),

[Marks] nvarchar(1000)

)


INSERT INTO Scores

VALUES

('Alice', '85,90,88,76,92'),

('Bob', '78,82,80,86,79'),

('Charlie', '62,98,74,65,82'),

('David', '76,84,90,85,79'),

('Eve', '99,88,76,63,95')


SELECT * FROM Scores


Detailed Explanation: 

Comments

Popular posts from this blog

50 Essential SQL Questions to Land Your Dream Job

How to find all the customers who placed orders on three consecutive days | SQL Scenario questions

ACCENTURE SQL INTERVIEW QUESTION | Change the ProductIDs