Basic SQL
SQL Symbols
SQL Operators
SSMS
SQL
100

Command for DQL

SELECT

100

These symbols mean greater than or equal to?

>=

100

This word joins two conditions in the where line.

AND, OR

100

How do you specify the database that you are using for a query?

Specify the database in the dropdown in SQL-Server Management Studio, use the 'Use database' syntax, or input  in the script the database name at the start of db objects.

100

A query nested within the WHERE clause of another query.

SUBQUERY
200

Used to create an alias

AS

200

This symbol means a wildcard.

%

200

This operator stands for equal to.

=

200

A tool where you write queries.

Query Design Window, Query Editor Window

200

SQL Statement to delete specific /all rows from a table

DELETE

300

This symbol brings back all the rows and columns.

*

300

This symbol means less than.

<

300

These operators bring back a range of values.

BETWEEN AND

300

How do you run an sql query?

Click the 'EXECUTE' command on the toolbar Or press F5.

300

It returns NULL when both parameters are the same.

NULLIF

400

This word limits the data brought back or retrieved.

WHERE

400

These symbols go around a list of values with the in operator.

( )

400

This operator searches for a pattern of letters.

LIKE

400

True or False: Number of integer datatypes can be specified in SSMS. Example: int(4)

FALSE

400
How many primary keys can you have in a table?

1

500

This symbol ends a SQL statement.

;

500

These symbols mean not equal.

!=, <>

500

This operator gives a list of values.

IN

500

A system stored procedure that can be used to rename a table, column or user-defined sp.

SP_RENAME

500

This operator combines the result set of two different queries. Number of columns and their datatypes in the two queries must match.

UNION / UNION ALL

M
e
n
u