Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Oracle Sample Questions ›› Oracle SQL

Technical Sample Questions

Oracle Sample Questions : Oracle SQL

  1. What is SQL?

    Answer: Structured Query Language (SQL) is a language that provides an interface to relational database systems.
    In common usage SQL also encompasses DML (Data Manipulation Language), for INSERTs, UPDATEs, DELETEs and DDL (Data Definition Language), used for creating and modifying tables and other database structures.

  2. What is SELECT statement?

    Answer: The SELECT statement lets you select a set of values from a table in a database.The values selected from the database table would depend on the various conditions that are specified in the SQL query.

  3. How can you compare a part of the name rather than the entire name?

    Answer: SELECT * FROM people WHERE empname LIKE '%ab%'Would return a recordset with records consisting empname the sequence 'ab' in empname.

  4. What is the INSERT statement?

    Answer: The INSERT statement lets you insert information into a database.

  5. How do you delete a record from a database?

    Answer: Use the DELETE statement to remove records or any particular column values from a database.

  6. How could I get distinct entries from a table?

    Answer: The SELECT statement in conjunction with DISTINCT lets you select a set of distinct values from a table in a database.The values selected from the database table would of course depend on the various conditions that are specified in the SQL query.ExampleSELECT DISTINCT empname FROM emptable

  7. How to get the results of a Query sorted in any order?

    Answer: You can sort the results and return the sorted results to your program by using ORDER BY keyword thus saving you the pain of carrying out the sorting yourself.The ORDER BY keyword is used for sorting.SELECT empname, age, city FROM emptable ORDER BY empname

  8. How can I find the total number of records in a table?

    Answer: You could use the COUNT keyword , exampleSELECT COUNT(*) FROM emp WHERE age>40

  9. What is GROUP BY?

    Answer: The GROUP BY keywords have been added to SQL because aggregate functions (like SUM) return the aggregate of all column values every time they are called.Without the GROUP BY functionality, finding the sum for each individual group of column values was not possible.

  10. What is the difference among "dropping a table", "truncating a table" and "deleting all records" from a table.

    Answer: Dropping : (Table structure + Data are deleted), Invalidates the dependent objects ,Drops the indexes Truncating: (Data alone deleted), Performs an automatic commit, Faster than deleteDelete : (Data alone deleted), Doesn't perform automatic commit

Next »

Oracle SQL Sample Question Number: 1-10| 11-20| 21-28
Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.