SQL Database Concepts Exercise.
SQL Database Concepts Exercise.
a) Int
b) Char
c) Date
d) Currency
2. Which data type would you use to store a variable-length string of up to 2GB in SQL
Server 2012?
a) Varchar(max)
b) Text
c) Nvarchar
d) Char
a. The length of the resulting string may not be sufficient to hold the
entire value.
b) The CAST function only works with integer values, not decimal values.
c) The CAST function can result in the loss of precision for the numeric value.
d) The resulting character string may not be compatible with other string-based
functions or operators.
10. Which SQL keyword is used to retrieve data from one or more tables in a database?
a) Select
b) Delete
c) Insert
d) Retrieve
e) None of the above
True or False
1. File groups in SQL Server are used to organize database objects physically on disk.
2. The primary advantage of file groups in SQL Server is that they allow for more
efficient backup and recovery of the database.
3. File groups in SQL Server can be used to specify which database objects should be
backed up or restored.
4. When creating a file group in SQL Server, it is necessary to specify the location of the
physical files on disk.
5. One disadvantage of using file groups in SQL Server is that it can increase the
complexity of database administration.
6. It is possible to move database objects from one file group to another in SQL Server
using the ALTER TABLE statement.
7. In SQL Server, a file group can be marked as read-only to prevent modifications to
the objects stored in it.
8. It is possible to perform a partial backup of a file group in SQL Server, rather than
backing up the entire database.
9. File groups in SQL Server are not supported in all editions of the software.
10. In SQL Server, it is possible to specify a different backup schedule for each file group
in a database.