ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
 Categories  >>  Software  >>  Databases  >>  SQL PLSQL       
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
in materialized view the structure will create immediately or not? iFlex  2  2039
what are the advantages of package? iFlex   5  2594
While inserting 10 rows using procedure, if 3rd entry is having some error, what will be the output? How u will handle that error? iFlex   8  2602
Give an example of any procedure. iFlex   2  2050
what is difference between procedure and function, procedure and trigger? iFlex  3  2482
there are 2 variables called x and y ,x contains 1,2 and y contains 3,4 we have to swap the values from x to y and y to x with out using dummy variables and it can be done only by using a single statement ? how? Oracle  6  1774
how to check the 3rd max salary from an employee table?  10  2313
What is magic table?  5  2104
Delete duplicate records in the emp table.  5  1923
Delete the emps whose salaries are lowest sals of their own dept.  3  1027
define a variable representing the expression used to calculate on emps total annual remuneration.use the variable in a statement which finds all emps who can earn 30000 a year or more.  2  293
check whether all the emp numbers are indeed unique.  3  791
What is the first action to perform a query? Suppose I have four tables and five joins and my query is getting slow day by day. Hexaware  3  1349
Can a table have two primary keys? HCL   18  4751
what is the order of pre-defined exceptions. TCS  5  1598
E-Mail New Answers        Answer Selected Questions
 
 
Prev    1   ... 3   ... 5   ... 7    8   [9]    10  ... 11   ... 13   ... 15   ... 17   ... 19   ... 21   ... 23   ... 25   ... 27    Next
 
 
 Oracle interview questions   Oracle Interview Questions  SQL Server interview questions   SQL Server Interview Questions  MS Access interview questions   MS Access Interview Questions
 MySQL interview questions   MySQL Interview Questions  Postgre interview questions   Postgre Interview Questions  Sybase interview questions   Sybase Interview Questions
 DB Architecture interview questions   DB Architecture Interview Questions  DB Administration interview questions   DB Administration Interview Questions  DB Development interview questions   DB Development Interview Questions
 SQL PLSQL interview questions   SQL PLSQL Interview Questions  Databases AllOther interview questions   Databases AllOther Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
what are the demerits of sql? 151  
what is Hash join?how it is different from inner join?what is the sign used for inner join?(eg: like the (+) sign used for outer join)? 155 TCS
Authentication mechanisms in Sql Server ? 39 BirlaSoft
hi this is nakka i have been looking for 1+ exp in oracle sql,plsql developer positions also have knoledge on d2k i am not getting proper walkins how to know it? where can i find it? 33  
Two Methods of retrieving SQL? 234 Microsoft
Hi, I am new in oracle(SQL), could anyone help me in writing a correct SQL. Below is the table structure. Table: Subsc Fields: 1. Sub_no (this field will hold values of subscriber nos, for e.g. S111111, S222222, S333333, S444444, etc.) 2. s_status (this field will hold values for different status of subscriber, for e.g. 'A', 'S', 'C', etc.) 3. cus_id (this field will hold values of bill nos for e.g. 11111111, 22222222, 33333333, 44444444, etc.) Table: Bill Fields: 1. Bill_no this field will hold values of bill nos for e.g. 11111111, 22222222, 33333333, 44444444, etc.) 2. b_status = (this field will hold values for different status of bill for e.g. 'O', 'C', 'S', etc.) Note: 1. The Sub_no is a Primary key of Subsc table. 2. The cus_id is a foreign in Subsc table (referred from Bill_no field of Bill table) 3. The Bill_no field is the Primary key of Bill table. Query A --> I wrote a query to select cus_id/Bill_no which is in status open (b_status = 'O') and having more than two active subscriber (i.e. S_status = 'A') in it ( i.e. more the two subscribers in same bill). select s.cus_id from subsc s where exists (select 1 from bill where bill_no = s.cus_id and b_status = 'O') and s_status = 'A' group by s.cus_id having count(sub_no) = 2 Problem : The above query will give the cus_id (or rather bill_no) which are in open status (b_status ='O) and which are having TWO ACTIVE Subscribers (s_status ='A') in it. However, this query will also lists the cus_id/bill_no which are having more than TWO subscribers in it (but only two subscriber will be in Active status (s_status = 'A') and the others will be in s_status = 'C' or s_status = 'S'. Help needed: I want to write a query which will fetch ONLY the cus_id/bill_no which are in open status (b_status ='O') and which are having ONLY TWO ACTIVE subscribers (s_status ='A') in it. B--> If I include the sub_no in the above query then NO row are returned. select s.cus_id, s.sub_no from subsc s where exists (select 1 from bill where bill_no = s.cus_id and b_status = 'O') and s_status = 'A' group by s.cus_id, s.sub_no having count(sub_no) = 2 Help needed: I want to modify the above query which will fetch ONLY the cus_id/bill_no which are in open status (b_status ='O') and which are having ONLY TWO ACTIVE subscribers (s_status ='A') in it ALONG with the sub_no. Thanks a lot in advance. Regards, Nitin 29  
oracle is compiler or interpretter,can any one tell me the answer? 993  
write a procedure to print a statement or number not using "dbms_output.put_line" package.write a procedure instead of it using procdure name as "print" ex:- declare a number:=2; begin print(a); end; /* when U type above procedure 2 have to should be printed*/ 349 iFlex
Does it possible to pass object (or) table as an argument to a remote procedure? 322 TCS
When the mutating error will comes? and how it will be resolved? 27  
How consistent is the view of the data between and within multiple sessions, transactions or statements ? 31  
Which one is the Best approach to put code, among Triggers and Procedures? Explain? 79 Sierra-Atlantica
What are the attributes of SQL*PLUS ? 28 Oracle
what is the boundary line in varrays? 37  
How well can multiple sessions access the same data simultaneously ? 34  
when MSQL8.0 is in market 43  
what is organisational index? 59  
what is Complex index. how to create it? 22  
Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors? 14  
after tell procedure whole code he asked can i write the same way in a function 42  
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com