The table has 3 columns 4 rows. The output is which column has least null values( A COL SHOULD BE THE OUTPUT)
Write the query plz.
A B C
1 NULL 2
NULL 3 4
NULL 5 6
7 NULL NULL
I have a situation where I need to access the column values from rowtype variable. However, the column names are dynamic.
below is sample code:
Cursor c1 is select * from emp;
Cursor c2 is select column_name from xyztable;
for rec in c1
open c2;---this cursor has column names like EMPLOYEE_ID, FIRST_NAME, LAST_NAME etc.
fetch c2 into v_c2;
exit when c2%notfound;
/* now lets say i want to access value of LAST_NAME from cursor c1, so I am writing below code, however it does not work as expected */
v_str:= 'rec.'|| v_c2.column_name; -- this will give me string like "rec.EMPLOYEE_ID"
Plz help ASAP.Thanks.
why dont we assign not null constraint as table level
If the job running very slow what is the action you do
how can you attach more than 20 ldf files in sql server
What are the Features of Forms 6i over 4.5?
What are the Features of Forms 10g?
What are the Features of Reports 6i?
What are the Features of Reports 10g ?
Have you come across the error ?Failed while printing ?. Why
it is happened and How to solve that?
What are the built-in functions used for sending Parameters
to forms ?
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????
i want to print the employee details on department wise with
group above report with the fields
I WANT OUTPUT LIKE THIS
1)FIRST DEPTNO=10 EMPLOYEES DISPLAYED IN FIRST PAGE
AND DEPTNO=20 EMPLOYEES DISPLAYED IN 2ND PAGE
WHAT I HAVE TO DO
ENAME SAL COMM
A 2000 2222
ENAME SAL COMM
MILLER 220 22
D 45 23
LIKE THE ABOVE PROCDURE REPORTS HOW MANY DEPARTMENTS ARE
EXISITING IN EMP TABLE
Can any one send me oracle form and reports tutorials from
which i may get help.contact me on my mail
21. Using a set operator, display the client number of all
clients who have ever placed an order and whose whose name
does not contain the string Sm.
How can you move the master database
In my application I have a process which picks the scanned
files (tif format) from a shared location and it links to
application and shown on it.The actuall issue is that my
process picks the file before it is completly written or
scanned which results in displaying few parts of the image
or incomplete image.I need to check if the file is not
completly scanned or written then do not link it to
application.Please help if any body tell me that how can i
check that file is in written phase or locked through
DTS.thanking you in advance
How internally data stores in MyISAM and INNODB table types?
By using Macromedia Director How to fetch the data from
what is the difference between filters and conditions?