Hi Nate - I have not been able to get your example working yet unfortunately. Keith - an interesting idea, am willing to try it, but i sort of dont have a concept of the implementation of it yet. I am actually in need of a bit of practical help here. I presume bartender Nate's advice was right on the money, but it is not integrating with the code i am trying to work it into (could be the way i put it in, where i put it, or the other classes)... oh well, will keep on trying ... reading .. typing ... compiling .. running ... cool hit me back if any good ideas to illuminate me occur anyone please. [ June 02, 2003: Message edited by: Jasper Vader ]
brilliant stuff, i am going to have a go at implementing these ideas immeeeediately! i have been away from the swing stuff for a bit, as i had to work on some oracle stuff, but now must develop the swing schwing. so thanks for the replies, will let you know how i get on this afternoon.
okay i changed the limit of merit CHAR field to be able to hold 5 characters, so i can put TRUE or FALSE in there ... but i am having trouble assigning the field value to a BOOLEAN variable ... of course .... any ideas on how to do this? here is what i have done so far...
On the google group search area, i found that boolean can be a variable but not a data type, so the following code works for creating my table create table emp_question (employee_start_date DATE, job_type CHAR (1), extra_merit CHAR(1), current_salary NUMBER(6,2), bonus_amount NUMBER(4,2));
cool ... and just put either T or F into the extra_merit field ... i guess a Boolean variable will be able to be derived form that when selecting or whatever?
Hi, (1) i want to create table with a boolean field type - possible? i thought it would be possible, but i am just having a bit of a headache with the following code...
the error keeps coming up concerning extra merit BOOLEAN, it says it is an invalid data type. do i have to create the table in a PL/SQL block or something? also, there is a "Bonus" field, in the sense that a bonus is to be calculated ... i thought of including this code in the actual creation of the table...
but am not sure whether this is necessary at all as it will be calculated. Should i place certain code within the initial definition of the table, so that the bonus field is always created each time the table is viewed? Or should i not include it in the creation of the table at all?
Hi there, i have nearly got this working. I thought I had, but I havent. What happens is that I get the Order Items apearring twice and the Subtotal is not showing anything? I will show the output here, and the code down below. If you have any suggestion on what i am doing wrong, let me know. If it is all just too complicated and needs to be better laid out, just let me know that too.
Yay ... although the second nested cursor is totally working properly, all it is doing right now is pulling out all the item descriptions and putting them in there, rather than the ones specific to the order...but i will fix that after i just enjoy the fact that i got it working! yaaayyyyy
okay, i get where you're coming from Mark, and it is good to see it written out, because i had a sneaking suspicion that something was just turning up strange because i was trying to compare things to null ... i forgot the 'is' option. now concerning the null OR true = true... i believe you, but i wonder if it is because trying to get the a boolean on whether the value of 1=NULL is essentially similar to getting a false response, and seeing we are "OR"-ing, and the second condition being true, then it can return a value of true ... but... are you relating this as theory to the actual functionaloty of the NVL() comparison/assignment?
Michael, I have looked at the database .. and there seems to be no need at all for outer joins, i was totally off track. The query seems to work fine as i wrote it without the outer joins. Talk about making things difficult for myself! select L.BLDG_CODE, L.ROOM, T.TERM_DESC, C.CALL_ID, CS.SEC_NUM, CS.DAY, CS.TIME from LOCATION L, TERM T, COURSE C, COURSE_SECTION CS where L.LOC_ID = CS.LOC_ID and T.TERM_ID = CS.TERM_ID and C.COURSE_ID = CS.COURSE_ID;
I will make sure i am certain on my ASSUMPTIONS before posting anything in future, aswell as making my intention clearer. thanks again.