According to the SQL-92 standard the asterisk (*) means in Select statements
1.all columns of the table are to be returned
2.all records meeting the full criteria are to be returned
3. all records with even partial criteria met are to be returned
4.None
How to select all data from student table starting the name from letter a?
1.%a%
2.a%
3._a&
4.None
SQL can be used to
1.create database structures
2.query database data
3.modify database data
4.All of the above
sub-query in an SQL SELECT statement is enclosed in
1.brackets -- [...]
2.parenthesis -- (...)
3.CAPITAL LETTERS
4.braces -- {...}
The command to delete a table from a database
1.DROP TABLE tablename ;
2.DELETE TABLE tablename ;
3.REMOVE TABLE tablename ;
4.UPDATE TABLE tablename ;
The HAVING clause does which of the following?
1.Acts EXACTLY like a WHERE clause
2.Acts like a WHERE clause but is used for columns rather than groups
3.Acts like a WHERE clause but is used for groups rather than rows
4.Acts like a WHERE clause but is used for rows rather than columns
The result of a SQL SELECT statement is a _______
1.file
2.report
3.table
4.None
The SQL keyword BETWEEN is used
1.to limit the columns displayed
2.for ranges
3.as a wildcard
4.None of these is correct
The SQL keyword(s) ________ is used with wildcards
1.NOT IN only
2.LIKE only
3.IN only
4.IN and NOT IN
The wildcard in a WHERE clause is useful when?
1.An exact match is necessary in a CREATE statement
2. An exact match is necessary in a SELECT statement
3.An exact match is not possible in a SELECT statement
4.An exact match is not possible in a CREATE statement
What is the full form of SQL?
1.Structured Query Language
2.Structured Query List
3.Simple Query Language
4.All of the above
When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s)
1.NOT IN only
2.LIKE only
3.IN only
4.Both IN and NOT IN
Which of the following do you need to consider when you make a table in SQL?
1.Data types
2.Primary keys
3.Default values
4.All of the above
Which of the following group functions ignore NULL values?
1.MAX
2.COUNT
3.SUM
4.All of the above
Which of the following statement is correct for using comparison operators in SQL?
1.SELECT * FROM user WHERE id>50 and id <80
2.SELECT * FROM user WHERE id>50 and <80
3.SELECT * FROM user WHERE id>50 and where id <80
4.SELECT * FROM user WHERE id>50, where id <80