ANSI SQL Test
A table Students has a column called name which stores the names of the students. What will be the correct query to display the names of the students in reverse order?
Choose the appropriate query for the Products table where data should be displayed primarily in ascending order of the ProductGroup column. Secondary sorting should be in descending order of the Cu...
Consider the following table structure of students: rollno number(4) name varchar(20) course varchar(20) What will be the query to display the cour...
Consider the following tables: Books ------ BookId BookName AuthorId SubjectId PopularityRating (the popularity of the book on a scale of 1 to 10) Language (such as French, Eng...
Examine the code given below: SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000 Which of the following statements is correct with regard to this code?
Examine the two SQL statements given below: SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY salary DESC SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC What is ...
How many foreign key constraints can a table have?
In an RDBMS, which term is used to describe 'data about data'?
The overall logical structure of a database can be expressed graphically by:
The primary key index does not allow ________ data in a field.
The simplest query must include at least________ and _________.
What are the programs that execute automatically whenever DML operations are performed on tables called?
What clause should be used to display the rows of a table in ascending order of a particular column?
What does MOD() function do?
What does the following Update statement do? Update OrderTable set OrderDiscount=OrderDiscount*1.10
What does the term DDL stand for?
What is the correct order of clauses in the select statement? 1 select 2 order by 3 where 4 having 5 group by
When a table is dropped using a simple DROP statement, SQL performs some more operations simultaneously, select all the valid operations?
Which character function should be used to return a specified portion of a character string?
Which component of an RDBMS validates the syntax of the user's query?
Which logical operator can reverse the result?
Which of the following are aggregate functions in SQL?
Which of the following is not a SQL operator?
Which of the following operation is invalid with respect to dates?
Which of the following statements is true? (a)The Insert statement creates new rows (b)The Update statement modifies the table structure
Which one of the following correctly selects rows from the table myTable that have null in column column1?
Which operator will be evaluated first in the following statement: select (age + 3 * 4 / 2 - 8) from emp
You want to display the titles of books that meet the following criteria: 1. Purchased before November 11, 2002 2. Price is less than $500 or greater than $900 You want to sort the result by th...