CuriousTab
Search
CuriousTab
Home
Aptitude
Computer
C Programming
C# Programming
C++ Programming
Database
Java Programming
Networking
Engineering
Biochemical Engineering
Biochemistry
Biotechnology
Chemical Engineering
Civil Engineering
Computer Science
Digital Electronics
Electrical Engineering
Electronics
Electronics and Communication Engineering
Mechanical Engineering
Microbiology
Technical Drawing
GK
Current Affairs
General Knowledge
Reasoning
Data Interpretation
Logical Reasoning
Non Verbal Reasoning
Verbal Ability
Verbal Reasoning
Exams
AIEEE
Bank Exams
CAT
GATE
IIT JEE
TOEFL
Jobs
Analyst
Bank PO
Database Administrator
IT Trainer
Network Engineer
Project Manager
Software Architect
Introduction to SQL problems
1. To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included.
Options
A. ONLY
B. UNIQUE
C. DISTINCT
D. SINGLE
Show Answer
Scratch Pad
Discuss
Correct Answer: DISTINCT
2. The HAVING clause does which of the following?
Options
A. Acts like a WHERE clause but is used for groups rather than rows.
B. Acts like a WHERE clause but is used for rows rather than columns.
C. Acts like a WHERE clause but is used for columns rather than groups.
D. Acts EXACTLY like a WHERE clause.
Show Answer
Scratch Pad
Discuss
Correct Answer: Acts like a WHERE clause but is used for groups rather than rows.
3. SQL is:
Options
A. a programming language.
B. an operating system.
C. a data sublanguage.
D. a DBMS.
Show Answer
Scratch Pad
Discuss
Correct Answer: a data sublanguage.
4. The result of a SQL SELECT statement is a(n) ________ .
Options
A. report
B. form
C. file
D. table
Show Answer
Scratch Pad
Discuss
Correct Answer: table
5. The SQL keyword BETWEEN is used:
Options
A. for ranges.
B. to limit the columns displayed.
C. as a wildcard.
D. None of the above is correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: for ranges.
6. When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
Options
A. LIKE only.
B. IN only.
C. NOT IN only.
D. Both IN and NOT IN.
Show Answer
Scratch Pad
Discuss
Correct Answer: Both IN and NOT IN.
7. The command to remove rows from a table 'CUSTOMER' is:
Options
A. REMOVE FROM CUSTOMER ...
B. DROP FROM CUSTOMER ...
C. DELETE FROM CUSTOMER WHERE ...
D. UPDATE FROM CUSTOMER ...
Show Answer
Scratch Pad
Discuss
Correct Answer: DELETE FROM CUSTOMER WHERE ...
8. ________ was adopted as a national standard by ANSI in 1992.
Options
A. Oracle
B. SQL
C. Microsoft Access
D. DBase
Show Answer
Scratch Pad
Discuss
Correct Answer: SQL
9. The SQL WHERE clause:
Options
A. limits the column data that are returned.
B. limits the row data are returned.
C. Both A and B are correct.
D. Neither A nor B are correct.
Show Answer
Scratch Pad
Discuss
Correct Answer: limits the row data are returned.
10. You can add a row using SQL in a database with which of the following?
Options
A. ADD
B. CREATE
C. INSERT
D. MAKE
Show Answer
Scratch Pad
Discuss
Correct Answer: INSERT
First
2
3
4
5
6
7
More in Database:
Advanced SQL
Data and Database Administration
Data Modeling with ER Model
Data Models into Database Designs
Data Warehousing
Database Design Using Normalization
Database Processing for BIS
Database Redesign
Distributed Databases
ER Model and Business Rules
Introduction to Database
Introduction to SQL
JDBC, Java Server Pages, and MySQL
Logical Database Design
Managing Databases with Oracle
Managing Multiuser Databases
Modeling Data in the Organization
Object-Oriented Data Modeling
Object-Oriented Database
ODBC, OLE DB, ADO, and ASP
Physical Database Design
SQL for Database Construction
SQL Server 2000
The Client-Server Database
The Database Development Process
The Database Environment
The Internet Database Environment
The Relational Model and Normalization
XML and ADO.NET