sql-select Flashcards
What is SQL and how is it different from languages like JavaScript?
scripted query language - it is declarative - you declare what you want to do and it will figure out how to do it
How do you retrieve specific columns from a database table?
you use the select statement and the columns name in double quotes
How do you filter rows based on some specific criteria?
you use the where clause
What are the benefits of formatting your SQL?
readability -
What are four comparison operators that can be used in a where clause?
less than, greater than, equal to, not equal to
How do you limit the number of rows returned in a result set?
you use the limit clause
How do you retrieve all columns from a database table?
you use the asterisk
How do you control the sort order of a result set?
order by clause and desc if you want