SQL Apti

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Which of the following SQL statements selects the string 'Success'?

Can you use both SELECT and WHERE SQL clauses in one SQL statement? The SQL DROP TABLE clause is used to...

SELECT 'Success'

Yes

No

No

SQL WHERE

delete a table from the database A view is a virtual table which results of executing a precompiled query. A view is not part of the physical database schema, while the regular tables are. MAX

Yes

What is a view? Which SQL keyword is used to retrieve a maximum value? If you join a table to itself, what kind of join are you using?

Yes

Yes

Self Join

Yes

Which SQL statement selects all rows from table called Contest, with column ContestDate having values greater or equal to May 25, 20006? Can you join a table to itself? Which of the following SQL statements does count the rows in the 'Sales' table? Which of the following SQL statements has correct syntax? What does the CREATE TABLE statement do? Which of the following SQL clauses is used to select data from 2 or more tables? Which of the following SQL statements is correct? Which of the following is a SQL aggregate function The difference between the DELETE and TRUNCATE SQL clauses is:

SELECT * FROM Contest WHERE ContestDate >= '05/25/2006'

Yes

Yes. SELECT NUM() FROM Sales

Yes No SQL Aggregate Functions SQL

SELECT * FROM Table1 WHERE Column1 = = 10 Creates a new database table

No Yes

JOIN SELECT * FROM Sales WHERE Date BETWEEN '10/12/2005' AND '01/01/2006' AVG The TRUNCATE clause deletes all rows in a database table, while the DELETE clause can have a WHERE condition and might or might not delete all rows in a table.

Yes

Yes Yes

Yes

You might also like