GeekInterview.com
  I am new, Sign me up!
 

SQL Interview Questions


SQL Interview Questions

Questions: 140
Comments: 688
 SQL Tags
 Showing Questions 61-70 of 139 Questions
<< Previous 3 4 5 6 [7] 8 9 10 11 12 Next >>
 Sponsored Links

 
 SQL Interview Questions
Sorting Options :  

1. Why is it so that the given query worked :"select * from (select rownum rnum,a.* from emp a) where rnum=70; "while this query dint work :"select * from (select rownum,a.* from emp a) where rownum=70;"2. as i've read that rownum can work only for < and or >=, then why the query worked for rnum=70
Read Answers (3) | Asked by : csr21

Latest Answer: Hi Frienz...According to me WHERE and HAVING both are equally important..WHERE is used for condition on a single row and it comes before group by clause...whereas HAVING is used with GROUP BY alwayz...HAVING works on a group whereas WHERE works on a single ...
Read Answers (6) | Asked by : Sushant

Latest Answer: Self Join-The SELF JOIN is used to join a table to itself, as if the table were two tables, temporarily renaming at least one table in the SQL statement. The syntax is as follows:SELECT A.LAST_NAME, B.LAST_NAME, A.FIRST_NAMEFROM EMPLOYEE_TBL A,   ...
Read Answers (2) | Asked by : kumar

Latest Answer: select * from emp where rownum
Read Answers (4) | Asked by : Sreehari

1. How to delete a duplicate records in a table without using rowid?2. What is the use of Connect by clause?3. What is the use of Connect by clause?4. How to display "Experience of employee"?E.g. 3 years 4 months 19 days?5.What is select statement to spell out SALARY?(Query should work upto 5 million)6. Why output give error message when i write select stmt, ROWNUM=2 in where clause.?7. what is merging?8.How to delete set of records at a time where all the records having same values ,

Using corelated subquery: Inner query results in more than one row/value, then can this values be concatenated as one so that it comes along with outer result test/row as one value.
Read Answers (1) | Asked by : chiru

select * from emp where deptno=any(select deptno from emp having count(deptno)>1 group by deptno); 
Latest Answer: select * from acctcycle where acct_nbr in (select acct_nbr from acctcycle group by acct_nbr having count(acct_nbr)>1); ...
Read Answers (8) | Asked by : Renuka rajput

Latest Answer: Disadvantages:On primary key index will be created so during updation of table index need to be adjusted accordingly. this process makes the updation slower. ...
Read Answers (2) | Asked by : aleeyu makama

Latest Answer: select max(columnname) from tablename where columnname in (select columnname from tablename where columnname
Read Answers (13) | Asked by : sunita

Latest Answer: SELECT TOP 1 salary FROM (SELECT TOP 10 salary FROM employee ORDER BY salary DESC)  AORDER BY salary ...
Read Answers (15) | Asked by : Saravanan

View page << Previous 3 4 5 6 [7] 8 9 10 11 12 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape