SQL 1 & 2 Flashcards

(40 cards)

1
Q

is a specific request for data manipulation issued by the end-user or the application to the DBMS.

A

query

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

SQL Consists of commands that

Create _______and _____structures
Perform various types of data _________ and data _________
Query the _________ to extract useful _________

A

Create database and table structures
Perform various types of data manipulation and data administration
Query the database to extract useful information

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

free edition of SQL server ideal for development and production for desktop, web, and small server applications.

A

Microsoft SQL Server

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

an open-source relational database management system.

A

MySQL

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

– Is a multi-model database management system produced and marketed by Oracle Corporation.

A

Oracle RDBMS

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

a database management system from Microsoft that combines the relational Access Database Engine with a graphical user interface and software-development tools.

A

Microsoft Access

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

bigint, bit, decimal, int, money, numeric

A

exact numeric

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

float, real

A

approximate numeric

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

date, datetime, time

A

date and time

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

char, text, varchar

A

character strings

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

nchar, ntext, nvarchar

A

unicode character strings

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

binary, image, varbinary

A

binary strings

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

cursor, sql_variant, table, uniqueidentifier, xml

A

other data types

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

A large integer. Signed range from -9223372036854775808 to 9223372036854775807. Unsigned range is from 0 to 18446744073709551615. The size parameter specifies the maximum display width (which is 255).

A

BIGINT (size)

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

A bit-value type. The number of bits per value is specified in size. The size parameter can hold a value from 1 to 64. The default value for size is 1.

A

BIT (size)

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

An exact fixed-point number. The total number of digits is specified insize. The number of digits after the decimal point is specified in thedparameter. The maximum number forsizeis 65. The maximum number fordis 30. The default value forsizeis 10. The default value fordis 0.

A

DECIMAL (size, d)

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

A medium integer. Signed range is from -2147483648 to 2147483647. Unsigned range is from 0 to 4294967295. Thesizeparameter specifies the maximum display width (which is 255)

18
Q

Stores currency amounts. Can store fixed-point numbers up to a maximum of 32 significant digits. Can be used like DECIMAL (x,y) format.

19
Q

Used to store fixed-precision and scaled numbers. Similar to DECIMAL data type. This type is useful when precise numeric values are required, such as in financial calculations.

20
Q

Zero is considered as false, nonzero values are considered as true.

A

BOOL or BOOLEAN

21
Q

A normal-size floating point number. The total number of digits is specified insize. The number of digits after the decimal point is specified in thedparameter.

A

DOUBLE (size, d)

22
Q

A floating point number. The total number of digits is specified insize. The number of digits after the decimal point is specified in thedparameter. This syntax is deprecated in MySQL 8.0.17, and it will be removed in future MySQL versions.

A

FLOAT (size, d)

23
Q

An approximate number with floating point numerical data. Equivalent to FLOAT.

24
Q

A date. Format: YYYY-MM-DD. The supported range is from ‘1000-01-01’ to ‘9999-12-31’

25
A date and time combination. Format: YYYY-MM-DD hh:mm:ss. The supported range is from '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Adding DEFAULT and ON UPDATE in the column definition to get automatic initialization and updating to the current date and time. FSP means fractional seconds precision.
DATETIME (fsp)
26
A time. Format: hh:mm:ss. The supported range is from '-838:59:59' to '838:59:59'
TIME (fsp)
27
A fixed length string (can contain letters, numbers, and special characters). The size parameter specifies the column length in characters – can be from 0 to 255. Default is 1.
CHAR (size)
28
Holds a string with a maximum length of 65,535 bytes
TEXT
29
A VARIABLE length string (can contain letters, numbers, and special characters). The size parameter specifies the maximum string length in characters - can be from 0 to 65535.
VARCHAR (size)
30
A fixed-width Unicode string with maximum of 4,000 characters.
NCHAR
31
A variable-width Unicode string with a maximum of 2GB of text data.
NTEXT
32
A variable-width Unicode string with a maximum of 4,000 characters.
NVARCHAR
33
Equal to CHAR() but stores binary byte strings. The size parameter specifies the column length in bytes. Default is 1.
BINARY (size)
34
A variable-width binary string with a maximum of 2GB capacity.
IMAGE
35
Equal to VARCHAR() but stores binary byte strings. The size parameter specifies the maximum column length in bytes.
VARBINARY (size)
36
Stores a reference to a cursor used for database operations. You can use cursors to manipulate data in a database, one row at a time. A cursor uses a SQL SELECT statement to fetch a rowset from a database and then can read and manipulate one row at a time.
CURSOR
37
Stores up to 8,000 bytes of data of various data types, except text, ntext, and timestamp. A column of type sql_variant may contain rows of different data types. For example, a column defined as sql_variant can store int, binary, and char values. sql_variant can have a maximum length of 8016 bytes.
SQL_VARIANT
38
Stores a result-set for later processing.
TABLE
39
Stores a globally unique identifier (GUID). It can store 16 bytes of data.
UNIQUEIDENTIFIER
40
Stores XML formatted data with a maximum of 2GB capacity. A built-in data type in SQL server and is somewhat similar to other built-in data type such as int and varchar.
XML