Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8390853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:06:46+00:00 2026-06-09T19:06:46+00:00

This sql in code: SELECT QHR, DECODE(DUCKBILLID1,NULL,’ ‘,DUCKBILLID1) DB1, DECODE(DUCKBILLID2,NULL,’ ‘,DUCKBILLID2) DB2, DECODE(DUCKBILLID3,NULL,’ ‘,DUCKBILLID3)

  • 0

This sql in code:

SELECT QHR, 
DECODE(DUCKBILLID1,NULL,' ',DUCKBILLID1) "DB1", 
DECODE(DUCKBILLID2,NULL,' ',DUCKBILLID2) "DB2", 
DECODE(DUCKBILLID3,NULL,' ',DUCKBILLID3) "DB3" 
FROM PLATYPUSSCHEDULE 
WHERE PLATYPUSID = :ABCID AND DOW = :DOW

…fails with “FROM keyword not found where expected“

The same exact thing (except that the quotes around DBN are single quotes in c# code and double quotes, AS SHOWN ABOVE, in TOAD) works just fine in TOAD.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:06:47+00:00Added an answer on June 9, 2026 at 7:06 pm

    In C# I’d expect to see something like

    String qry = 
    @"SELECT QHR,  
    DECODE(DUCKBILLID1,NULL,' ',DUCKBILLID1) ""DB1"",  
    DECODE(DUCKBILLID2,NULL,' ',DUCKBILLID2) ""DB2"",  
    DECODE(DUCKBILLID3,NULL,' ',DUCKBILLID3) ""DB3""  
    FROM PLATYPUSSCHEDULE  
    WHERE PLATYPUSID = :ABCID AND DOW = :DOW";
    

    or

    String qry = 
    "SELECT QHR,DECODE(DUCKBILLID1,NULL,' ',DUCKBILLID1) \"DB1\",DECODE(DUCKBILLID2,NULL,' ',DUCKBILLID2) \"DB2\",DECODE(DUCKBILLID3,NULL,' ',DUCKBILLID3) \"DB3\" FROM PLATYPUSSCHEDULE WHERE PLATYPUSID = :ABCID AND DOW = :DOW";
    

    I certainly wouldn’t expect to see single and double quotes swapped over.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this SQL code here.. SELECT cl.clientid, cl.clientname, cl.billingdate, cp.startdate, cp.expiration, (SELECT COUNT(*)
How do I rewrite this T-SQL code to produce the same results SELECT ACC.Title,
I use this code to select password field from the sql server 2012 db,
I have a SQL query like this (pseudo code) Select ID, TEXT, 1, 2,
So I want to do something like this sql code below: select s.id, s.name,s.city
in this SQL code DECLARE @n tinyint WHILE (@n > 0) BEGIN SELECT @n
I have this SQL code: SELECT t1.offname, t2.offname, t3.offname, t4.offname, t5.offname, t6.offname, t7.offname FROM
I'm using a prepared statement with this SQL code: SELECT `name` FROM `securities` WHERE
This is my SQL code SELECT p.plant_name, sum(data.value_1) totalvalue_1 FROM (SELECT DISTINCT date_format(date, '%Y-%m')
This is my sql code SELECT M.PartNo AS ModulePartNo, (SELECT SUM(Delivered - Allocated) FROM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.