I'm fairly new to PL/SQL so I'm hoping some body would be willing to help me convert the following SQL into something the SQL*Plus will be happy with.
Thank you for any assistance you can offer.
SELECT MESSIAHDB_BIB_TEXT.TITLE_BRIEF,
MESSIAHDB_LOCATION.LOCATION_NAME || ' ' ||MESSIAHDB_MFHD_MASTER.DISPLAY_CALL_NO AS DISPLAY,
MESSIAHDB_BIB_MASTER.SUPPRESS_IN_OPAC,
Mid(Messiahdb_Bib_text.bib_format,2,1) AS BIBTEXT, MESSIAHDB_LOCATION.LOCATION_NAME,
MESSIAHDB_MFHD_MASTER.SUPPRESS_IN_OPAC, MESSIAHDB_MFHDBLOB_VW.MARC_RECORD
FROM ((((MESSIAHDB_BIB_MFHD INNER JOIN MESSIAHDB_BIB_TEXT ON MESSIAHDB_BIB_MFHD.BIB_ID = MESSIAHDB_BIB_TEXT.BIB_ID)
INNER JOIN MESSIAHDB_MFHD_MASTER ON MESSIAHDB_BIB_MFHD.MFHD_ID = MESSIAHDB_MFHD_MASTER.MFHD_ID)
INNER JOIN MESSIAHDB_BIB_MASTER ON MESSIAHDB_BIB_MFHD.BIB_ID = MESSIAHDB_BIB_MASTER.BIB_ID)
INNER JOIN MESSIAHDB_LOCATION ON MESSIAHDB_MFHD_MASTER.LOCATION_ID = MESSIAHDB_LOCATION.LOCATION_ID)
INNER JOIN MESSIAHDB_MFHDBLOB_VW ON MESSIAHDB_BIB_MFHD.MFHD_ID = MESSIAHDB_MFHDBLOB_VW.MFHD_ID
WHERE (((MESSIAHDB_BIB_MASTER.SUPPRESS_IN_OPAC)="N")
AND ((Mid(Messiahdb_Bib_text.bib_format,2,1))='s')
AND ((MESSIAHDB_MFHD_MASTER.SUPPRESS_IN_OPAC)<>"Y"))
ORDER BY MESSIAHDB_BIB_TEXT.TITLE_BRIEF;
Thank you for any assistance you can offer.
SELECT MESSIAHDB_BIB_TEXT.TITLE_BRIEF,
MESSIAHDB_LOCATION.LOCATION_NAME || ' ' ||MESSIAHDB_MFHD_MASTER.DISPLAY_CALL_NO AS DISPLAY,
MESSIAHDB_BIB_MASTER.SUPPRESS_IN_OPAC,
Mid(Messiahdb_Bib_text.bib_format,2,1) AS BIBTEXT, MESSIAHDB_LOCATION.LOCATION_NAME,
MESSIAHDB_MFHD_MASTER.SUPPRESS_IN_OPAC, MESSIAHDB_MFHDBLOB_VW.MARC_RECORD
FROM ((((MESSIAHDB_BIB_MFHD INNER JOIN MESSIAHDB_BIB_TEXT ON MESSIAHDB_BIB_MFHD.BIB_ID = MESSIAHDB_BIB_TEXT.BIB_ID)
INNER JOIN MESSIAHDB_MFHD_MASTER ON MESSIAHDB_BIB_MFHD.MFHD_ID = MESSIAHDB_MFHD_MASTER.MFHD_ID)
INNER JOIN MESSIAHDB_BIB_MASTER ON MESSIAHDB_BIB_MFHD.BIB_ID = MESSIAHDB_BIB_MASTER.BIB_ID)
INNER JOIN MESSIAHDB_LOCATION ON MESSIAHDB_MFHD_MASTER.LOCATION_ID = MESSIAHDB_LOCATION.LOCATION_ID)
INNER JOIN MESSIAHDB_MFHDBLOB_VW ON MESSIAHDB_BIB_MFHD.MFHD_ID = MESSIAHDB_MFHDBLOB_VW.MFHD_ID
WHERE (((MESSIAHDB_BIB_MASTER.SUPPRESS_IN_OPAC)="N")
AND ((Mid(Messiahdb_Bib_text.bib_format,2,1))='s')
AND ((MESSIAHDB_MFHD_MASTER.SUPPRESS_IN_OPAC)<>"Y"))
ORDER BY MESSIAHDB_BIB_TEXT.TITLE_BRIEF;