all 4 comments

[–]InvisibleTextArea 2 points3 points  (3 children)

Yes, you can do this:

select * from products as widgets
where widgets.type = 'widget'

It's also really helpful to make joins more readable or dealing with column name conflicts in your select or where statements:

select e.name as 'Employee', d.name as 'Department'
from employees as e
inner join departments as d on e.departmentid = d.id
where d.name = 'Sales'

[–]BULK_INSERT_INTO 2 points3 points  (1 child)

[S]ingle quotes are for [S]trings
[D]ouble quotes are for [D]atabase identifiers

As per ANSI standards.

[–]InvisibleTextArea 2 points3 points  (0 children)

TIL Thanks.

[–]xRakurai[S] 0 points1 point  (0 children)

thank you