Deck 3: The Relational Model 2: SQL

ملء الشاشة (f)
exit full mode
سؤال
You can use the GROUP BY clause and the ORDER BY clause in the same SELECT statement.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The rules for naming tables and columns are the same in every version of SQL.
سؤال
Preceding a condition by the NOT operator reverses the truth or falsity of the original condition.
سؤال
In SQL,you use the SORT BY clause to display results in a desired order.
سؤال
The IN operator can be used instead or the OR operator in phrasing certain conditions.
سؤال
There are two versions of the "not equal to" operator: <> and !=.
سؤال
When a query involves a character field,such as CustomerName,you must enclose the value to which the field is being compared in percent symbols (%).
سؤال
Fields will appear in the query results in the order in which they are listed in the SELECT clause.
سؤال
The BETWEEN operator is an essential feature of SQL.
سؤال
When rows are grouped,one line of output is produced for each group.
سؤال
Instead of listing all the field names in the SELECT clause,you can use the * symbol.
سؤال
In SQL,you join tables by entering the appropriate conditions in the WHERE clause.
سؤال
In a SELECT statement,the WHERE clause is mandatory.
سؤال
Most relational DBMSs use a version of SQL as a data manipulation language.
سؤال
When you enter numbers in an SQL command,you do not type commas or dollar signs.
سؤال
CHAR data types are numbers without a decimal part.
سؤال
You can combine values in character fields as well as number fields.
سؤال
A WHERE and a HAVING clause cannot be included in the same query.
سؤال
To create numbers with decimals in Access,you can use the CURRENCY,NUMBER,or DECIMAL data types.
سؤال
The HAVING clause is to groups what the WHERE clause is to rows.
سؤال
To add new data to a table,use the ____ command.

A)ADDTO
B)DELETE
C)INSERT
D)SELECT
سؤال
In MySQL,the ____ is used as a wildcard to represent any collection of characters.

A)asterisk (*)
B)underscore (_)
C)percent sign (%)
D)question mark (?)
سؤال
To use a wildcard,include the ____ operator in the WHERE clause.

A)AS
B)UNION
C)BETWEEN
D)LIKE
سؤال
Based on the code above,list the number,name,credit limit,and balance for all customers with credit limits that exceed their balances.

A)SELECT CustomerNum,CustomerName,CreditLimit,Balance FROM Customer ;
B)SELECT CustomerNum,CustomerName,CreditLimit,Balance FROM Customer WHERE CreditLimit>Balance ;
C)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE CreditLimit>Balance ;
D)SELECT CustomerNum,CustomerName FROM Customer WHERE CreditLimit>Balance ;
سؤال
When used after the word SELECT,the ____ symbol indicates that you want to include all fields in the query results in the order in which you described them to the DBMS when you created the table.

A)&
B)*
C)$
D)#
سؤال
When you use a name containing a space in Access SQL,you must ____.

A)enclose it in square brackets
B)enclose it in quotation marks
C)precede it by an asterisk
D)precede it by a question mark
سؤال
In Access SQL,the ____ is used as a wildcard to represent any individual character.

A)asterisk (*)
B)underscore (_)
C)percent sign (%)
D)question mark (?)
سؤال
Based on the code above,list the number,name,street,and credit limit of all customers. Order the customers by name within descending credit limit.

A)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer SORT BY CreditLimit DESC,CustomerName ;
B)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer SORT BY CreditLimit ASC,CustomerName ;
C)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer ORDER BY CreditLimit DESC,CustomerName ;
D)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer ORDER BY CreditLimit ASC,CustomerName ;
سؤال
When rows are grouped,____.

A)the totals appear with the rows
B)the rows appear in order
C)no output is produced
D)one line of output is produced for each group
سؤال
You can save the results of a query as a table by including the ____ clause in the query.

A)INTO
B)INSERT
C)UPDATE
D)DELETE
سؤال
Based on the code above,list the number,name,and balance of all customers with balances greater than or equal to $1,000 and less than or equal to $5,000.

A)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
B)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE Balance > 1000 ;
C)SELECT CustomerName,Balance FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
D)SELECT CustomerNum,CustomerName FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
سؤال
Based on the code above,list the number,name,and complete address of every customer located on a street that contains the letters "Oxford".

A)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "?Oxford" ;
B)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "%Oxford%" ;
C)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "@Oxford@" ;
D)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "Oxford" ;
سؤال
The ____ function determines the largest value in a given column.

A)LGE
B)LARGE
C)MAX
D)MAXIMUM
سؤال
When a subquery is used,____ is(are) evaluated first.

A)the subquery query
B)the outer query
C)both a and b simultaneously
D)whichever query is selected to execute first by the user
سؤال
Based on the code above,list the number,name,and available credit for all customers with credit limits that exceed their balances.

A)SELECT CustomerNum,CustomerName AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
B)SELECT CustomerNum,CustomerName,CreditLimit AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
C)SELECT CustomerNum,CustomerName,Balance AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
D)SELECT CustomerNum,CustomerName,CreditLimit-Balance AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
سؤال
Based on the code above,for each sales rep,list the rep number,the number of customers assigned to the rep,and the average balance of the rep's customers. Group the records by rep number and order the records by rep number.

A)SELECT RepNum,AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
B)SELECT RepNum,COUNT(*),AVG(Balance) FROM Part GROUP BY RepNum ORDER BY RepNum ;
C)SELECT RepNum,COUNT(*),AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
D)SELECT RepNum,COUNT(*) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
سؤال
Many versions of SQL require you to end a command with a ____.

A)comma (,)
B)period (.)
C)colon (:)
D)semicolon (;)
سؤال
In order to make changes to existing data in a table,you would use the ____ command.

A)DELETE
B)CHANGE
C)SELECT
D)UPDATE
سؤال
The basic form of an SQL retrieval command is ____.

A)SELECT-WHERE-FROM
B)CREATE-SELECT-FROM
C)SELECT-WHERE
D)SELECT-FROM-WHERE
سؤال
The ____ clause can be used to create groups of records.

A)SELECT
B)ORDER BY
C)SORT BY
D)GROUP BY
سؤال
In Access,you can combine values in character fields into a single computed field by using the ____________________ operator.
سؤال
A simple condition includes the field name,a(n) ____________________ operator,and either another field name or a value.
سؤال
Based on the code above,delete any row in the OrderLine table in which the part number is BV06.

A)DELETE FROM OrderLine WHERE PartNum='BV06' ;
B)DELETE FROM OrderLine WHERE PartNum=BV06 ;
C)DELETE FROM OrderLine WHERE PartNum='BV06'
D)DELETE FROM OrderLine WHERE PartNum='BV6' ;
سؤال
SQL was developed under the name ____________________ at the IBM San Jose research facilities.
سؤال
Use the ____________________ data type for fields that contain letters and other special characters,and for fields that contain numbers that will not be used for arithmetic.
سؤال
The ____________________ data type stores integers,but uses less space than INTEGER.
سؤال
Based on the code above,list the name of every student whose Zip code is 10113.

A)SELECT FirstName,LastName WHERE Zip='10113' ;
B)SELECT FirstName,LastName FROM Student WHERE Zip='10113' ;
C)SELECT FirstName,LastName FROM Student WHERE Zip='10113'
D)SELECT * FROM Student WHERE Zip='10113' ;
سؤال
Based on the code above,list the complete student table.

A)SELECT Student ;
B)SELECT & FROM Student ;
C)SELECT * FROM Student ;
D)SELECT LastName,FirstName,Street,City,State,Zip FROM Student
سؤال
Based on the code above,change the Zip code of the student with ID 11433 to 14455.

A)UPDATE Student SET Zip='14455' ;
B)UPDATE Student SET Zip WHERE StudentID='11433' ;
C)UPDATE Student IN Zip='14455' WHERE StudentID='11433' ;
D)UPDATE Student SET Zip='14455' WHERE StudentID='11433' ;
سؤال
Based on the code above,find how many parts are in item class HW.

A)SELECT SUM(*) FROM Part WHERE Class='HW' ;
B)SELECT COUNT(*) FROM Part WHERE Class='HW' ;
C)SELECT COUNT FROM Part WHERE Class='HW' ;
D)SELECT COUNT* FROM Part WHERE Class='HW' ;
سؤال
In MySQL,you use the ____________________ function to concatenate fields.
سؤال
By using the word ____________________ in a query after a computation,you can assign a name to the computed field.
سؤال
Based on the code above,list the descriptions of all parts that are not in Warehouse 3.

A)SELECT Description FROM Customer WHERE NOT Warehouse='3' ;
B)SELECT Description FROM Part WHERE Warehouse='4' ;
C)SELECT Description FROM Part WHERE Warehouse>'3' ;
D)SELECT Description FROM Part WHERE NOT Warehouse='3' ;
سؤال
As you are working in MySQL,the most recent command you entered is stored in a special area of memory called the ____________________.
سؤال
Based on the code above,find the name of the student whose ID is 1167.

A)SELECT FirstName,LastName FROM Course WHERE StudentID='1167' ;
B)SELECT FirstName,LastName FROM Part WHERE StudentID='1167' ;
C)SELECT FirstName,LastName FROM Student WHERE StudentID='1167' ;
D)SELECT FirstName,LastName FROM Customer WHERE StudentID='1167' ;
سؤال
Based on the code above,list the descriptions of all parts that are located in Warehouse 3 and for which there are more than 20 units on hand.

A)SELECT Description FROM Part WHERE Warehouse='3' AND OnHand>20 ;
B)SELECT Description FROM Part WHERE Warehouse='3' OR OnHand>20 ;
C)SELECT Description FROM Part WHERE Warehouse='3' ;
D)SELECT Description FROM Customer WHERE Warehouse='3' AND OnHand>20 ;
سؤال
When you connect simple conditions using the ____________________ operator,the compound condition will be true whenever any of the simple conditions are true.
سؤال
One common restriction placed on table and column names by DBMSs is that names can contain only letters,numbers,and ____________________.
سؤال
Based on the code above,list the descriptions of all parts that are located in Warehouse 3 or for which there are more than 20 units on hand,or both.

A)SELECT Description FROM Customer WHERE Warehouse='3' AND OnHand>20 ;
B)SELECT Description FROM Part WHERE Warehouse='3' OR OnHand>20 ;
C)SELECT Description FROM Part WHERE Warehouse='3' ;
D)SELECT Description FROM Part WHERE OnHand>20 ;
سؤال
You use the SQL ____________________ command to create a table by describing its layout.
سؤال
To qualify a field name,precede the name of the field with the name of the table,followed by a(n) ____________________.
سؤال
Describe how to construct a detailed query in a step-by-step fashion.
سؤال
When you need to sort data on two fields,the more important sort key is called the ____________________ sort key.
سؤال
The two tables involved in a union must have the same structure,or be ____________________.
سؤال
SQL has built-in functions,which are also called ____________________ functions.
سؤال
The ____________________ of two tables is a table containing all rows that are in either the first table,the second table,or both.
سؤال
In SQL,you sort data using the ____________________ clause.
سؤال
Discuss the restriction concerning the structure of two tables involved in a union.
سؤال
What are some common restrictions place on table and column names by DBMSs?
سؤال
When you place one query inside another,the inner query is called a(n)____________________.
سؤال
Many versions of SQL,including MySQL,use the ____________________ as a wildcard to represent any individual character.
سؤال
When you need to sort data on two fields,the less important key is called the ____________________ sort key.
سؤال
Describe five data types that you will often encounter when working with databases.
سؤال
How does the format for dates in queries in Access differ from other implementations of SQL?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/74
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: The Relational Model 2: SQL
1
You can use the GROUP BY clause and the ORDER BY clause in the same SELECT statement.
True
2
The rules for naming tables and columns are the same in every version of SQL.
False
3
Preceding a condition by the NOT operator reverses the truth or falsity of the original condition.
True
4
In SQL,you use the SORT BY clause to display results in a desired order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
5
The IN operator can be used instead or the OR operator in phrasing certain conditions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
6
There are two versions of the "not equal to" operator: <> and !=.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
7
When a query involves a character field,such as CustomerName,you must enclose the value to which the field is being compared in percent symbols (%).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
8
Fields will appear in the query results in the order in which they are listed in the SELECT clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
9
The BETWEEN operator is an essential feature of SQL.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
10
When rows are grouped,one line of output is produced for each group.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
11
Instead of listing all the field names in the SELECT clause,you can use the * symbol.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
12
In SQL,you join tables by entering the appropriate conditions in the WHERE clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
13
In a SELECT statement,the WHERE clause is mandatory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
14
Most relational DBMSs use a version of SQL as a data manipulation language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
15
When you enter numbers in an SQL command,you do not type commas or dollar signs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
16
CHAR data types are numbers without a decimal part.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
17
You can combine values in character fields as well as number fields.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
18
A WHERE and a HAVING clause cannot be included in the same query.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
19
To create numbers with decimals in Access,you can use the CURRENCY,NUMBER,or DECIMAL data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
20
The HAVING clause is to groups what the WHERE clause is to rows.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
21
To add new data to a table,use the ____ command.

A)ADDTO
B)DELETE
C)INSERT
D)SELECT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
22
In MySQL,the ____ is used as a wildcard to represent any collection of characters.

A)asterisk (*)
B)underscore (_)
C)percent sign (%)
D)question mark (?)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
23
To use a wildcard,include the ____ operator in the WHERE clause.

A)AS
B)UNION
C)BETWEEN
D)LIKE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
24
Based on the code above,list the number,name,credit limit,and balance for all customers with credit limits that exceed their balances.

A)SELECT CustomerNum,CustomerName,CreditLimit,Balance FROM Customer ;
B)SELECT CustomerNum,CustomerName,CreditLimit,Balance FROM Customer WHERE CreditLimit>Balance ;
C)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE CreditLimit>Balance ;
D)SELECT CustomerNum,CustomerName FROM Customer WHERE CreditLimit>Balance ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
25
When used after the word SELECT,the ____ symbol indicates that you want to include all fields in the query results in the order in which you described them to the DBMS when you created the table.

A)&
B)*
C)$
D)#
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
26
When you use a name containing a space in Access SQL,you must ____.

A)enclose it in square brackets
B)enclose it in quotation marks
C)precede it by an asterisk
D)precede it by a question mark
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
27
In Access SQL,the ____ is used as a wildcard to represent any individual character.

A)asterisk (*)
B)underscore (_)
C)percent sign (%)
D)question mark (?)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
28
Based on the code above,list the number,name,street,and credit limit of all customers. Order the customers by name within descending credit limit.

A)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer SORT BY CreditLimit DESC,CustomerName ;
B)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer SORT BY CreditLimit ASC,CustomerName ;
C)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer ORDER BY CreditLimit DESC,CustomerName ;
D)SELECT CustomerNum,CustomerName,Street,CreditLimit FROM Customer ORDER BY CreditLimit ASC,CustomerName ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
29
When rows are grouped,____.

A)the totals appear with the rows
B)the rows appear in order
C)no output is produced
D)one line of output is produced for each group
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
30
You can save the results of a query as a table by including the ____ clause in the query.

A)INTO
B)INSERT
C)UPDATE
D)DELETE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
31
Based on the code above,list the number,name,and balance of all customers with balances greater than or equal to $1,000 and less than or equal to $5,000.

A)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
B)SELECT CustomerNum,CustomerName,Balance FROM Customer WHERE Balance > 1000 ;
C)SELECT CustomerName,Balance FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
D)SELECT CustomerNum,CustomerName FROM Customer WHERE Balance BETWEEN 1000 AND 5000 ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
32
Based on the code above,list the number,name,and complete address of every customer located on a street that contains the letters "Oxford".

A)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "?Oxford" ;
B)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "%Oxford%" ;
C)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "@Oxford@" ;
D)SELECT CustomerNum,CustomerName,Street,City,State,Zip FROM Customer WHERE Street LIKE "Oxford" ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
33
The ____ function determines the largest value in a given column.

A)LGE
B)LARGE
C)MAX
D)MAXIMUM
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
34
When a subquery is used,____ is(are) evaluated first.

A)the subquery query
B)the outer query
C)both a and b simultaneously
D)whichever query is selected to execute first by the user
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
35
Based on the code above,list the number,name,and available credit for all customers with credit limits that exceed their balances.

A)SELECT CustomerNum,CustomerName AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
B)SELECT CustomerNum,CustomerName,CreditLimit AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
C)SELECT CustomerNum,CustomerName,Balance AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
D)SELECT CustomerNum,CustomerName,CreditLimit-Balance AS AvailableCredit FROM Customer WHERE CreditLimit>Balance ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
36
Based on the code above,for each sales rep,list the rep number,the number of customers assigned to the rep,and the average balance of the rep's customers. Group the records by rep number and order the records by rep number.

A)SELECT RepNum,AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
B)SELECT RepNum,COUNT(*),AVG(Balance) FROM Part GROUP BY RepNum ORDER BY RepNum ;
C)SELECT RepNum,COUNT(*),AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
D)SELECT RepNum,COUNT(*) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
37
Many versions of SQL require you to end a command with a ____.

A)comma (,)
B)period (.)
C)colon (:)
D)semicolon (;)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
38
In order to make changes to existing data in a table,you would use the ____ command.

A)DELETE
B)CHANGE
C)SELECT
D)UPDATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
39
The basic form of an SQL retrieval command is ____.

A)SELECT-WHERE-FROM
B)CREATE-SELECT-FROM
C)SELECT-WHERE
D)SELECT-FROM-WHERE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
40
The ____ clause can be used to create groups of records.

A)SELECT
B)ORDER BY
C)SORT BY
D)GROUP BY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
41
In Access,you can combine values in character fields into a single computed field by using the ____________________ operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
42
A simple condition includes the field name,a(n) ____________________ operator,and either another field name or a value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
43
Based on the code above,delete any row in the OrderLine table in which the part number is BV06.

A)DELETE FROM OrderLine WHERE PartNum='BV06' ;
B)DELETE FROM OrderLine WHERE PartNum=BV06 ;
C)DELETE FROM OrderLine WHERE PartNum='BV06'
D)DELETE FROM OrderLine WHERE PartNum='BV6' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
44
SQL was developed under the name ____________________ at the IBM San Jose research facilities.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
45
Use the ____________________ data type for fields that contain letters and other special characters,and for fields that contain numbers that will not be used for arithmetic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
46
The ____________________ data type stores integers,but uses less space than INTEGER.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
47
Based on the code above,list the name of every student whose Zip code is 10113.

A)SELECT FirstName,LastName WHERE Zip='10113' ;
B)SELECT FirstName,LastName FROM Student WHERE Zip='10113' ;
C)SELECT FirstName,LastName FROM Student WHERE Zip='10113'
D)SELECT * FROM Student WHERE Zip='10113' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
48
Based on the code above,list the complete student table.

A)SELECT Student ;
B)SELECT & FROM Student ;
C)SELECT * FROM Student ;
D)SELECT LastName,FirstName,Street,City,State,Zip FROM Student
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
49
Based on the code above,change the Zip code of the student with ID 11433 to 14455.

A)UPDATE Student SET Zip='14455' ;
B)UPDATE Student SET Zip WHERE StudentID='11433' ;
C)UPDATE Student IN Zip='14455' WHERE StudentID='11433' ;
D)UPDATE Student SET Zip='14455' WHERE StudentID='11433' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
50
Based on the code above,find how many parts are in item class HW.

A)SELECT SUM(*) FROM Part WHERE Class='HW' ;
B)SELECT COUNT(*) FROM Part WHERE Class='HW' ;
C)SELECT COUNT FROM Part WHERE Class='HW' ;
D)SELECT COUNT* FROM Part WHERE Class='HW' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
51
In MySQL,you use the ____________________ function to concatenate fields.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
52
By using the word ____________________ in a query after a computation,you can assign a name to the computed field.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
53
Based on the code above,list the descriptions of all parts that are not in Warehouse 3.

A)SELECT Description FROM Customer WHERE NOT Warehouse='3' ;
B)SELECT Description FROM Part WHERE Warehouse='4' ;
C)SELECT Description FROM Part WHERE Warehouse>'3' ;
D)SELECT Description FROM Part WHERE NOT Warehouse='3' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
54
As you are working in MySQL,the most recent command you entered is stored in a special area of memory called the ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
55
Based on the code above,find the name of the student whose ID is 1167.

A)SELECT FirstName,LastName FROM Course WHERE StudentID='1167' ;
B)SELECT FirstName,LastName FROM Part WHERE StudentID='1167' ;
C)SELECT FirstName,LastName FROM Student WHERE StudentID='1167' ;
D)SELECT FirstName,LastName FROM Customer WHERE StudentID='1167' ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
56
Based on the code above,list the descriptions of all parts that are located in Warehouse 3 and for which there are more than 20 units on hand.

A)SELECT Description FROM Part WHERE Warehouse='3' AND OnHand>20 ;
B)SELECT Description FROM Part WHERE Warehouse='3' OR OnHand>20 ;
C)SELECT Description FROM Part WHERE Warehouse='3' ;
D)SELECT Description FROM Customer WHERE Warehouse='3' AND OnHand>20 ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
57
When you connect simple conditions using the ____________________ operator,the compound condition will be true whenever any of the simple conditions are true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
58
One common restriction placed on table and column names by DBMSs is that names can contain only letters,numbers,and ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
59
Based on the code above,list the descriptions of all parts that are located in Warehouse 3 or for which there are more than 20 units on hand,or both.

A)SELECT Description FROM Customer WHERE Warehouse='3' AND OnHand>20 ;
B)SELECT Description FROM Part WHERE Warehouse='3' OR OnHand>20 ;
C)SELECT Description FROM Part WHERE Warehouse='3' ;
D)SELECT Description FROM Part WHERE OnHand>20 ;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
60
You use the SQL ____________________ command to create a table by describing its layout.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
61
To qualify a field name,precede the name of the field with the name of the table,followed by a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
62
Describe how to construct a detailed query in a step-by-step fashion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
63
When you need to sort data on two fields,the more important sort key is called the ____________________ sort key.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
64
The two tables involved in a union must have the same structure,or be ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
65
SQL has built-in functions,which are also called ____________________ functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
66
The ____________________ of two tables is a table containing all rows that are in either the first table,the second table,or both.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
67
In SQL,you sort data using the ____________________ clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
68
Discuss the restriction concerning the structure of two tables involved in a union.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
69
What are some common restrictions place on table and column names by DBMSs?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
70
When you place one query inside another,the inner query is called a(n)____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
71
Many versions of SQL,including MySQL,use the ____________________ as a wildcard to represent any individual character.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
72
When you need to sort data on two fields,the less important key is called the ____________________ sort key.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
73
Describe five data types that you will often encounter when working with databases.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
74
How does the format for dates in queries in Access differ from other implementations of SQL?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.