Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

not all variables bound

875438Sep 13 2011 — edited Sep 13 2011
Can anyone give me a brief explanation about this error ?

ORA-01008: not all variables bound
This post has been answered by prakash on Sep 13 2011
Jump to Answer

Comments

Frank Kulash
Answer

Hi, User_YBZOV
Here's one way:

SELECT	 COUNT (CASE WHEN gender = 'M' THEN 1 END)	AS male
,	 COUNT (CASE WHEN gender = 'F' THEN 1 END)	AS female
FROM	 employee
;

If you'd care to post CREATE TABLE and INSERT statements for the samp,e data, then I could test this.
SELECT ... PIVOT is another way.

Marked as Answer by User_YBZOV · Sep 21 2022
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 11 2011
Added on Sep 13 2011
2 comments
192 views