sql

pts.
Tags:
SQL
Visual Basic
how do i create a counter on the header level that will bring up a count of lines on flat file. Also how do i use a Pipe delimiter | to break a line.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

If you are using Oracle8i or higher, you may think of using
some analytical function for counts, row numbers, a.s.o.

For example, for SCOTT.EMP table, you may have

SELECT
EMPNO,
ENAME,
/* this is the total rows count */,
COUNT(EMPNO) OVER (),
/* this is the row number of each row in the indicated ordering */
ROW_NUMBER OVER(ORDER BY ENAME)
FROM
SCOTT.EMP
ORDER BY ENAME
/

These functions are very powerful and versatile, having lots of possibilities, maybe they could help you to solve the problem.

Rgds,
Iudith

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following