SQL for Non-Programmers -- Homework Practice


Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

DECLARE @id INT = ##UserId##

SELECT Users.Id, Comments.Score, Comments.Text
FROM Users
JOIN Comments ON Comments.UserId = Users.Id
WHERE @id = Users.Id

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results