This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
Given a table that stores the text of a chat application. This table contains the row identifier (textID) and the row content (textContent).
CREATE TABLE chat (textID int identity(1,1), textContent varchar(MAX)) GO