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  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
 Categories  >>  Software  >>  Databases  >>  SQL PLSQL       
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
how to remove records from table? no name 1 a 2 b 1 a 2 b 3 c Oracle  4  989
why use cursors? Oracle  3  998
how to delete duplicate rows from a specified table(only single table) how do you know which join is need to be used UST  6  1020
why should required for Indexed by table in pl/sql  2  315
why should required nested tables, Object types, partition tables and varying arrays. what is the difference between these are all. give me example with explanation.  1  210
With out using count() function. How to the find total number of rows in a table?  3  901
Please let me know if UNION ALL and Natural Join does the same operation and are same... iGate  3  611
can use the following like overloading concept in a single package: procedure p1(a varchar), procedure p1(a varchar2), procedure p1(a char)  5  388
how can we find the select statement is indexed or not? CTS  2  926
how to debugg a procedure or package using dbms_output.put_line in plsql Polaris  1  563
i want to display 1 to 10 numbers using one select statement. Oracle  4  1751
i have one table with accounts and amounts as colums.accounts with columns c and d. and amounts with values 1000,2000,3000 for c and 4000,5000,8000 for d.i need to find the sum of these accounts c and d individually and find the differences between their sum using one select statement. Hewitt   7  539
i have doubt that any one tell ref cursor comes in sql pl/sql? pls clarify?  2  415
If I have a table T with 4 rows & 2 columns A & B. A has values 1,2,3,4. and B has 10,20,30,40. Write an Update SQL query which can Swap the values of A & B for all records. (Do not use a sub-query)  2  499
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?  0  47
E-Mail New Answers        Answer Selected Questions
 
 
Prev     1   [2]    3  ... 5   ... 7   ... 9   ... 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 is the bond code in materialized view? 71  
Authentication mechanisms in Sql Server ? 62 BirlaSoft
what are the demerits of sql? 180  
What are the attributes of SQL*PLUS ? 40 Oracle
How consistent is the view of the data between and within multiple sessions, transactions or statements ? 43  
How well can multiple sessions access the same data simultaneously ? 44  
what is organisational index? 77  
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details? 47  
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000???? 63  
when MSQL8.0 is in market 58  
Which one is the Best approach to put code, among Triggers and Procedures? Explain? 106 Sierra-Atlantica
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*/ 397 iFlex
what is indexing, searching and user interface? 41 HCL
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 40  
what is the boundary line in varrays? 50  
Does it possible to pass object (or) table as an argument to a remote procedure? 363 TCS
after tell procedure whole code he asked can i write the same way in a function 60  
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error? 63 Virtusa
What is the different between Stored Procedure and Procedure? 31 Informatica
oracle is compiler or interpretter,can any one tell me the answer? 1071  
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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