I am trying to select from a Query that I created a count of the inmates that were over 17 when they were booked. I am getting the following Oracle Error:
DECLARE
*
ERROR at line 1:
ORA-01839: date not valid for month specified
ORA-06512: at line 18
SELECT COUNT(BOOK_ID) INTO ADULT_MALE
FROM...
More details in thread1177-1136650
I am getting the following error: ORA-00920: invalid relational operator with this script:
SELECT J.BOOK_ID, A.FEL_MIS_WT, J.BOOKDATE, A.ARRE_ID
FROM JMMAIN J, ARMAIN A
WHERE (J.BOOK_ID,DECODE(A.FEL_MIS_WT, 'F',1,'W',2,'M',3)||J.BOOKDATE,A.ARRE_ID)...
I am trying to create a query to list only one arrest record per booking.There are two tables JMMAIN (Booking) and ARMAIN (Arrest). The ranking are in the following priority order: F,W,M. If both records are the same, such as BookNum 2 that has two Fs and one M, I want it to display ArrestID 5...
FOR AN ARREST RECORD, WE ONLY ENTER THE CJI_PCN FOR THE FIRST RECORD.THIS SCRIPT NEEDS TO POPULATE ALL THE OTHER RECORDS WITH THE SAME ARRE_ID WITH THE CJI_PCN THAT IS POPULATED, IN OTHER WORDS WHERE CJI_PCN IS NULL, POPULATE IT WITH THE CJI_PCN OF THE RECORD THAT HAS THE SAME ARRE_ID.
FOR...
I am trying to create a table that lists the date from the first date of a record in the system through the current date, a count at 8:00 AM Each day of how many inmates we have in the jail and a full day count of inmates in the jail. Once this table is created through today. I want to run a...
I am taking a practice test for the Intro to Oracle exam. Why is the answer: Line 1
Evaluate this CREATE TABLE statement, which line of this statement will cause an error?
1. CREATE TABLE order (
2. id# NUMBER(9) CONSTRAINT PRIMARY KEY,
3. order$ NUMBER(9) CONSTRAINT NOT NULL,
4. date_1 DATE...
I have the below statement in which I want return all rows that have a releastime between ((sysdate-35 minutes) and sysdate). How would I accomplish this?
SELECT BOOK_ID, NAME_ID, TO_CHAR(RELEASTIME, 'DDMMYYYY') "RELEASE_DATE", TO_CHAR(RELEASTIME, 'HH:MI:SS AM')...
I want to create a command button that when it is clicked it first runs my make query. Then brings up Outlook with that table as an attachment so that my user can enter the appropriate email addresses and send the email. Anyone have any ideas????
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.