SQL Server doesn’t have macros. It has SELECT statements. The basic syntax is:
<pre>SELECT Column1, Column2
WHERE Column3 = ‘Condition'</pre>
You can read up more about the SELECT statement <a href=”http://itknowledgeexchange.techtarget.com/sql-server/back-to-basics-the-select-statement/”>here</a> as part of the <a href=”http://itknowledgeexchange.techtarget.com/sql-server/tag/back-to-basics/”>Back To Basics</a> series.