GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 21 of 32    Print  
What will be the output of the fallowing SELECT statement?
SELECT count(*)
FROM emp
Where exist (select 'X' From dept
where dept_name ='Stores' and dept.dept_id=emp.dept_id)

A. select total number of employees belonging to department " stores "
B. select all employees belonging to department "X"
C. select all employees belonging to department "stores"
D. select total number of employees belonging to department "X"


  
Total Answers and Comments: 2 Last Update: August 29, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 11, 2005 05:29:47   #1  
krishna        

RE: What will be the output of the fallowing SELECT statement?SELECT count(*)FROM empWhere exist (select...
A. It selects the total no of emplyoyees in stores
 
Is this answer useful? Yes | No
August 29, 2006 05:41:34   #2  
NAGA        

What will be the output of the fallowing SELECT st...

This will not give any output

This will throw a error missing expression


 
Is this answer useful? Yes | No

 Related Questions

Void main(){struct a{char ch[10];char *str;};struct a s1={"Hyderabad","Bangalore"};printf("n%c%c",s1.ch[0],*s1.str);printf("n%s%s",s1.ch,s1.str);getch();}
HB, HyderabadBangalore 

Main(int argc,int *argv[]){int i;for(i=1;i
I work for oracle 

Void main(){int i,j,k;for(i=0;i<3;i++)k=sum(i,i);printf("n%d",k);getch();}sum(s,t){static int m;m+=s+t;return m;}

Void main(){int i;clrscr();for(i=1;i<6;++i)switch(i){case 1:case 2: printf("%d,",i++);break;case 3: continue;case 4: printf("%d,",i);}printf("%d",i);getch();}
1; 4; 6 

What is the output of the programvoid main(){char s[]="oracle is the best";char t[40];char *ss,*tt;while(*tt++=*ss++);printf("%s",t);getch();}A. Oracle is the bestB. Core dumpC. Error MessageD. Goes into infinite loop

What is the output of the program?void main(){int j[10]={9,7,5,3,1,2,4,6,9};int i=1;clrscr();for(;i<9;i++)printf("%d ",--j[i++]);getch();}A. 6,2,1,5B. 6,2,1,5,7C. Error MessageD. core dump

What is the output of the programvoid main(){int i,j,k,n=5;clrscr();for(i=5;i>0;i--){j=1

What is the output of the program, if integer occupies 2 bytes memory?union{int a;char b;char c[10];}u1;void main(){int l=sizeof(u1);printf("%d",l);getch();}A. 13B. 10C. 16D. None of the above

What is the output of the program?void main(){fork();printf(" Hello World");getch();}A. Hello WorldB. Hello World Hello WorldC. Error MessageD. None of these

What is the output of the programvoid main(){struct a{int i;char *st1;};typedef struct a ST;ST *str1;str1=(ST*)malloc(100);str1->i=100;strcpy(str1->st1,"Welcome to Oracle");printf(" %d%sn",str1->i,str1->st1);getch();}A. core dumpB. will not compileC. 100,Welcome to OracleD. None of these


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

Getting Started with Oracle and ODP.NET

ODP NET Developer&rsquo; s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

Step by Step Oracle PL-SQL Tutorial

This introductory tutorial to PL SQL will help you to understand the basic concepts of PL SQL Please review the following tutorials and practice the sample SQL Statements on your local Oracle Database Please note that you must learn these basic things before we actually start getting in to Advanced
 

Working with XML in Oracle

Working with XML in Oracle Introduction to XML Extensive markup language is the language which presents data in a human readable form of text The data can be anything from a purchase order or a stock quote or weather radar or a flight schedule it can be represented using XML XML is very similar to H
 

C++ Standard Input Output Stream

C Standard Input Output Stream In this C tutorial you will learn about standard input stream and standard output stream explained along with syntax and examples C programming language uses the concept of streams to perform input and output operations using the keyboard and to display information on
 

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