I am new to SQL can someone help me understand why do we use Select .* in sql server ? And why is it different from just select * from table name In some cases we use statements like select .*, firstname , lastname from employee. Just a bit confused.
1 Answer
.* means, select all columns of a table
SELECT A.*,B.Id from A,B select all columns of A and only Id column of B.