Follow the Below Steps to run the SQL Query.
- Search “Microsoft SQL Server Management Studio” from Start button.
2. Click On Connect button.
3. Change the Database name from Drop Down button.
4. Past here your SQL query like below. And click on Execute button.
5. Below is the output for the query.