Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues in solution N2 #5

Open
JAMHMOHAMED opened this issue Nov 2, 2021 · 1 comment
Open

issues in solution N2 #5

JAMHMOHAMED opened this issue Nov 2, 2021 · 1 comment

Comments

@JAMHMOHAMED
Copy link

since the LIMIT keyword do not exist in sql server
you can use this syntaxe to solve the problem
SELECT * FROM albums WHERE release_year = (SELECT MIN(release_year) FROM albums)

@chefkold
Copy link

A SQL server solution that is more similar to the MySQL syntax:
SELECT TOP 1 * FROM albums WHERE release_year IS NOT NULL ORDER BY release_year ASC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants