Database Interview Questions

Sub Category
Questions
Answers
Last Updated
11
30
Oct 6th, 2015
10
18
Dec 12th, 2011
107
579
Mar 6th, 2018
20
15
Jun 10th, 2011
20
60
Jan 19th, 2015
31
108
Jul 30th, 2017
63
651
Oct 13th, 2018
26
173
Nov 7th, 2020
10
45
Nov 18th, 2017
39
22
Dec 27th, 2016
246
2960
Dec 1st, 2022
204
1560
Jan 9th, 2024
74
509
Dec 23rd, 2016
38
296
Jul 30th, 2017
11
0
Jul 19th, 2007

Showing Questions 121 - 125 of 125 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    What is view? Types of views?use of views?how to create view(syntax)?

    Lavanish Chaudhary

    • Jul 1st, 2018

    A database view is a searchable object in a database that is defined by a query. Types of view in a database management system:
    A. Simple view
    B. Complex view
    C. Readable view
    D. Force view
    E. Materialized view
    F. Inline view

    Nagaraj

    • Nov 13th, 2017

    1. Updatable view & Non-updatable view
    2. Simple view & complex view
    3. Read only view
    4. Force view
    5. Meterialized view
    6. Inline View

  •  

    Difference between Two tier architecture and Three tier architecture?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Karanjeet

    • Nov 22nd, 2005


    Following are the tier types in a client server application:

    a. 1 tier application:All the processing is done on one machines and number of clients are attached to this machine (mainframe applications)

    b. 2 tier application: Clients and data base on different machines.Clients are thick clients i.e.? processing is done at client side.Application layer is on Clients.

    c. 3 tier application.Client are partially thick.Apart from that there are two more layers application layer and database layer.

    d. 4 tier application: Some clients may be totally non thick clients some clients may be partially thick and further there are 3 layers web layer, application layer and database layer.

    Avinash

    • Nov 24th, 2012

    If I am not wrong

    Class variables are variables which we create inside a class.

    &

    Class member are the variables & function declared inside class.

    Manoj Kumar Chagantipati

    • Jun 12th, 2012

    In Two tier there will be Presentation layer and Data base layer
    Where as in Three tire there will be Presentation layer,Data access layer and Data base layer

  •  

    Create a query that will display the total number of employees and of that total the number who were hired in 1980, 1981, 1982, and 1983. Give appropriate column headings.

    Star Read Best Answer

    Editorial / Best Answer

    letsconverse  

    • Member Since Sep-2009 | Sep 21st, 2009


    This one is better I guess:

    query:

    SELECT ((count(DECODE(to_char(hire_date,'YYYY'), 1995, 'c1')) )+(count(DECODE(to_char(hire_date,'YYYY'), 1996, 'c2')))+(count(DECODE(to_char(hire_date,'YYYY'), 1997, 'c3')))+(count(DECODE(to_char(hire_date,'YYYY'), 1998, 'c4')))) as TOTAL,
    count(DECODE(to_char(hire_date,'YYYY'), 1995, 'c1')) "1995",
    count(DECODE(to_char(hire_date,'YYYY'), 1996, 'c2')) "1996",
    count(DECODE(to_char(hire_date,'YYYY'), 1997, 'c3')) "1997",
    count(DECODE(to_char(hire_date,'YYYY'), 1998, 'c4')) "1998"
    FROM employees;

    Results for the above query is like:

         TOTAL       1995       1996       1997       1998
      ----------   ----------   ----------  ----------  ----------
              65             4            10           28           23

    Revert if you have a question. I'll try.
    NOTE: You may want to change the spl characters and the years based on your requiremnet.

    Thanks

    serine

    • Aug 26th, 2016

    Why did we use c1?

    ashwini

    • Jun 22nd, 2015

    Can anybody tell me how to get the count of the test cases that was run by a person?

  •  

    What is the difference between delete,drop and truncate?

    Amit

    • Aug 28th, 2016

    Adding 2 cents 1) DELETE is DML command because it does not change data dictionary (Every command which changes data dictionary tables is called DDL command ) TRUNCATE is DDL command is changes stor...

    Ashakant Kendre

    • May 9th, 2016

    1>TRUNCATE is a DDL command whereas DELETE is a DML command. 2>TRUNCATE is much faster than DELETE. Reason: When you type DELETE. All the data get copied into the Rollback Tablespace first, then del...

Showing Questions 121 - 125 of 125 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: