45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




Technical FAQ

        

In this blog I will post all FAQs, code snippets, real time problems and solutions and any other links which I feel every one needs and can take advantage of.
Technical FAQ All FAQs related to programming languages grouped under category for each language
Old

Selecting alternative records in Oracle

Posted 14-10-08 at 09:49 PM by sk_kireeti
Use this logic to select alternative records from a table -

SQL> ed
Wrote file afiedt.buf

1 select * from
2 (select rownum row_num,exec_date from clob_test)
3* where mod(row_num,2)=1
SQL> /

ROW_NUM EXEC_DATE
---------- ---------
1 13-OCT-08
3 13-OCT-08
5 13-OCT-08
7 13-OCT-08
9 13-OCT-08
11 13-OCT-08

6 rows selected....
sk_kireeti's Avatar
Super Moderator
Comments 0 sk_kireeti is offline
Old

Oracle SQL to HTML table

Posted 14-10-08 at 01:06 PM by sk_kireeti
This can be a very handy script if you want to convert a SQL query output into a HTML table.

Execute following anonymous pl/sql block in your SQL*Plus editor -

* Sorry for bad formatting



declare
c number;
d number;
col_cnt integer;
f boolean;
rec_tab dbms_sql.desc_tab;
col_num number;
column_value varchar2(32767);
col_index integer;
sql_query varchar2(32767);...
sk_kireeti's Avatar
Super Moderator
Comments 0 sk_kireeti is offline

All times are GMT +6.5. The time now is 07:29 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0