SQL Prompt Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the keyboard shortcut for executing the current statement?

A

Shift + F5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the keyboard shortcut for executing a query?

A

F5 or Ctrl + E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the keyboard shortcut for showing code completion suggestions?

A

Ctrl + Space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to insert a “SELECT * FROM”-snippet?

A

ssf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to insert a “SELECT TOP 100 * FROM”-snippet?

A

st100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to insert an “ORDER BY”-snippet?

A

ob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to insert a “BEGIN…END” snippet?

A

be

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to insert a “SELECT COUNT(*)… FROM”-snippet?

A

scf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to cancel a running query?

A

Alt + Break

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between a “INSERT INTO … SELECT * FROM”-statement and a “SELECT * INTO … FROM …“-statement?

A
  • SELECT … INTO newTbl FROM existingTbl
  • INSERT INTO existingTbl SELECT * FROM existingTbl2
  • SELECT INTO inserts data from an existing table into a new table while INSERT INTO inserts data from an existing table in another existing table
  • With SELECT INTO the INTO statement comes after SELECT and FROM; with INSERT INTO the INSERT INTO comes before the SELECT-statement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the shortcut for closing a query window?

A

Ctrl + F4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly