28
loading...
This website collects cookies to deliver better user experience
SELECT [Column Name]
FROM [Table]
SELECT [Column Name1], [Column Name2] , [Column Name3],...
FROM [Table Name]
SELECT *
FROM [Table]
Although we can refer to it with the schemaName as this works as well.
Select firstname
From Person.Person
All the statement we write in SSMS are case insensitive.
Select firstname, middleName, lastName
From Person.Person
SSMS not only shows us the columns available in an intuitive way but it also shows us any functions that are available to us in SSMS.
Select top N [Column Names or *]
From [Table Name]
Select top N Percent [Column Names or *]
From [Table Name]
Select top 5 Percent [Column Names or *]
From [Table Name]