SQL 1 & 2 Flashcards
(40 cards)
is a specific request for data manipulation issued by the end-user or the application to the DBMS.
query
SQL Consists of commands that
Create _______and _____structures
Perform various types of data _________ and data _________
Query the _________ to extract useful _________
Create database and table structures
Perform various types of data manipulation and data administration
Query the database to extract useful information
free edition of SQL server ideal for development and production for desktop, web, and small server applications.
Microsoft SQL Server
an open-source relational database management system.
MySQL
– Is a multi-model database management system produced and marketed by Oracle Corporation.
Oracle RDBMS
a database management system from Microsoft that combines the relational Access Database Engine with a graphical user interface and software-development tools.
Microsoft Access
bigint, bit, decimal, int, money, numeric
exact numeric
float, real
approximate numeric
date, datetime, time
date and time
char, text, varchar
character strings
nchar, ntext, nvarchar
unicode character strings
binary, image, varbinary
binary strings
cursor, sql_variant, table, uniqueidentifier, xml
other data types
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).
BIGINT (size)
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.
BIT (size)
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.
DECIMAL (size, d)
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)
INT (size)
Stores currency amounts. Can store fixed-point numbers up to a maximum of 32 significant digits. Can be used like DECIMAL (x,y) format.
MONEY
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.
NUMERIC
Zero is considered as false, nonzero values are considered as true.
BOOL or BOOLEAN
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.
DOUBLE (size, d)
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.
FLOAT (size, d)
An approximate number with floating point numerical data. Equivalent to FLOAT.
REAL
A date. Format: YYYY-MM-DD. The supported range is from ‘1000-01-01’ to ‘9999-12-31’
DATE