Welcome to practice. . . . . . . . . . .
SELECT UNIQUE
SELECT DIFFERENT
SELECT DISTINCT
None of the above
Rate this question:
SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName
SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
SELECT LastName>'Hansen' AND LastName
Rate this question:
X
C
DUMMY
None of these
Rate this question:
5
4
6
0
Rate this question:
It requires data from more than one table, yet only one table is listed.
sal is not a legal column name
instead of a WHERE clause, a HAVING clause must be used to restrict groups
The GROUP BY clause must contain AVG(sal)
This SELECT statement is perfectly legal
Rate this question:
SELECT last_name, 12*salary* commission_pct FROM emp;
SELECT last_name, 12*salary* (commission_pct,0) FROM emp;
SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;
SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;
Rate this question:
SELECT ord_id, cust_id, ord_total FROM orders, customers WHERE cust_name=’Mating’ AND ord_date IN (’18-JUL-2000’,’21-JUL-2000’);
SELECT ord_id, cust_id, ord_total FROM orders Where ord_date IN (SELECT ord_date FROM orders WHERE cust_id = (SELECT cust_id FROM customers WHERE cust_name = ‘Martin’));
SELECT ord_id, cust_id, ord_total FROM orders Where ord_date IN (SELECT ord_date FROM orders, customers Where cust_name = ‘Martin’);
Rate this question:
Use the IN operator
. Use the >= operator
Use the CAN EXIST operator
Use the = operator
Use the
Rate this question:
0
1
2
3
4
Rate this question:
A) select avg(max(sal)) from emp;
B) select max(avg(sal)) from emp group by dept_id;
C) select maximum sal(avg) from emp;
D) none
Rate this question:
Select job, sum(sal) from emp where sum(sal) > 2500 and comm is null;
Select job, sum(sal) from emp where comm is null group by job having sum(sal) > 2500;
Select job, sum(sal) from emp where sum(sal) > 2500 and comm is null group by job;
Select job, sum(sal) from emp group by job having sum(sal) > 2500 and comm is not null;
None of the above
Rate this question:
Quantity – 100
0.15-35
35*20
100/0.15
Rate this question:
To retrieve rows in a table
To remove some part of a table
To get rid of all rows in a table
To recover all the rows deleted in a table
Rate this question:
SELECT [all] FROM Persons WHERE FirstName='Peter'
SELECT * FROM Persons WHERE FirstName='Peter'
SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
Rate this question:
The DESCRIBE DEPT statement displays the structure of the DEPT table.
The ROLLBACK statement frees the storage space occupies by the DEPT table.
The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.
. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
Rate this question:
Select sal from emp where ename same as (ename where mgr is NULL);
Select sal from emp where ename like (select ename from emp where mgr is NULL) and mgr is not NULL;
Select sal from emp where mgr != NULL and ename = (select ename from emp where mgr = NULL);
All of the above
None of the above
Rate this question:
SELECT dept_id, job_cat, MAX(salary) FROM employees WHERE salary > MAX(salary);
SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id, job_cat;
SELECT dept_id, job_cat, MAX(salary) FROM employees;
SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id;
SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id, job_cat, salary;
Rate this question:
Primary key access
Access via unique index
Table access by ROWID
Full table scan
Rate this question:
SELECT last_name, (salary * 12) * commission_pct FROM EMPLOYEES;
SELECT last_name, (salary * 12) * IFNULL(commission_pct, 0) FROM EMPLOYEES;
SELECT last_name, (salary * 12) * NVL2(commission_pct, 0) FROM EMPLOYEES;
SELECT last_name, (salary * 12) * NVL(commission_pct, 0) FROM EMPLOYEES;
Rate this question:
AVG
COUNT
SUM
STDDEV
VARIANCE
Rate this question:
SELECT last_name, hire_date, TO_CHAR(hire_date,'DAY') AS DAY FROM employees ORDER BY hire_date, DAY;
. SELECT last_name, hire_date, TO_CHAR(hire_date,'DD') AS DAY FROM employees ORDER BY hire_date, DAY;
SELECT last_name, hire_date, TO_CHAR(hire_date,'DY') AS DAY FROM employees ORDER BY hire_date, DAY;
All the above.
Rate this question:
WHERE
RESTRICT
HAVING
GROUP BY
Rate this question:
Select
From
Where
Group by
All the above
Rate this question:
NULL
NOT NULL
Function NVL2 is not defined
None of the above
Rate this question:
Error
0
1
0.00
Rate this question:
'NOT IN' is equivalent to != ALL
'IN' is equivalent to != ALL
'NOT IN' is equivalent to =ANY
'IN' is equivalent to =ANY
None of the above are true
Rate this question:
Column
1966_Invoices
Catch_#22
#Invoices
None of the above
Rate this question:
SELECT SYSDATE - enroll_date + TO_DATE('29-MAY-02') FROM student;
SELECT (14 + enroll_date) + 30.5 * 9 FROM student;
SELECT (SYSDATE+ enroll_date) + TO_DATE('29-MAY-02') FROM student;
SELECT (SYSDATE - enroll_date) + 30.5 * 9 FROM student;
Rate this question:
03-JUL-00
10-JUL-00
12-JUL-00
11-JUL-00
17-JUL-00
09-JUL-00
Rate this question:
SUM(start_date)
AVG(start_date)
COUNT(start_date)
AVG(start_date, end_date)
MIN(start_date)
MAXIMUM(start_date)
Rate this question:
ENAME -------- AILYN
. ENAME -------- . AILYN CHRIS LESLIE
An error
None of the above
Rate this question:
46 and 45
46 and 45.93
50 and 45.93
50 and 45.9
45 and 45.93
45.95 and 45.93
Rate this question:
A. INSERT INTO employees VALUES(NULL,’John’’Smith’);
B. INSERT INTO employees(first_name,last_name) VALUES(’John’’Smith’);
C. INSERT INTO employees VALUES(1000,’John’’Smith’);
D. INSERT INTO employees (first_name,last_name,employee_id) VALUES(1000,’John’’Smith’);
E. INSERT INTO employees (employee_id) VALUES(1000);
F. INSERT INTO employees (employee_id,first_name,last_name) VALUES(1000’John’,’’);
Rate this question:
SELECT deptno, count(deptno) FROM emp GROUP BY ename;
SELECT deptno, count(deptno), job FROM emp GROUP BY deptno;
SELECT deptno, avg(sal) FROM emp;
SELECT deptno, avg(sal) FROM emp GROUP BY deptno;
SELECT avg(sal) FROM emp GROUP BY deptno;
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
RDBMS And SQL Knowledge Test
Welcome to the RDBMS and SQL Knowledge Test. As you might already know, RDMS is the basis for various modern database systems such as SQL, MySQL, MS SQL Server, IBM DB2. etc. In...
Questions:
10 |
Attempts:
2765 |
Last updated:
Nov 12, 2023
|
The Ultimate SQL Syntax And Functionality Knowledge Test
Since its creation in 1974, SQL has become the most popular programming language for relational database management. With its fine set of functions and easy to learn syntax, it...
Questions:
40 |
Attempts:
429 |
Last updated:
Mar 21, 2023
|
SQL Basic! Ultimate Trivia Quiz
Dive into the basics of SQL with this Ultimate Trivia! Assess your understanding of key SQL functions like COUNT(*), MAX, and DELETE. Perfect for beginners, this quiz enhances...
Questions:
10 |
Attempts:
688 |
Last updated:
Mar 21, 2023
|
SQL Multiple Choice Questions With Answers
Are you looking for some SQL multiple-choice questions with answers to make your preparation level better for the upcoming exam? Try our quiz below and see if you know the basics...
Questions:
20 |
Attempts:
12497 |
Last updated:
Jun 17, 2024
|
Fill In The Blanks On SQL
This SQL quiz assesses key database management skills, focusing on table structure modifications, understanding of relational model constraints, and data manipulation. It's ideal...
Questions:
10 |
Attempts:
1191 |
Last updated:
Mar 21, 2023
|
Introduction To SQL True Or False Quiz
What is SQL? Have you ever used SQL programming language? Here, we have this "Introduction to SQL quiz" in the true or false format to check your knowledge regarding...
Questions:
12 |
Attempts:
2646 |
Last updated:
Aug 24, 2023
|
Wait!
Here's an interesting quiz for you.