can we use a having cluase in groupby clause.
if there are 500 records i will give rownumber<250 then how
many records does it retrieve.
wt is the result of nvl2(null,notnull,null)
if there are four tables without using cartesian how many
joins can be there.
in the sql subqueries wt is the parent ans1)select
2)update,3) delete 4)2&3

Answers were Sorted based on User's Feedback



can we use a having cluase in groupby clause. if there are 500 records i will give rownumber<250..

Answer / pranab

having cluase can only be used with group by clause.

if there are 500 records i will give rownumber<250 then it
fetch 249 records.

NVL2( string1, value_if_NOT_null, value_if_null )
if string1 is not null then it returns 'value_if_NOT_null'
and if string1 is null then it returns 'value_if_null'.


if there are four tables without using cartesian we have n-
1 join where n is number of tables. i.e 4-1=3 join required
four tables without using cartesian.

Is This Answer Correct ?    2 Yes 1 No

can we use a having cluase in groupby clause. if there are 500 records i will give rownumber<250..

Answer / chiranjeevi

Normal Group By Query
-------------
select deptno,count(*) from emp
group by deptno
-----------------
Deptno Count(*)
------ --------
30 4
20 7
10 3

Why not,you just fallow the bellow Query...
----
Group By With Having Clasue
---
select deptno,count(*) from emp
group by deptno
having count(*)>3
----
Deptno Count(*)
------ --------
30 4
20 7

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Call Interface (OCI) Interview Questions

what is thae main difference between foreingkey and primarykey

5 Answers  


can we use a having cluase in groupby clause. if there are 500 records i will give rownumber<250 then how many records does it retrieve. wt is the result of nvl2(null,notnull,null) if there are four tables without using cartesian how many joins can be there. in the sql subqueries wt is the parent ans1)select 2)update,3) delete 4)2&3

2 Answers   i2,


in fun why return single value?

1 Answers   UST,


I have table that has student names in it.If I query on the names my result set should return as 'VALUE NOT ENTERED' for null entries.

1 Answers  


REGULAR CLASSES for Informatica 8.6 is starting from Monday, 07th Nov, 8:00 AM IST .

1 Answers  






what is difference between sap and oracle applications and which is now market leader?

11 Answers   Amity, Infosys, Rysigo, Unilogic Software, Wipro,


i want to know rdbms certification details and syallabus and for whom i contact for rdbms certification in bangalore i need answer very urgent please mail to aniltelkar50@gmail.com please as soon as possible

0 Answers   Canara Bank,


what is difference between sqlserver and oracle?

5 Answers   CMC,


what is normalization

2 Answers   NIC,


what are collection attributes

1 Answers   GE,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)